The ICCBranchType interface represents the Rational® ClearCase® branch type object.
Every branch is an instance of a kind of branch type. In general, the meaning associated with a particular branch type is user-defined. (Some pre-defined kinds of branch types have meaning to Rational ClearCase itself and are used as part of the implementation of Rational ClearCase.)
You can get a CCBranchType object from the following interfaces:
Creates an instance of this branch type (a branch) sprouting from the specified version and checks out the branch
Method
Function Apply(pVersion As CCVersion, [Comment As String = "" ]) As CCCheckedOutFile
ICCCheckedOutFilePtr Apply( ICCVersion* pVersion, _bstr_t Comment);
The checked-out branch.
Creates an instance of this branch type (a branch) sprouting from the specified version without checking out the branch
Method
Sub ApplyNoCheckOut(pVersion As CCVersion, [ CommentAs String = "" ])
HRESULT ApplyNoCheckOut( ICCVersion* pVersion, _bstr_t Comment);
Member of: ICCBranchType Interface
Gets the constraint for this branch type (for example, one per element)
Read-Only Property
Property Constraint As CCTypeConstraint
CCTypeConstraint GetConstraint();
A CCTypeConstraint value.
Locks this branch type
Method
Sub CreateLock([ Comment As String = "" ], [ Obsolete As Boolean = False ], [ ExemptUsersStringArray As Variant ])
HRESULT CreateLock( _bstr_t Comment, VARIANT_BOOL Obsolete, const _variant_t& ExemptUsersStringArray = vtMissing);
Gets the group to which this branch type belongs
Read-Only Property
Property Group As String
_bstr_t GetGroup();
Gets the lock on this branch type
Read-Only Property
Property Lock As CCLock
ICCLockPtr GetLock();
Gets the master replica for this branch type
Read-Only Property
Property Master As String
_bstr_t GetMaster();
It is most likely that you want to operate on the local copy of the branch type.
Gets the name of the branch type
Read-Only Property
Property Name As String
_bstr_t GetName();
Gets the owner of this branch type
Read-Only Property
Property Owner As String
_bstr_t GetOwner();
Removes this branch type from VOB
Method
Sub RemoveType([ RemoveAllInstances As Boolean = False ],[ Comment As String = "" ])
HRESULT RemoveType( VARIANT_BOOL RemoveAllInstances, _bstr_t Comment);
Member of: ICCBranchType Interface
Gets the scope of this branch type (for example, local to this VOB)
Read-Only Property
Property Scope As CCTypeScope
CCTypeScope GetScope();
A CCTypeScope value.
Sets the constraint for this branch type (for example, one per element)
Method
Sub SetConstraint(NewConstraint As CCTypeConstraint, [ Comment As String = "" ])
HRESULT SetConstraint( CCTypeConstraint NewConstraint, _bstr_t Comment);
Sets the group to which this branch type belongs
Method
Sub SetGroup(NewGroup As String, [ Comment As String = "" ])
HRESULT SetGroup( _bstr_t NewGroup, _bstr_t Comment);
Sets the master replica for this branch type
Method
Sub SetMaster(Replica As String, [ Comment As String = "" ])
HRESULT SetMaster( _bstr_t Replica, _bstr_t Comment);
It is most likely that you want to operate on the local copy of the branch type.
Changes the name of this branch type and all instances of the branch type
Method
Sub SetName(NewName As String, [ Comment As String = "" ])
HRESULT SetName( _bstr_t NewName, _bstr_t Comment);
Sets the owner of this branch type
Method
Sub SetOwner(NewOwner As String, [ Comment As String = "" ])
HRESULT SetOwner( _bstr_t NewOwner, _bstr_t Comment);
Sets the scope of this branch type (for example, local to this VOB)
Method
Sub SetScope(Global As Boolean, [ Acquire As Boolean = False ],[ Comment As String = "" ])
HRESULT SetScope( VARIANT_BOOL Global, VARIANT_BOOL Acquire, _bstr_t Comment);