NeoPZ
Static Public Member Functions | Static Public Attributes | Static Protected Member Functions | Static Protected Attributes | Private Member Functions | List of all members
TPZPersistenceManager Class Reference

#include <TPZPersistenceManager.h>

Collaboration diagram for TPZPersistenceManager:
[legend]

Static Public Member Functions

static void OpenWrite (const std::string &fileName, streamType=binary)
 
static void WriteToFile (const TPZSavable *)
 
static void CloseWrite ()
 
static int64_t ScheduleToWrite (const TPZSavable *obj)
 
static void WritePointer (const TPZSavable *obj, TPZStream *stream)
 
static unsigned int OpenRead (const std::string &fileName, streamType=binary)
 
static void TranslateNextPointer (TPZChunkInTranslation &chunk, const std::map< std::string, uint64_t > &toVersion)
 
static void TranslatePointers (TPZChunkInTranslation &chunk, const std::map< std::string, uint64_t > &toVersion)
 
static int64_t NewChunkInTranslation ()
 
static void SetChunk (const int64_t &objId, TPZAutoPointer< TPZChunkInTranslation > chunk)
 
static TPZRestoredInstanceNewRestoredInstance ()
 
static TPZSavableReadFromFile ()
 
static TPZSavableGetInstance (const int64_t &objId)
 
static TPZSavableGetInstance (TPZStream *stream)
 
static TPZAutoPointer< TPZSavableGetAutoPointer (const int64_t &objId)
 
static std::shared_ptr< TPZSavableGetSharedPointer (const int64_t &objId)
 
static TPZAutoPointer< TPZSavableGetAutoPointer (TPZStream *stream)
 
static std::shared_ptr< TPZSavableGetSharedPointer (TPZStream *stream)
 
static void CloseRead ()
 

Static Public Attributes

static TPZContBufferedStream mCurrentObjectStream
 
static std::map< const TPZSavable *, int64_t > mObjMap
 
static int64_t mNextPointerToSave
 

Static Protected Member Functions

static void AddInstanceToVec (TPZSavable *, const int &id)
 

Static Protected Attributes

static TPZGeneralFStreammpStream
 
static TPZVec< TPZRestoredInstancemObjVec
 
static TPZVec< TPZAutoPointer< TPZChunkInTranslation > > mChunksVec
 
static TPZVec< int64_t > mMainObjIds
 
static unsigned int mNextMainObjIndex
 
static std::list< std::map< std::string, uint64_t > > mVersionHistory
 
static std::map< std::string, uint64_t > mFileVersionInfo
 
static TPZContBufferedStream mObjectsStream
 
static TPZVec< const TPZSavable * > mPointersToSave
 

Private Member Functions

 TPZPersistenceManager ()
 

Detailed Description

Definition at line 26 of file TPZPersistenceManager.h.

Constructor & Destructor Documentation

◆ TPZPersistenceManager()

TPZPersistenceManager::TPZPersistenceManager ( )
private

Definition at line 35 of file TPZPersistenceManager.cpp.

Member Function Documentation

◆ AddInstanceToVec()

void TPZPersistenceManager::AddInstanceToVec ( TPZSavable obj,
const int &  id 
)
staticprotected

Definition at line 393 of file TPZPersistenceManager.cpp.

◆ CloseRead()

void TPZPersistenceManager::CloseRead ( )
static

Definition at line 459 of file TPZPersistenceManager.cpp.

◆ CloseWrite()

void TPZPersistenceManager::CloseWrite ( )
static

◆ GetAutoPointer() [1/2]

TPZAutoPointer< TPZSavable > TPZPersistenceManager::GetAutoPointer ( const int64_t &  objId)
static

◆ GetAutoPointer() [2/2]

TPZAutoPointer< TPZSavable > TPZPersistenceManager::GetAutoPointer ( TPZStream stream)
static

Definition at line 447 of file TPZPersistenceManager.cpp.

References TPZStream::Read().

◆ GetInstance() [1/2]

TPZSavable * TPZPersistenceManager::GetInstance ( const int64_t &  objId)
static

◆ GetInstance() [2/2]

TPZSavable * TPZPersistenceManager::GetInstance ( TPZStream stream)
static

Definition at line 411 of file TPZPersistenceManager.cpp.

References TPZStream::Read().

◆ GetSharedPointer() [1/2]

std::shared_ptr< TPZSavable > TPZPersistenceManager::GetSharedPointer ( const int64_t &  objId)
static

