Public Types | Public Member Functions | Static Public Member Functions | Static Public Attributes

Engine::UTCTimeOnly Class Reference

Incapsulates UTCTimeOnly FIX type. More...

#include <B2BITS_UTCTimeOnly.h>

List of all members.

Public Types

typedef System::u32 value_type
 A type that represents internal representation of the date.

Public Member Functions

int hour () const
 Returns day hour of value.
int millisecond () const
 Returns day millisecond of value.
int minute () const
 Returns day minute of value.
bool operator!= (const UTCTimeOnly &v) const
 Compare operators.
bool operator== (const UTCTimeOnly &v) const
 Compare operators.
int second () const
 Returns day second of value.
System::u32 toDecimal () const
 Returns value in decimal format (YYYYMMDDHHMMSSzzz)
std::string & toFixString (std::string *dest, bool keepmsec=false) const
 Converts value stored in object to FIX string 'HH:MM:SS.zzz'.
char * toFixString (char *buf, char *end, bool keepmsec=false) const
 Converts stored value to FIX string 'HH:MM:SS.zzz'.
 UTCTimeOnly (int hour, int minute, int second, int millisecond=0)
 Constructor. Constructs object from year, month, day, hour, minute, second and millisecond values.
 UTCTimeOnly ()
 Default constructor.

Static Public Member Functions

static UTCTimeOnly fromDecimal (System::u32 val)
 Constructs object from decimal date format (YYYYMMDDHHMMSSzzz).
static UTCTimeOnly fromFixString (AsciiString val)
 Constructs object from FIX string (YYYYMMDD-HH:MM:SS.zzz).
static UTCTimeOnly now ()
 Returns current system time in UTC.

Static Public Attributes

static const unsigned int ValueSize = ValueSizeWithMilliseconds
 Maximum buffer size required to store value.
static const unsigned int ValueSizeNoMilliseconds = sizeof("HH:MM:SS") - 1
 Maximum buffer size required to store value.
static const unsigned int ValueSizeWithMilliseconds = sizeof("HH:MM:SS.sss") - 1
 Maximum buffer size required to store value.

Detailed Description

Incapsulates UTCTimeOnly FIX type.

Definition at line 61 of file B2BITS_UTCTimeOnly.h.


Member Typedef Documentation

typedef System::u32 Engine::UTCTimeOnly::value_type

A type that represents internal representation of the date.

Definition at line 65 of file B2BITS_UTCTimeOnly.h.


Constructor & Destructor Documentation

Engine::UTCTimeOnly::UTCTimeOnly (  )

Default constructor.

Engine::UTCTimeOnly::UTCTimeOnly ( int  hour,
int  minute,
int  second,
int  millisecond = 0 
)

Constructor. Constructs object from year, month, day, hour, minute, second and millisecond values.


Member Function Documentation

static UTCTimeOnly Engine::UTCTimeOnly::fromDecimal ( System::u32  val ) [static]

Constructs object from decimal date format (YYYYMMDDHHMMSSzzz).

static UTCTimeOnly Engine::UTCTimeOnly::fromFixString ( AsciiString  val ) [static]

Constructs object from FIX string (YYYYMMDD-HH:MM:SS.zzz).

int Engine::UTCTimeOnly::hour (  ) const

Returns day hour of value.

int Engine::UTCTimeOnly::millisecond (  ) const

Returns day millisecond of value.

int Engine::UTCTimeOnly::minute (  ) const

Returns day minute of value.

static UTCTimeOnly Engine::UTCTimeOnly::now (  ) [static]

Returns current system time in UTC.

bool Engine::UTCTimeOnly::operator!= ( const UTCTimeOnly v ) const [inline]

Compare operators.

Definition at line 132 of file B2BITS_UTCTimeOnly.h.

bool Engine::UTCTimeOnly::operator== ( const UTCTimeOnly v ) const [inline]

Compare operators.

Definition at line 128 of file B2BITS_UTCTimeOnly.h.

int Engine::UTCTimeOnly::second (  ) const

Returns day second of value.

System::u32 Engine::UTCTimeOnly::toDecimal (  ) const

Returns value in decimal format (YYYYMMDDHHMMSSzzz)

std::string& Engine::UTCTimeOnly::toFixString ( std::string *  dest,
bool  keepmsec = false 
) const

Converts value stored in object to FIX string 'HH:MM:SS.zzz'.

char* Engine::UTCTimeOnly::toFixString ( char *  buf,
char *  end,
bool  keepmsec = false 
) const

Converts stored value to FIX string 'HH:MM:SS.zzz'.

Parameters:
bufMemory buffer enough to store string like HH:MM:SS.zzz
Returns:
pointer to the first character of the result. Last character of result is last character of the 'buf' parameter.

Member Data Documentation

Maximum buffer size required to store value.

Definition at line 74 of file B2BITS_UTCTimeOnly.h.

const unsigned int Engine::UTCTimeOnly::ValueSizeNoMilliseconds = sizeof("HH:MM:SS") - 1 [static]

Maximum buffer size required to store value.

Definition at line 71 of file B2BITS_UTCTimeOnly.h.

const unsigned int Engine::UTCTimeOnly::ValueSizeWithMilliseconds = sizeof("HH:MM:SS.sss") - 1 [static]

Maximum buffer size required to store value.

Definition at line 68 of file B2BITS_UTCTimeOnly.h.