In file Type.hh:

class Type

Defines an event type

Inheritance:


Public Methods

[more] Type ()
Default constructor
[more]explicit Type (const char* name)
Default constructor
[more]explicit Type (const std::string& name)
Default constructor
[more] Type (const Type& type)
Copy constructor
[more] ~Type ()
Destructor
[more]Type& operator= (const Type& type)
Assignment operator
[more]bool SetType (const char* name)
Set type
[more]const char* GetName () const
Get event type
[more]int GetId () const
Get event ID
[more]const TypeInfo* GetTypeInfo () const
Get type information
[more]const LayoutInfo* GetLayout () const
Get layout information
[more]bool operator== (const Type& t) const
Equality operator
[more]bool operator!= (const Type& t) const
Inequality operator
[more]bool operator< (const Type& t) const
Smaller than operator
[more]static bool Test (const char* name)
Test type
[more]bool Match (const char* pat) const
Match operator
[more]static bool CheckName (const char* name)
Check name
[more]static void DumpAll (std::ostream& os)
Dump all registered types.
[more]static void DumpAll ()
Dump all registered types.


Documentation

Describes the event type. An event type consists of a name and a subtype. Type and subtype names can not contain the characters "(", ")", "[", "]" or ".".

o Type()
Creates an empty event type.

oexplicit Type(const char* name)
Creates an event type.
Parameters:
name - Name representing the event type
subtype - Subtype of the event

oexplicit Type(const std::string& name)
Creates an event type.
Parameters:
name - Name representing the event type
subtype - Subtype of the event

o Type(const Type& type)
Copy constructor.
Parameters:
type - Event type

o ~Type()
Destroys the event type.

oType& operator= (const Type& type)
Assignment operator.
Parameters:
type - Event type
Returns:
*this

obool SetType(const char* name)
Sets the event type.
Parameters:
name - Name representing the event type
subtype - Subtype of the event
Returns:
true if successful

oconst char* GetName() const
Get the event name.
Returns:
name

oint GetId() const
Get the event ID.
Returns:
name

oconst TypeInfo* GetTypeInfo() const
Get the type information record.
Returns:
type information record

oconst LayoutInfo* GetLayout() const
Get the the layout information record.
Returns:
layout information record

obool operator== (const Type& t) const
Test if two event types are equal.
Returns:
true if identical event types

obool operator!= (const Type& t) const
Test if two event types are unequal.
Returns:
true if different event types

obool operator< (const Type& t) const
Smaller than operator. Compares the type Id and subtype Id.
Returns:
true if smaller

ostatic bool Test(const char* name)
Tests if the event type exists.
Parameters:
name - Name representing the event type
subtype - Subtype of the event
Returns:
true if type exists

obool Match(const char* pat) const
Tests if the pattern matches the event type. The pattern can contain a wildcard.
Parameters:
pat - Pattern for event name
Returns:
true if event type matches pattern

ostatic bool CheckName(const char* name)
Check if a valid type name is specified.
Parameters:
name - Type or subtype name
Returns:
True if valid

ostatic void DumpAll(std::ostream& os)
Dump all registered types to the specified output stream.
Parameters:
os - output stream

ostatic void DumpAll()
Dump all registered types to the standard output stream.
Parameters:
os - output stream


This class has no child classes.
Author:
Written June 2001 by Masahiro Ito and Daniel Sigg
Version:
1.0

Alphabetic index HTML hierarchy of classes or Java


Please send questions and comments to zweizig_j@ligo-wa.caltech.edu