commonlib
serializable_node.h
Go to the documentation of this file.
1 
12 #pragma once
13 #include "node.h"
14 
15 BEGIN_NAMESPACE_SERIALIZATION
19 class SerializableNode : public Node
20 {
21 public:
22  virtual void saveToFile(const std::string& fileName) = 0;
23  virtual void readFromFile(const std::string& fileName) = 0;
24 
25  virtual void saveToStream(std::ostream& outStream) = 0;
26  virtual void readFromStream(std::istream& inStream) = 0;
27 };
28 
29 END_NAMESPACE_SERIALIZATION
SerializableNode is an abstract class that defines functions for writing/reading to/from a custom fil...
Definition: serializable_node.h:19
Node is an abstract class that represents a node in an xml tree and defines functions for writing and...
Node is an abstract class that represents a node in an xml tree and defines functions for writing and...
Definition: node.h:26