In file Name.hh:

class Name

Defines an event name

Inheritance:


Public Methods

[more] Name ()
Default constructor
[more]explicit Name (int id)
Default constructor
[more]explicit Name (const char* name)
Constructor
[more]explicit Name (const std::string& name)
Constructor
[more]bool SetName (const char* name)
Set name
[more]const char* GetName () const
Get event name
[more]int GetId () const
Get event ID
[more]bool operator== (const Name& n) const
Equality operator
[more]bool operator!= (const Name& n) const
Inequality operator
[more]static int GetNameId (const char* name)
Get event ID
[more]static bool Test (const char* name)
Test name
[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 names.
[more]static void DumpAll ()
Dump all registered names.


Documentation

Describes the event name. An event name can not contain the characters "(", ")", "[", "]" or ".".

o Name()
Creates an empty event name.

oexplicit Name(int id)
Creates an event name.
Parameters:
name - Name representing the event name

oexplicit Name(const char* name)
Creates an event name.
Parameters:
name - Name representing the event name

oexplicit Name(const std::string& name)
Creates an event name.
Parameters:
name - Name representing the event name

obool SetName(const char* name)
Sets the event name.
Parameters:
name - Name representing the event name
Returns:
true if successful

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

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

obool operator== (const Name& n) const
Test if two event names are equal.
Returns:
true if identical event names

obool operator!= (const Name& n) const
Test if two event names are unequal.
Returns:
true if different event names

ostatic int GetNameId(const char* name)
Get the event ID of the given string. Will not register the name but rather return 0 if the name does not exists.
Returns:
ID

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

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

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

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

ostatic void DumpAll()
Dump all registered names 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