CFx SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
Classes | Namespaces | Macros | Typedefs | Enumerations | Functions
TfRevisionControl.h File Reference
#include "TfSchemaManager.h"
#include "DbObjectIterator.h"
#include "ThreadsCounter.h"
#include "OdaSTL.h"
#include <stdexcept>

Go to the source code of this file.

Classes

struct  OdTfDigest
 
struct  OdTfCommitAnnotation
 
struct  OdTfCommitInfo
 
struct  OdTfMergeHandler
 
struct  OdTfFixedMergeHandler< conflictResolution >
 
struct  OdTfPostponeMergeHandler
 
struct  OdTfPostponeMergeHandler::Conflict
 
struct  OdTfStorage
 
class  OdTfRepository
 

Namespaces

namespace  OdTfRevisionControl
 

Macros

#define STL_USING_MAP
 

Typedefs

typedef OdArray< OdTfDigest, OdMemoryAllocator< OdTfDigest > > OdTfDigestArray
 
typedef std::map< OdString, OdTfDigestOdTfRevisionControl::ReferenceList
 
typedef std::map< OdDbHandle, ChangeType > OdTfRevisionControl::ChangeList
 
typedef OdSmartPtr< OdTfRepositoryOdTfRepositoryPtr
 
typedef OdSmartPtr< OdTfStorageOdTfStoragePtr
 

Enumerations

enum  OdTfRevisionControl::ChangeType { OdTfRevisionControl::kObjectUnmodified = 0 , OdTfRevisionControl::kObjectAdded = 1 , OdTfRevisionControl::kObjectDeleted , OdTfRevisionControl::kObjectModified }
 
enum  OdTfRevisionControl::MergeFlags {
  OdTfRevisionControl::kMergeFlagBase = 0 , OdTfRevisionControl::kMergeFlagMine = 1 , OdTfRevisionControl::kMergeFlagTheirs = 2 , OdTfRevisionControl::kMergeFlagFull = 4 ,
  OdTfRevisionControl::kMergeMaskMineTheirs = kMergeFlagMine | kMergeFlagTheirs , OdTfRevisionControl::kMergeMaskResolution = kMergeMaskMineTheirs | kMergeFlagFull
}
 
enum  OdTfRevisionControl::MergeResolution {
  OdTfRevisionControl::kMergeRevertFull = kMergeFlagBase | kMergeFlagFull , OdTfRevisionControl::kMergeMineConflict = kMergeFlagMine , OdTfRevisionControl::kMergeMineFull = kMergeFlagMine | kMergeFlagFull , OdTfRevisionControl::kMergeTheirsConflict = kMergeFlagTheirs ,
  OdTfRevisionControl::kMergeTheirsFull = kMergeFlagTheirs | kMergeFlagFull , OdTfRevisionControl::kMergePostpone = kMergeMineFull , OdTfRevisionControl::kMergeNoResolution = 0
}
 

Functions

bool OdTfRevisionControl::isConflict (ChangeType myChange, ChangeType theirChange)
 
TFDLL_EXPORT OdTfRepositoryOdTfRevisionControl::getRepository (OdDbDatabase *pDb)
 
TFDLL_EXPORT OdTfRepositoryPtr OdTfRevisionControl::detachRepository (OdDbDatabase *pDb)
 
TFDLL_EXPORT OdTfDigest OdTfRevisionControl::commit (OdDbDatabase *pDb, const OdTfCommitAnnotation &message, const OdDbObjectIdArray *objectsToSave=0)
 
TFDLL_EXPORT bool OdTfRevisionControl::dryMerge (const OdDbDatabase *pDb, const OdTfDigest &sha, OdTfMergeHandler &mergeHandler)
 
TFDLL_EXPORT bool OdTfRevisionControl::dryMerge (const OdDbDatabase *pDb, const OdString &reference, OdTfMergeHandler &mergeHandler)
 
TFDLL_EXPORT bool OdTfRevisionControl::merge (OdDbDatabase *pDb, const OdTfDigest &sha, OdTfMergeHandler &mergeHandler, bool noFastForward=false)
 
TFDLL_EXPORT bool OdTfRevisionControl::merge (OdDbDatabase *pDb, const OdString &reference, OdTfMergeHandler &mergeHandler, bool noFastForward=false)
 
TFDLL_EXPORT OdString OdTfRevisionControl::getLocalBranch (OdDbDatabase *pDb, OdTfDigest *head=0)
 
TFDLL_EXPORT void OdTfRevisionControl::switchBranch (OdDbDatabase *pDb, const OdString &branch, bool hard=true)
 
TFDLL_EXPORT OdDbObjectIdArray OdTfRevisionControl::getLocalChanges (OdDbDatabase *pDb)
 
TFDLL_EXPORT OdStreamBufPtr OdTfRevisionControl::compressData (OdDbDatabase *pDb)
 
TFDLL_EXPORT void OdTfRevisionControl::loadObjects (OdDbDatabase *pDb, OdDbObjectIterator *pObjects, OdMTLoadReactor *pReactor=0)
 
TFDLL_EXPORT void OdTfRevisionControl::beginPartialImport (OdStreamBufPtr pStream, OdDbDatabase *pDb)
 
TFDLL_EXPORT void OdTfRevisionControl::writeObjectPartial (OdDbObjectId id, bool pageObjectToDisk=true)
 
TFDLL_EXPORT void OdTfRevisionControl::endPartialImport (OdDbDatabase *pDb)
 
TFDLL_EXPORT void OdTfRevisionControl::getRevisionDifference (OdDbDatabase *pDb, const OdTfDigest &newRevision, const OdTfDigest &oldRevision, ChangeList &result)
 
TFDLL_EXPORT bool OdTfRevisionControl::getCommonAncestor (OdDbDatabase *pDb, const OdTfDigest &theirSha, OdTfDigest &ancestor)
 

Macro Definition Documentation

◆ STL_USING_MAP

#define STL_USING_MAP

Definition at line 32 of file TfRevisionControl.h.

Typedef Documentation

◆ OdTfDigestArray

This type represents arrays of hash codes.

Definition at line 131 of file TfRevisionControl.h.

◆ OdTfRepositoryPtr

This template class is a specialization of the OdSmartPtr class for smart pointers to objects of the OdTfRepository class.

Definition at line 395 of file TfRevisionControl.h.

◆ OdTfStoragePtr

This template class is a specialization of the OdSmartPtr class for smart pointers to objects of the OdTfStorage structure.

Definition at line 404 of file TfRevisionControl.h.