CFx SDK Documentation
2020SP3
|
Go to the documentation of this file. 1 #ifndef _TFREVISIONCONTROL_H_INCLUDED_
2 #define _TFREVISIONCONTROL_H_INCLUDED_
150 #endif //_TFREVISIONCONTROL_H_INCLUDED_
OdArray< OdTfDigest > parents
TFDLL_EXPORT OdTfStoragePtr open(const OdString &path, const OdString &strgClassName=L"TFSQLStorage", const OdString &appToLoad=L"TfSQLStorage")
TFDLL_EXPORT OdDbObjectIdArray getLocalChanges(OdDbDatabase *pDb)
OdTfCommitInfo(const OdString &author=L"", const OdString &message=L"", const OdTimeStamp &date=OdTimeStamp(OdTimeStamp::kInitUniversalTime), OdStreamBuf *arbitraryUserData=0)
TFDLL_EXPORT void applyPatch(OdTfStorage *strg, OdStreamBuf *s, const OdString &branch)
TFDLL_EXPORT OdTfStorage * getDatabaseStorage(OdDbDatabase *pDb, OdString *currentBranch=0)
TFDLL_EXPORT void exportDwg(OdDbDatabase *pDb, OdStreamBuf *pStreamBuf, OdDb::DwgVersion fileVersion, bool saveThumbnailImage=false)
TFDLL_EXPORT void commit(OdDbDatabase *pDb, const OdTfCommitInfo &message, const OdString &mergeCommitOtherBranch=OdString::kEmpty, OdTfDigest *mergeCommitOtherParent=0, const OdDbObjectIdArray *objectsToSave=0)
TFDLL_EXPORT void getBranchList(OdTfStorage *pTf, std::map< OdString, OdTfDigest > &)
TFDLL_EXPORT bool merge(OdDbDatabase *pDb, OdDbHandleArray &conflicts, OdTfMergePolicy mp=kOdTfMergePreferTheirs, const OdString &branch=OdString::kEmpty, bool noFastForward=false)
TFDLL_EXPORT void resetBranch(OdTfStorage *strg, const OdString &branch, const OdTfDigest &)
TFDLL_EXPORT OdTfCommitInfo getCommitInfo(OdTfStorage *strg, 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 void exportDxf(OdDbDatabase *pDb, OdStreamBuf *pStreamBuf, OdDb::DwgVersion fileVersion, bool saveThumbnailImage=false, int dxfPrecision=16)
TFDLL_EXPORT OdDbDatabasePtr checkout(OdTfStorage *strg, OdDbHostAppServices *pHostApp, const OdString &localBranch, const OdString &sourceBranch=L"master", bool partial=false)
std::map< OdDbHandle, ChangeType > ChangeList
TFDLL_EXPORT OdStreamBufPtr makePatch(OdTfStorage *strg, const OdTfDigest &from, const OdTfDigest &to)
TFDLL_EXPORT void getRevisionDifference(OdTfStorage *pTf, const OdTfDigest &newRevision, const OdTfDigest &oldRevision, ChangeList &result)
FIRSTDLL_EXPORT_STATIC static const OdString kEmpty
TFDLL_EXPORT void compressRevisionData(OdTfStorage *strg, OdUInt16 referenceDistance=10)
OdArray< OdDbHandle > OdDbHandleArray
TFDLL_EXPORT void getBranchTip(OdTfStorage *strg, const OdString &branch, OdTfCommitInfo &, OdTfDigest &)