NAME
OTC_TagInfo -
Maintain name and state of a named trace switch.
SYNOPSIS
#include <OTC/debug/taginfo.hh>
class OTC_TagInfo
{
public:
friend class OTC_TraceInfoDummy;
inline OTC_TagInfo(
char const* theName,
int theLevel,
OTC_TagInfo* theTagInfo=0
);
inline char const* name() const;
inline int level() const;
inline void setLevel(int theLevel);
inline OTC_TagInfo* next() const;
};
CLASS TYPE
Concrete
DESCRIPTION
OTC_TagInfo is used to store the name and trace level for
instances of the OTC_TraceTag class. Instances of the
class are never destroyed.
CONSTRUCTION
inline OTC_TagInfo(
char const* theName,
int theLevel,
OTC_TagInfo* theTagInfo=0
);
Links this class in front of theTagInfo,
setting the switch name to theName and
the initial trace level of the named
switch to theLevel.
QUERY/CHANGE
inline char const* name() const;
Returns the name of the switch.
inline int level() const;
Returns the trace level of the named
switch.
inline void setLevel(int theLevel);
Sets the trace level of the named switch.
ITERATION
inline OTC_TagInfo* next() const;
Returns a pointer to the switch description
object following this one.
SEE ALSO
OTC_TraceTag
LIBRARY
OTC
AUTHOR(S)
Graham Dumpleton
COPYRIGHT
Copyright 1993 TELSTRA CORPORATION LIMITED