OpenDaVINCI  4.16.0
ProtoDeserializerVisitor.h
Go to the documentation of this file.
1 
20 #ifndef OPENDAVINCI_CORE_SERIALIZATION_PROTODESERIALIZERVISITOR_H_
21 #define OPENDAVINCI_CORE_SERIALIZATION_PROTODESERIALIZERVISITOR_H_
22 
23 #include <sstream>
24 #include <string>
25 
29 
30 namespace odcore {
31  namespace serialization {
32 
33  using namespace std;
34 
40  private:
47 
54 
55  public:
57 
58  virtual ~ProtoDeserializerVisitor();
59 
60  public:
61  virtual void beginVisit(const int32_t &id, const string &shortName, const string &longName);
62  virtual void endVisit();
63 
64  virtual void visit(const uint32_t &id, const string &longName, const string &shortName, Serializable &v);
65  virtual void visit(const uint32_t &id, const string &longName, const string &shortName, bool &v);
66  virtual void visit(const uint32_t &id, const string &longName, const string &shortName, char &v);
67  virtual void visit(const uint32_t &id, const string &longName, const string &shortName, unsigned char &v);
68  virtual void visit(const uint32_t &id, const string &longName, const string &shortName, int8_t &v);
69  virtual void visit(const uint32_t &id, const string &longName, const string &shortName, int16_t &v);
70  virtual void visit(const uint32_t &id, const string &longName, const string &shortName, uint16_t &v);
71  virtual void visit(const uint32_t &id, const string &longName, const string &shortName, int32_t &v);
72  virtual void visit(const uint32_t &id, const string &longName, const string &shortName, uint32_t &v);
73  virtual void visit(const uint32_t &id, const string &longName, const string &shortName, int64_t &v);
74  virtual void visit(const uint32_t &id, const string &longName, const string &shortName, uint64_t &v);
75  virtual void visit(const uint32_t &id, const string &longName, const string &shortName, float &v);
76  virtual void visit(const uint32_t &id, const string &longName, const string &shortName, double &v);
77  virtual void visit(const uint32_t &id, const string &longName, const string &shortName, string &v);
78  virtual void visit(const uint32_t &id, const string &longName, const string &shortName, void *data, const uint32_t &size);
79  virtual void visit(const uint32_t &id, const string &longName, const string &shortName, void *data, const uint32_t &count, const odcore::TYPE_ &t);
80  };
81 
82  }
83 } // odcore::serialization
84 
85 #endif /*OPENDAVINCI_CORE_SERIALIZATION_PROTODESERIALIZERVISITOR_H_*/
TYPE_
Definition: opendavinci.h:96
Definition: Visitor.h:37
Definition: Serializable.h:59
Definition: ProtoDeserializer.h:143
Definition: ProtoDeserializerVisitor.h:39