This ADT is a counter which can be used in a relation to provide a sequence of unique ordered integer values
![]() | CounterTypeId Type ID accessible without object |
![]() | CounterMetaInfo : public XxxADTMetaInfo Meta-info for counters
|
This ADT is a counter which can be used in a relation to provide a sequence of unique ordered integer values. This is useful for adding a record ID to a record when inserting it into a relation. The meta-info stores the most recently-assigned value, so it is always accessible as a default value for insertion. This data type guarantees that all objects bound to a single meta-info object will have unique values. It is not necessarily guaranteed that all values are used.
XxxShoreObjectId myId
CounterMetaInfo()
virtual ~CounterMetaInfo()
virtual XxxErrCode Replicate(XxxADTMetaInfo*& NewMI)
virtual void Print(ostream& OStr)
virtual XxxBool IsCompatible(const XxxADTMetaInfo* OtherMI)
virtual XxxErrCode SerializeCopySize(int &Size)
virtual XxxErrCode SerializeCopy(char *Data)
XxxCounterADT(XxxBasicType Id)
virtual ~XxxCounterADT()
virtual void Print(ostream& OStr, const XxxADTMetaInfo* MetaInfo)
virtual XxxBool Equals(const XxxADTValue* Obj1, const XxxADTMetaInfo*, const XxxADTValue* Obj2, const XxxADTMetaInfo*)
virtual XxxErrCode DefaultVal(XxxADTValue* ObjectRef, const XxxADTMetaInfo* MetaInfo)
virtual XxxErrCode WriteText(ostream& OutStream, const XxxADTValue* Object, const XxxADTMetaInfo* MetaInfo)
virtual XxxErrCode ReadText(istream& InStream, XxxADTValue* ObjectRef, const XxxADTMetaInfo* MetaInfo)
virtual XxxBool LessThan(const XxxADTValue* Val1, const XxxADTMetaInfo*, const XxxADTValue* Val2, const XxxADTMetaInfo*)
virtual XxxBool GreaterThan(const XxxADTValue* Val1, const XxxADTMetaInfo*, const XxxADTValue* Val2, const XxxADTMetaInfo*)
virtual XxxBool CanCastTo(XxxBasicType TargetType, const XxxADTMetaInfo* SourceMetaInfo, const XxxADTMetaInfo* TargetMetaInfo)
virtual XxxErrCode CastTo(XxxBasicType TargetType, const XxxADTMetaInfo* SourceMetaInfo, const XxxADTMetaInfo* TargetMetaInfo, XxxADTValue* OldObject, XxxADTValue* NewObject)
virtual XxxErrCode parseMetaInfo(const char* MetaInfoString, MetaInfoHandle& MIHandle)
MIHandle - (out) A handle on the newly-created meta info virtual XxxErrCode makeMetaInfo(const MetaInfoHandle& MIHandle, XxxADTMetaInfo* &MetaInfo)
MIHandle - (in) A handle on the meta info
MetaInfo - (out) A pointer to a newly-created MI object
Found - (out) XXX_FALSE if the MI was not found
this page has been generated automatically by doc++
(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de