CFx SDK Documentation  2023 SP0
Classes | Namespaces | Macros | Typedefs | Enumerations | Functions
TfRevisionControl.h File Reference
#include <Tf/Tf.h>
#include <Tf/TfIO.h>
#include "TfSchemaManager.h"
#include "OdaSTL.h"

Go to the source code of this file.

Classes

struct  OdTfCommitInfo
 

Namespaces

 OdTfRevisionControl
 

Macros

#define STL_USING_MAP
 

Typedefs

typedef OdArray< OdDbHandleOdDbHandleArray
 
typedef std::map< OdDbHandle, ChangeType > OdTfRevisionControl::ChangeList
 

Enumerations

enum  OdTfMergePolicy { kOdTfMergePreferTheirs , kOdTfMergePreferMine , kOdTfMergeManual }
 
enum  OdTfRevisionControl::ChangeType { OdTfRevisionControl::kObjectAdded = 1 , OdTfRevisionControl::kObjectDeleted , OdTfRevisionControl::kObjectModified }
 

Functions

TFDLL_EXPORT OdTfStoragePtr OdTfRevisionControl::open (const OdString &path, const OdString &strgClassName=L"TFSQLStorage", const OdString &appToLoad=L"TfSQLStorage")
 
TFDLL_EXPORT void OdTfRevisionControl::import (OdTfStorage *strg, OdDbDatabase *pDb, const OdString &branch=L"master", const OdTfCommitInfo &message=OdTfCommitInfo())
 
TFDLL_EXPORT OdDbDatabasePtr OdTfRevisionControl::checkout (OdTfStorage *strg, OdDbHostAppServices *pHostApp, const OdString &localBranch, const OdString &sourceBranch=L"master", bool partial=false)
 
TFDLL_EXPORT void OdTfRevisionControl::checkout (OdDbDatabase *pDb, OdTfStorage *strg, OdDbHostAppServices *pHostApp, const OdString &localBranch, const OdString &sourceBranch=L"master", bool partial=false)
 
TFDLL_EXPORT void OdTfRevisionControl::commit (OdDbDatabase *pDb, const OdTfCommitInfo &message, const OdString &mergeCommitOtherBranch=OdString::kEmpty, OdTfDigest *mergeCommitOtherParent=0, const OdDbObjectIdArray *objectsToSave=0)
 
TFDLL_EXPORT bool OdTfRevisionControl::merge (OdDbDatabase *pDb, OdDbHandleArray &conflicts, OdTfMergePolicy mp=kOdTfMergePreferTheirs, const OdString &branch=OdString::kEmpty, bool noFastForward=false)
 
TFDLL_EXPORT void OdTfRevisionControl::getBranchTip (OdTfStorage *strg, const OdString &branch, OdTfCommitInfo &, OdTfDigest &)
 
TFDLL_EXPORT OdTfCommitInfo OdTfRevisionControl::getCommitInfo (OdTfStorage *strg, const OdTfDigest &)
 
TFDLL_EXPORT OdStreamBufPtr OdTfRevisionControl::makePatch (OdTfStorage *strg, const OdTfDigest &from, const OdTfDigest &to)
 
TFDLL_EXPORT void OdTfRevisionControl::applyPatch (OdTfStorage *strg, OdStreamBuf *s, const OdString &branch)
 
TFDLL_EXPORT OdTfStorageOdTfRevisionControl::getDatabaseStorage (OdDbDatabase *pDb, OdString *currentBranch=0)
 
TFDLL_EXPORT void OdTfRevisionControl::resetBranch (OdTfStorage *strg, const OdString &branch, const OdTfDigest &)
 
TFDLL_EXPORT void OdTfRevisionControl::switchBranch (OdDbDatabase *pDb, const OdString &sourceBranch=OdString::kEmpty, const OdString &localBranch=OdString::kEmpty, OdTfDigest *revision=0, bool hard=true)
 
TFDLL_EXPORT OdDbObjectIdArray OdTfRevisionControl::getLocalChanges (OdDbDatabase *pDb)
 
TFDLL_EXPORT void OdTfRevisionControl::exportDwg (OdDbDatabase *pDb, OdStreamBuf *pStreamBuf, OdDb::DwgVersion fileVersion, bool saveThumbnailImage=false)
 
TFDLL_EXPORT void OdTfRevisionControl::exportDxf (OdDbDatabase *pDb, OdStreamBuf *pStreamBuf, OdDb::DwgVersion fileVersion, bool saveThumbnailImage=false, int dxfPrecision=16)
 
TFDLL_EXPORT void OdTfRevisionControl::getRevisionDifference (OdTfStorage *pTf, const OdTfDigest &newRevision, const OdTfDigest &oldRevision, ChangeList &result)
 
TFDLL_EXPORT void OdTfRevisionControl::getBranchList (OdTfStorage *pTf, std::map< OdString, OdTfDigest > &)
 
TFDLL_EXPORT void OdTfRevisionControl::compressRevisionData (OdTfStorage *strg, OdUInt16 referenceDistance=10)
 

Macro Definition Documentation

◆ STL_USING_MAP

#define STL_USING_MAP

Definition at line 9 of file TfRevisionControl.h.

Typedef Documentation

◆ OdDbHandleArray

Definition at line 32 of file TfRevisionControl.h.

Enumeration Type Documentation

◆ OdTfMergePolicy

Enumerator
kOdTfMergePreferTheirs 
kOdTfMergePreferMine 
kOdTfMergeManual 

Definition at line 14 of file TfRevisionControl.h.