| Dettagli del download |
|
The TcCOM Object Archive sample shows how to restore and store the state of an object during initialization and deinitialization. The state of the sample class CModuleArchive is the value of the counter CModuleArchive::m_counter. In the transition from PREOP to SAFEOP, i.e. method CModuleArchive::SetObjStatePS(), the object archive server (ITComObjArchiveServer) is used to create an object archive for read, which is accessed through interface ITComArchiveOp. This interface provides overloads of operator>>() in order to read from the archive. In the transition from SAFEOP to PREOP, i.e. method CModuleArchive::SetObjStateSP(), the TCOM object archive server is used create an object archive for write, which is accessed through interface ITComArchiveOp. This interface provides overloads of operator<<() in order to write to the archive. |
|
|||||||||||||||||||||||||||||||||

Gli esempi presenti su questo sito sono stati liberamente inviati dagli utenti di automationforum.it, è stato espressamente specificato loro di inviare solo esempi FREE. Automationforum.it non si ritiene responsabile dell'eventuale presenza di esempi rilasciati sotto licenza commerciale, Automationforum.it invita tutti coloro che individuano esempi rilasciati sotto licenza commerciale presenti in questa raccolta a segnalarlo dall'apposito