NeoPZ
TPZChunkTranslator.h
Go to the documentation of this file.
1 /*
2  * File: TPZChunkTranslator.h
3  * Author: thiago
4  *
5  * Created on 7 de Março de 2018, 17:14
6  */
7 
8 #ifndef TPZCHUNKTRANSLATOR_H
9 #define TPZCHUNKTRANSLATOR_H
10 
11 #include <map>
12 #include <string>
13 
15 
17 
18 
19 public:
20 
21  virtual ~TPZChunkTranslator();
22 
23  virtual void UpdateStream(TPZChunkInTranslation &chunk, const std::map<std::string, uint64_t> &toVersion) {
24  this->UpdateAttributes(chunk, toVersion);
25  }
26 
27  virtual void UpdateAttributes(TPZChunkInTranslation &chunk, const std::map<std::string, uint64_t> &toVersion)=0;
28 
29  virtual void SetClassId(int classid){
31  }
32 
33  virtual int GetClassId() const {
34  return classid;
35  }
36 
37 private :
38  static int classid;
39 };
40 
41 #endif /* TPZCHUNKTRANSLATOR_H */
42 
virtual int GetClassId() const
virtual void UpdateStream(TPZChunkInTranslation &chunk, const std::map< std::string, uint64_t > &toVersion)
virtual void SetClassId(int classid)
virtual void UpdateAttributes(TPZChunkInTranslation &chunk, const std::map< std::string, uint64_t > &toVersion)=0