Main Page   Modules   Namespace List   Class Hierarchy   Alphabetical List   Data Structures   File List   Namespace Members   Data Fields   Globals   Related Pages   Examples  

MarkType Class Reference
[Utilities]


Detailed Description

MarkType describes a trace mark.

Author:
Ralf Gerstenberger

See also:
Trace TraceProducer TraceConsumer Tag
A mark is defined by its MarkType. The MarkType can be a string (name) and/or a number. A MarkType is always associated to a definition scope.

Usage of MarkType:
void sendMark(TraceProducerX* s, Mark m) {}

int main ()
{
        TraceProducerX prod;
        static const MarkTypeId FingerPrint = MarkType::NOID + 100;
        sendMark(&prod, MarkType("Footprint", typeid(X)) );
        sendMark(&prod, MarkType(FingerPrint, typeid(X));
        sendMark(&prod, MarkType("FootPrint", FingerPrint, typeid(X)));
}
Since:
1.0


Public Member Functions

const char * getName () const
 get MarkType name

MarkTypeId getId () const
 get MarkType id

const std::type_info & getScope () const
 get MarkType definition scope

Construction
 MarkType (const char *n, const std::type_info &s)
 constructor

 MarkType (MarkTypeId i, const std::type_info &s)
 constructor

 MarkType (const char *n, MarkTypeId i, const std::type_info &s)
 constructor


Static Public Attributes

const MarkTypeId NOID
const char * NONAME


Constructor & Destructor Documentation

MarkType const char *  n,
const std::type_info &  s
[inline]
 

constructor

Parameters:
n name of MarkType
s scope of MarkType

MarkType MarkTypeId  i,
const std::type_info &  s
[inline]
 

constructor

Parameters:
i id of MarkType
s scope of MarkType

MarkType const char *  n,
MarkTypeId  i,
const std::type_info &  s
[inline]
 

constructor

Parameters:
n name of MarkType
i id of MarkType
s scope of MarkType


Generated on Mon Aug 11 10:36:07 2003 for ODEMx by doxygen1.3