OpenDaVINCI  4.16.0
Serializable.h
Go to the documentation of this file.
1 
20 #ifndef OPENDAVINCI_CORE_SERIALIZATION_SERIALIZABLE_H_
21 #define OPENDAVINCI_CORE_SERIALIZATION_SERIALIZABLE_H_
22 
23 #include <sstream>
24 
26 
27 namespace odcore {
28  namespace serialization {
29 
30  using namespace std;
31 
60  public:
61  virtual ~Serializable();
62 
69  virtual ostream& operator<<(ostream &out) const = 0;
70 
77  virtual istream& operator>>(istream &in) = 0;
78  };
79 
80  }
81 } // odcore::serialization
82 
83 namespace std {
84  // The following methods are declarations for convenient usage.
85  ostream OPENDAVINCI_API &operator<<(ostream &out, const odcore::serialization::Serializable &s);
86  istream OPENDAVINCI_API &operator>>(istream &in, odcore::serialization::Serializable &s);
87 }
88 
89 #endif /*OPENDAVINCI_CORE_SERIALIZATION_SERIALIZEABLE_H_*/
#define OPENDAVINCI_API
Definition: opendavinci.h:67
Definition: Serializable.h:59