NeoPZ
TPZChunkInTranslation.h
Go to the documentation of this file.
1 /*
2  * File: TPZChunkInTranslator.h
3  * Author: quinelato
4  *
5  * Created on September 18, 2017, 3:54 PM
6  */
7 
8 #ifndef TPZCHUNKINTRANSLATION_H
9 #define TPZCHUNKINTRANSLATION_H
10 
11 #include "TPZContBufferedStream.h"
12 #include "pzstack.h"
13 
14 
16 public:
17  TPZChunkInTranslation(const int64_t &objId, const int &classId, TPZStream &stream, const size_t &chunkSize, const std::map<std::string, uint64_t> &versionInfo);
18  TPZChunkInTranslation(const int64_t &objId, const int &classId, const TPZContBufferedStream &mOldStream, const std::map<std::string, uint64_t> &versionInfo);
20  virtual ~TPZChunkInTranslation();
21  int64_t GetObjId() const;
22  int GetClassId() const;
23 private:
24  void ReadFromStream(TPZStream &stream, const size_t nBytes);
25 public :
28 
29  std::map<std::string, uint64_t> mOldVersion;
30  std::map<std::string, uint64_t> mNewVersion;
31 
32  int64_t mObjId;
33  int mClassId;
34 
36 };
37 
38 #endif /* TPZCHUNKINTRANSLATION_H */
39 
Class for creating a bidirectional circular buffer.
std::map< std::string, uint64_t > mOldVersion
TPZStack< int64_t, 2 > mNewObjIds
TPZContBufferedStream mOldStream
A simple stack.
TPZChunkInTranslation(const int64_t &objId, const int &classId, TPZStream &stream, const size_t &chunkSize, const std::map< std::string, uint64_t > &versionInfo)
void ReadFromStream(TPZStream &stream, const size_t nBytes)
std::map< std::string, uint64_t > mNewVersion
Defines the interface for saving and reading data. Persistency.
Definition: TPZStream.h:50
TPZContBufferedStream mNewStream