Lines Matching defs:XmlNodeConverter

139 struct XmlNodeConverter : public XmlConverter<Object> {  struct
140 XmlNodeConverter() {} in XmlNodeConverter() argument
141 virtual ~XmlNodeConverter() {} in ~XmlNodeConverter()
145 virtual void mutateNode(const Object& o, NodeType* n, DocType* d, SerializeFlags::Type) const { in mutateNode()
152 inline const std::string& lastError() const override { return mLastError; } in lastError()
153 inline NodeType* serialize(const Object& o, DocType* d, in serialize()
159 inline std::string serialize(const Object& o, SerializeFlags::Type flags) const override { in serialize()
166 inline bool deserialize(Object* object, NodeType* root) { in deserialize()
170 inline bool deserialize(Object* o, const std::string& xml) override { in deserialize()
174 inline bool deserialize(Object* object, NodeType* root, std::string* error) const { in deserialize()
180 inline bool operator()(Object* o, const std::string& xml, std::string* error) const override { in operator ()()
193 inline NodeType *operator()(const Object &o, DocType *d) const { in operator ()()
196 inline std::string operator()(const Object& o, SerializeFlags::Type flags) const override { in operator ()()
199 inline bool operator()(Object* o, NodeType* node) { return deserialize(o, node); } in operator ()()
200 inline bool operator()(Object* o, const std::string& xml) override { in operator ()()
208 inline void appendAttr(NodeType *e, const std::string &attrName, const T &attr) const { in appendAttr()
212 inline void appendAttr(NodeType *e, const std::string &attrName, bool attr) const { in appendAttr()
217 inline void appendTextElement(NodeType *parent, const std::string &name, in appendTextElement()
226 inline void appendTextElements(NodeType *parent, const std::string &name, in appendTextElements()
236 inline void appendChildren(NodeType* parent, const XmlNodeConverter<T>& conv, in appendChildren()
248 inline bool parseOptionalAttr(NodeType* root, const std::string& attrName, T&& defaultValue, in parseOptionalAttr()
260 inline bool parseAttr(NodeType* root, const std::string& attrName, T* attr, in parseAttr()
271 inline bool parseAttr(NodeType* root, const std::string& attrName, std::string* attr, in parseAttr()
281 inline bool parseTextElement(NodeType* root, const std::string& elementName, std::string* s, in parseTextElement()
293 inline bool parseOptionalTextElement(NodeType* root, const std::string& elementName, in parseOptionalTextElement()
301 inline bool parseTextElements(NodeType* root, const std::string& elementName, in parseTextElements()
312 inline bool parseChild(NodeType* root, const XmlNodeConverter<T>& conv, T* t, in parseChild()
324 inline bool parseOptionalChild(NodeType* root, const XmlNodeConverter<T>& conv, in parseOptionalChild()
335 inline bool parseOptionalChild(NodeType* root, const XmlNodeConverter<T>& conv, in parseOptionalChild()
347 inline bool parseChildren(NodeType* root, const XmlNodeConverter<T>& conv, std::vector<T>* v, in parseChildren()
363 inline bool parseChildren(NodeType* root, const XmlNodeConverter<T>& conv, Container* s, in parseChildren()
381 inline bool parseChildren(NodeType* root, const XmlNodeConverter<std::pair<K, V>>& conv, in parseChildren()
386 inline bool parseText(NodeType* node, std::string* s, std::string* /* error */) const { in parseText()
392 inline bool parseText(NodeType* node, T* s, std::string* error) const { in parseText()
402 mutable std::string mLastError;