[OPUS]

Opus_time_stamp - A base class for Start_time and Time_stamp objects.


Availability:

This class is available for the OPUS Blackboard API. The initial OPUS 2.0 release is described here

Constructors:
Opus_time_stamp( )
~Opus_time_stamp( )

Methods:
assign( ) overrides the base class to validate the argument

Description

This class performs basic argument checking and assignment for the two time stamp based objects, Time_stamp and Start_time.

Derived from

Field

See Also:


Opus_time_stamp::Opus_time_stamp - The Opus_time_stamp constructor.

Synopsis


Opus_time_stamp::Opus_time_stamp(
                                 const int id,   // I - Field ID
                                 const int sz)   // I - Field size

Opus_time_stamp::Opus_time_stamp(
                                 const int id,    // I - Field ID
                                 const int sz,    // I - Field size
                                 const string& s) // I - time string

Opus_time_stamp::Opus_time_stamp(
                                 const Opus_time_stamp& di) // I - initializer

Description

The constructor initializes the object with the calling argument (which must be in hex format). The default constructor places the current system time (in hex) into the object.

Exceptions Thrown

Bad_val<string> - if string contains invalid characters or wrong size; Bad_val.arg contains the calling argument


Opus_time_stamp::~Opus_time_stamp - The Opus_time_stamp destructor.

Synopsis


Opus_time_stamp::~Opus_time_stamp()

Description

This method destroys the object.

Exceptions Thrown

none


Opus_time_stamp::assign - Validate string as an Opus_time_stamp value.

Synopsis


void Opus_time_stamp::assign(
                             const string& s) // I - string to assign from

Description

This method scans the string for invalid characters before assigning it the to the object.

Exceptions Thrown

Bad_val<string> - if string contains invalid characters or wrong size; Bad_val.arg contains the calling argument


OPUS API index · STScI Home Page · Search · Topics · Index

Copyright © 1997-2000 The Association of Universities for Research in Astronomy, Inc. All Rights Reserved.


For more information, contact opushelp@stsci.edu

Last modified: 25 April 2000