CFx SDK Documentation  2022 SP0
Classes | Public Member Functions | Static Public Member Functions | List of all members
ApplyChanges Class Reference

#include <TfDwgFiler.h>

Classes

struct  TRecordNewObject
 

Public Member Functions

 ApplyChanges ()
 
 ~ApplyChanges ()
 
OdDbHandleMap applyDifference (OdDbDatabase *pDb, bool bApplyDiff, bool bPreserveHandles, const char *filePath)
 

Static Public Member Functions

static void writeData (OdTf::TypesEnum t, OdTfDwgFilerImpl *m_filer, OdTfDiffFilerImpl *schemeIter, OdString *tableNameFromXml=0)
 
template<class T >
static void checkCondition (T value, OdTfDwgFilerImpl *schemeIter)
 

Detailed Description

Definition at line 266 of file TfDwgFiler.h.

Constructor & Destructor Documentation

◆ ApplyChanges()

ApplyChanges::ApplyChanges ( )
inline

Definition at line 270 of file TfDwgFiler.h.

◆ ~ApplyChanges()

ApplyChanges::~ApplyChanges ( )
inline

Definition at line 271 of file TfDwgFiler.h.

Member Function Documentation

◆ applyDifference()

OdDbHandleMap ApplyChanges::applyDifference ( OdDbDatabase pDb,
bool  bApplyDiff,
bool  bPreserveHandles,
const char *  filePath 
)

Sets changing from xml file to databse.

Parameters
pDb[in] pointer to database.
bApplyDiff[in] set in TfDwgFiler flag to apply Difference(not calculate)
bPreserveHandles[in] If true then the new objects in the changes stream retain their handles, otherwise they may be translated
filePath[in] path to load xml file with difference.
clientMap[in, optional] If present, it represents the changes in handles caused by merging server changes on a client. May be used to find erased added objects while reapplying client changes
serverMap[in, optional] If present, it represents the changes in handles caused by merging client changes on a server. The target handles in this map will be used for the new objects added while reapplying client changes. Returns the map of the newly added objects handles [handle read from the file] -> [actual handle in the database]
Note
Generation from xml file binary stream and send it to OdDbHistoryManager::applyChanges(OdStreamBuf* s, bool bPreserveHandles, OdDbHandleMap* clientMap, OdDbHandleMap* serverMap)

◆ checkCondition()

template<class T >
static void ApplyChanges::checkCondition ( value,
OdTfDwgFilerImpl *  schemeIter 
)
inlinestatic

Check tags in scheme with atribute: isCondition, isArrayLength, isBreak

Parameters
value[in] data
schemeIter[in] filer where to stored value cache
Note

◆ writeData()

static void ApplyChanges::writeData ( OdTf::TypesEnum  t,
OdTfDwgFilerImpl *  m_filer,
OdTfDiffFilerImpl *  schemeIter,
OdString tableNameFromXml = 0 
)
static

Write data from xml to char array

Parameters
t[in] type of write data
m_filer[in] filer with iterator by xml
schemeIter[in] filer with iterator by scheme for xml
Note


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