libfoedus-core
FOEDUS Core Library
foedus::externalize::TinyxmlGetter< std::string > Struct Template Reference

Detailed Description

template<>
struct foedus::externalize::TinyxmlGetter< std::string >

Definition at line 103 of file tinyxml_wrapper.hpp.

#include <tinyxml_wrapper.hpp>

Public Member Functions

tinyxml2::XMLError operator() (const tinyxml2::XMLElement *element, std::string *out)
 

Member Function Documentation

tinyxml2::XMLError foedus::externalize::TinyxmlGetter< std::string >::operator() ( const tinyxml2::XMLElement *  element,
std::string *  out 
)
inline

Definition at line 104 of file tinyxml_wrapper.hpp.

104  {
105  const char* text = element->GetText();
106  if (text) {
107  *out = text;
108  } else {
109  out->clear();
110  }
111  return tinyxml2::XML_SUCCESS;
112  }

The documentation for this struct was generated from the following file: