The TimeMetadata class is a smart pointer. It represents a piece of time Metadata, i.e., a 32-bit integer to be interpreted as time_t. More...

Inheritance diagram for HPS.TimeMetadata:
HPS.Metadata HPS.Sprocket HPS.Object

Public Member Functions

override void Dispose ()
 
uint GetValue ()
 Gets the unsigned integer value for this TimeMetadata. More...
 
string GetValueAsString ()
 Gets the string represenation of the time value as returned by asctime() for this TimeMetadata. More...
 
override HPS.Type ObjectType ()
 This function returns the type the object, as declared. This does not necessarily give the true type of the underlying object. More...
 
void SetValue (uint in_value)
 Sets the unsigned integer value (interpreted like time_t) for this TimeMetadata. More...
 
 TimeMetadata ()
 The default constructor creates an uninitialized TimeMetadata object. The Type() function will return Type.None. More...
 
 TimeMetadata (HPS.Metadata in_that)
 This constructor creates a TimeMetadata object that shares the underlying smart-pointer of the source Metadata. The copy will only be successful if the source component is really an upcast of a TimeMetadata object. Otherwise the copy will fail and the resulting TimeMetadata will be invalid. More...
 
 TimeMetadata (HPS.TimeMetadata in_that)
 The copy constructor creates a TimeMetadata object that shares the underlying smart-pointer of the source TimeMetadata. More...
 
 TimeMetadata (string in_name, uint in_value)
 This constructor creates a TimeMetadata with a given name and value. More...
 
- Public Member Functions inherited from HPS.Sprocket
 Sprocket (HPS.Sprocket in_that)
 
- Public Member Functions inherited from HPS.Object
virtual bool Empty ()
 Indicates whether this object has any values set on it. More...
 
IntPtr GetClassID ()
 
IntPtr GetInstanceID ()
 Returns an identifier that can be used to identify which instance of a class an object is. Different keys and controls will return the same value if they are backed by the same database resource. More...
 
bool HasType (HPS.Type in_mask)
 This function indicates whether this Object has the given Type mask. More...
 
 Object (HPS.Object that)
 
virtual void Reset ()
 Resets this object to its initial, uninitialized state. More...
 
HPS.Type Type ()
 This function returns the true type of the underlying object. This function is useful for finding the type of smart pointer objects that have been cast to more generic types. More...
 

Protected Member Functions

override void deleteCptr ()
 
- Protected Member Functions inherited from HPS.Object
virtual IntPtr GetNonDirectorClassID ()
 

Additional Inherited Members

- Static Public Member Functions inherited from HPS.Object
static IntPtr ClassID< T > ()
 
- Protected Attributes inherited from HPS.Object
bool cMemOwn
 
HandleRef cptr
 

Detailed Description

The TimeMetadata class is a smart pointer. It represents a piece of time Metadata, i.e., a 32-bit integer to be interpreted as time_t.

Constructor & Destructor Documentation

HPS.TimeMetadata.TimeMetadata ( )
inline

The default constructor creates an uninitialized TimeMetadata object. The Type() function will return Type.None.

HPS.TimeMetadata.TimeMetadata ( HPS.Metadata  in_that)
inline

This constructor creates a TimeMetadata object that shares the underlying smart-pointer of the source Metadata. The copy will only be successful if the source component is really an upcast of a TimeMetadata object. Otherwise the copy will fail and the resulting TimeMetadata will be invalid.

Parameters
in_thatThe source Metadata to copy.
HPS.TimeMetadata.TimeMetadata ( HPS.TimeMetadata  in_that)
inline

The copy constructor creates a TimeMetadata object that shares the underlying smart-pointer of the source TimeMetadata.

Parameters
in_thatThe source TimeMetadata to copy.
HPS.TimeMetadata.TimeMetadata ( string  in_name,
uint  in_value 
)
inline

This constructor creates a TimeMetadata with a given name and value.

Parameters
in_nameThe UTF8-encoded name for this TimeMetadata.
in_valueThe unsigned integer value (interpreted like time_t) for this TimeMetadata.

Member Function Documentation

uint HPS.TimeMetadata.GetValue ( )
inline

Gets the unsigned integer value for this TimeMetadata.

Returns
The unsigned integer value for this TimeMetadata.
string HPS.TimeMetadata.GetValueAsString ( )
inline

Gets the string represenation of the time value as returned by asctime() for this TimeMetadata.

Returns
The string representation of the time value as returned by asctime() for this TimeMetadata.
override HPS.Type HPS.TimeMetadata.ObjectType ( )
inlinevirtual

This function returns the type the object, as declared. This does not necessarily give the true type of the underlying object.

Returns
The declared type of the object in question, which may differ from the true, underlying type.

Reimplemented from HPS.Metadata.

void HPS.TimeMetadata.SetValue ( uint  in_value)
inline

Sets the unsigned integer value (interpreted like time_t) for this TimeMetadata.

Parameters
in_valueThe unsigned integer value (interpreted like time_t) for this TimeMetadata.

The documentation for this class was generated from the following file:
  • internals/hps_sprk/source/cs/HPS.TimeMetadata.cs