◆ GetSharedPointer() [2/2]

std::shared_ptr< TPZSavable > TPZPersistenceManager::GetSharedPointer ( TPZStream stream)
static

Definition at line 453 of file TPZPersistenceManager.cpp.

References TPZStream::Read().

◆ NewChunkInTranslation()

int64_t TPZPersistenceManager::NewChunkInTranslation ( )
static

◆ NewRestoredInstance()

TPZRestoredInstance * TPZPersistenceManager::NewRestoredInstance ( )
static

Definition at line 379 of file TPZPersistenceManager.cpp.

◆ OpenRead()

unsigned int TPZPersistenceManager::OpenRead ( const std::string &  fileName,
streamType  cStreamType = binary 
)
static

◆ OpenWrite()

void TPZPersistenceManager::OpenWrite ( const std::string &  fileName,
streamType  cStreamType = binary 
)
static

◆ ReadFromFile()

TPZSavable * TPZPersistenceManager::ReadFromFile ( )
static

Definition at line 385 of file TPZPersistenceManager.cpp.

References test::obj.

Referenced by TPZCheckConsistency::CheckObject().

◆ ScheduleToWrite()

int64_t TPZPersistenceManager::ScheduleToWrite ( const TPZSavable obj)
static

Definition at line 163 of file TPZPersistenceManager.cpp.

References DebugStop, test::obj, and TPZSavable::Version().

◆ SetChunk()

void TPZPersistenceManager::SetChunk ( const int64_t &  objId,
TPZAutoPointer< TPZChunkInTranslation chunk 
)
static

◆ TranslateNextPointer()

void TPZPersistenceManager::TranslateNextPointer ( TPZChunkInTranslation chunk,
const std::map< std::string, uint64_t > &  toVersion 
)
static

◆ TranslatePointers()

void TPZPersistenceManager::TranslatePointers ( TPZChunkInTranslation chunk,
const std::map< std::string, uint64_t > &  toVersion 
)
static

◆ WritePointer()

void TPZPersistenceManager::WritePointer ( const TPZSavable obj,
TPZStream stream 
)
static

◆ WriteToFile()

void TPZPersistenceManager::WriteToFile ( const TPZSavable obj)
static

Member Data Documentation

◆ mChunksVec

TPZVec< TPZAutoPointer< TPZChunkInTranslation > > TPZPersistenceManager::mChunksVec
staticprotected

Definition at line 35 of file TPZPersistenceManager.h.

◆ mCurrentObjectStream

TPZContBufferedStream TPZPersistenceManager::mCurrentObjectStream
static

Definition at line 45 of file TPZPersistenceManager.h.

◆ mFileVersionInfo

std::map< std::string, uint64_t > TPZPersistenceManager::mFileVersionInfo
staticprotected

Definition at line 41 of file TPZPersistenceManager.h.

◆ mMainObjIds

TPZVec< int64_t > TPZPersistenceManager::mMainObjIds
staticprotected

Definition at line 36 of file TPZPersistenceManager.h.

◆ mNextMainObjIndex

unsigned int TPZPersistenceManager::mNextMainObjIndex
staticprotected

Definition at line 37 of file TPZPersistenceManager.h.

◆ mNextPointerToSave

int64_t TPZPersistenceManager::mNextPointerToSave
static

Definition at line 47 of file TPZPersistenceManager.h.

◆ mObjectsStream

TPZContBufferedStream TPZPersistenceManager::mObjectsStream
staticprotected

Definition at line 42 of file TPZPersistenceManager.h.

◆ mObjMap

std::map< const TPZSavable *, int64_t > TPZPersistenceManager::mObjMap
static

Definition at line 46 of file TPZPersistenceManager.h.

◆ mObjVec

TPZVec< TPZRestoredInstance > TPZPersistenceManager::mObjVec
staticprotected

Definition at line 34 of file TPZPersistenceManager.h.

◆ mPointersToSave

TPZVec< const TPZSavable * > TPZPersistenceManager::mPointersToSave
staticprotected

Definition at line 43 of file TPZPersistenceManager.h.

◆ mpStream

TPZGeneralFStream * TPZPersistenceManager::mpStream
staticprotected

Definition at line 31 of file TPZPersistenceManager.h.

◆ mVersionHistory

std::list< std::map< std::string, uint64_t > > TPZPersistenceManager::mVersionHistory
staticprotected

Definition at line 38 of file TPZPersistenceManager.h.


The documentation for this class was generated from the following files: