In file trig/SegList.hh:

class TrigProc

Trigger process class.

Inheritance:


Public Methods

[more] TrigProc (void)
Default constructor.
[more] TrigProc (const TrigProc& x)
Copy constructor.
[more] TrigProc (const char* cvsid, const char* title=0)
Create a trigger process identifier.
[more] TrigProc (const char* Source, const char* Version, gps_t Start, const char* Host, pid_t PID=0, bool Online=false, const char* IFOs=0, const char* Author=0, gps_t Mod=0, const char* Title=0, const char* Exec=0, gps_t End=0)
Trigger process ID constructor.
[more] ~TrigProc ()
Destroy a trigger process.
[more]const char* getAuthor (void) const
Get the author's name.
[more]gps_t getEndTime (void) const
Process start time.
[more]const char* getComment (void) const
Get the segment comment.
[more]const char* getCvsID (void) const
Get the cvs ID.
[more]const char* getIFOs (void) const
Interferometer list.
[more]gps_t getModTime (void) const
Process start time.
[more]const char* getName (void) const
Get the program name.
[more]const char* getNode (void) const
Get the process node.
[more]const char* getParamSet (void) const
Get the database record ID.
[more]const char* getProcessID (void) const
Get the database record ID.
[more]pid_t getProcID (void) const
Get the unix process ID.
[more]const char* getSource (void) const
Source file name.
[more]gps_t getStartTime (void) const
Process start time.
[more]const char* getTitle (void) const
Get the program title.
[more]const char* getVersion (void) const
Get the program version.
[more]TrigProc& operator= (const TrigProc& x)
Assignment operator
[more]bool operator== (const TrigProc& x) const
Compare two process identifiers.
[more]bool isOnline (void) const
Test for online process.
[more]void setComment (const std::string& comment)
Set the comment.
[more]void setCvsID (const std::string& ID)
Set the process Database foreign ID
[more]void setEndTime (gps_t tEnd)
Set the process end time
[more]void setIFOs (const std::string& ifos)
Set the process Database foreign ID
[more]void setProcessID (const std::string& ID)
Set the process Database foreign ID


Documentation

The trigger process class is used to describe the process used to generate a trigger. The current version of the TrigProc class maps directly into the LDAS meta-database process table record as defined in the November 30, 1999 version of Peter Shawhans database memo "Table Definitions for LDAS Metadata / Event Database" (LIGO-T990101-02-E).
o TrigProc(void)
Default constructor.

o TrigProc(const TrigProc& x)
Copy constructor.

o TrigProc(const char* cvsid, const char* title=0)
Make a connection to the trigger broker and get a process ID.

o TrigProc(const char* Source, const char* Version, gps_t Start, const char* Host, pid_t PID=0, bool Online=false, const char* IFOs=0, const char* Author=0, gps_t Mod=0, const char* Title=0, const char* Exec=0, gps_t End=0)
Construct the process ID from a detailed list of data.

o ~TrigProc()
Remove the trigger process. Unregister with the trigger broker.

oconst char* getAuthor(void) const
getAuthor returns a static pointer to the author's name.

ogps_t getEndTime(void) const
getEndTime returns the time at which the process described by this TrigProc object ended. The end time is Time(0) if the process is still running or if the end time was not recorded.
Returns:
Process end tiem or zero (see text).

oconst char* getComment(void) const
Get the segment comment.
Returns:
Pointer to the comment string.

oconst char* getCvsID(void) const
Get the Cvs ID for the program Source file.

oconst char* getIFOs(void) const
Get a list of interferometers that this process monitors.

ogps_t getModTime(void) const
Get the time at which the cvs sources were last modified.

oconst char* getName(void) const
Get a pointer to the program name.
Returns:
A static pointer to the program name.

oconst char* getNode(void) const
getNode returns a constant pointer to the process node.

oconst char* getParamSet(void) const
Returns the database ID of this process.

oconst char* getProcessID(void) const
Returns the database ID of this process.

opid_t getProcID(void) const
Returns the unix process ID of this process.

oconst char* getSource(void) const
Get the name of the cvs source file (repository and file name) from which the main object was compiled to make the executable.

ogps_t getStartTime(void) const
getStartTime returns the time at which the process described by this trigProc object started.

oconst char* getTitle(void) const
getName returns a static pointer to the program title.

oconst char* getVersion(void) const
Get the program version number retrieved from the CVS header.
Returns:
a static pointer to the cvs version string.

oTrigProc& operator=(const TrigProc& x)
Assignment operator.

obool operator==(const TrigProc& x) const
See if two TrigProcs define the identical process. The fields compared are the Program name, the unix process ID, the node name and the start time. These fields are used to generate the primary key in the database, so equal process IDs will necessarily refer to the same metadata table row.
Parameters:
x - Process to be compared to this.
Returns:
true if the processes are the same.

obool isOnline(void) const
Test whether the specified is (was) an online process.

ovoid setComment(const std::string& comment)
Set a comment for this process.
Parameters:
comment - Comment info for this process.

ovoid setCvsID(const std::string& ID)
Set the process Database foreign ID

ovoid setEndTime(gps_t tEnd)
Set the process end time

ovoid setIFOs(const std::string& ifos)
Set the process Database foreign ID

ovoid setProcessID(const std::string& ID)
Set the process Database foreign ID


This class has no child classes.
Author:
J. Zweizig
Version:
1.1; Modified December 20, 1999

Alphabetic index HTML hierarchy of classes or Java


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