CFx SDK Documentation  2020SP3
Typedefs | Enumerations | Functions
OdTfRevisionControl Namespace Reference

Typedefs

typedef std::map< OdDbHandle, ChangeTypeChangeList
 

Enumerations

enum  ChangeType { kObjectAdded = 1, kObjectDeleted, kObjectModified }
 

Functions

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

Typedef Documentation

◆ ChangeList

Definition at line 115 of file TfRevisionControl.h.

Enumeration Type Documentation

◆ ChangeType

Enumerator
kObjectAdded 
kObjectDeleted 
kObjectModified 

Definition at line 109 of file TfRevisionControl.h.

Function Documentation

◆ applyPatch()

TFDLL_EXPORT void OdTfRevisionControl::applyPatch ( OdTfStorage strg,
OdStreamBuf s,
const OdString branch 
)

◆ checkout() [1/2]

TFDLL_EXPORT void OdTfRevisionControl::checkout ( OdDbDatabase pDb,
OdTfStorage strg,
OdDbHostAppServices pHostApp,
const OdString localBranch,
const OdString sourceBranch = L"master",
bool  partial = false 
)

◆ checkout() [2/2]

TFDLL_EXPORT OdDbDatabasePtr OdTfRevisionControl::checkout ( OdTfStorage strg,
OdDbHostAppServices pHostApp,
const OdString localBranch,
const OdString sourceBranch = L"master",
bool  partial = false 
)

◆ commit()

TFDLL_EXPORT void OdTfRevisionControl::commit ( OdDbDatabase pDb,
const OdTfCommitInfo message,
const OdString mergeCommitOtherBranch = OdString::kEmpty,
OdTfDigest mergeCommitOtherParent = 0,
const OdDbObjectIdArray objectsToSave = 0 
)

◆ compressRevisionData()

TFDLL_EXPORT void OdTfRevisionControl::compressRevisionData ( OdTfStorage strg,
OdUInt16  referenceDistance = 10 
)

Replace

◆ exportDwg()

TFDLL_EXPORT void OdTfRevisionControl::exportDwg ( OdDbDatabase pDb,
OdStreamBuf pStreamBuf,
OdDb::DwgVersion  fileVersion,
bool  saveThumbnailImage = false 
)

◆ exportDxf()

TFDLL_EXPORT void OdTfRevisionControl::exportDxf ( OdDbDatabase pDb,
OdStreamBuf pStreamBuf,
OdDb::DwgVersion  fileVersion,
bool  saveThumbnailImage = false,
int  dxfPrecision = 16 
)

◆ getBranchList()

TFDLL_EXPORT void OdTfRevisionControl::getBranchList ( OdTfStorage pTf,
std::map< OdString, OdTfDigest > &   
)

◆ getBranchTip()

TFDLL_EXPORT void OdTfRevisionControl::getBranchTip ( OdTfStorage strg,
const OdString branch,
OdTfCommitInfo ,
OdTfDigest  
)

◆ getCommitInfo()

TFDLL_EXPORT OdTfCommitInfo OdTfRevisionControl::getCommitInfo ( OdTfStorage strg,
const OdTfDigest  
)

◆ getDatabaseStorage()

TFDLL_EXPORT OdTfStorage* OdTfRevisionControl::getDatabaseStorage ( OdDbDatabase pDb,
OdString currentBranch = 0 
)

◆ getLocalChanges()

TFDLL_EXPORT OdDbObjectIdArray OdTfRevisionControl::getLocalChanges ( OdDbDatabase pDb)

◆ getRevisionDifference()

TFDLL_EXPORT void OdTfRevisionControl::getRevisionDifference ( OdTfStorage pTf,
const OdTfDigest newRevision,
const OdTfDigest oldRevision,
ChangeList result 
)

◆ import()

TFDLL_EXPORT void OdTfRevisionControl::import ( OdTfStorage strg,
OdDbDatabase pDb,
const OdString branch = L"master",
const OdTfCommitInfo message = OdTfCommitInfo() 
)

◆ makePatch()

TFDLL_EXPORT OdStreamBufPtr OdTfRevisionControl::makePatch ( OdTfStorage strg,
const OdTfDigest from,
const OdTfDigest to 
)

◆ merge()

TFDLL_EXPORT bool OdTfRevisionControl::merge ( OdDbDatabase pDb,
OdDbHandleArray conflicts,
OdTfMergePolicy  mp = kOdTfMergePreferTheirs,
const OdString branch = OdString::kEmpty,
bool  noFastForward = false 
)

◆ open()

TFDLL_EXPORT OdTfStoragePtr OdTfRevisionControl::open ( const OdString path,
const OdString strgClassName = L"TFSQLStorage",
const OdString appToLoad = L"TfSQLStorage" 
)

◆ resetBranch()

TFDLL_EXPORT void OdTfRevisionControl::resetBranch ( OdTfStorage strg,
const OdString branch,
const OdTfDigest  
)

◆ switchBranch()

TFDLL_EXPORT void OdTfRevisionControl::switchBranch ( OdDbDatabase pDb,
const OdString sourceBranch = OdString::kEmpty,
const OdString localBranch = OdString::kEmpty,
OdTfDigest revision = 0,
bool  hard = true 
)