Public Member Functions | Private Attributes

val_Time Class Reference
[Parser for config files; validation]

#include <val.h>

Inheritance diagram for val_Time:
Inheritance graph
Collaboration diagram for val_Time:
Collaboration graph

List of all members.

Public Member Functions

 val_Time (const string &a_name, const val_Limit a_limits, const UInt32_t a_minNumOfVal=1, const UInt64_t a_maxNumOfVal=cfg_INFINITE, const string &a_defaultStr="")
virtual ~val_Time ()
virtual void Bind (ivd_Time32_t &a_time)
virtual void Assign (const string &a_strVal)

Private Attributes


Detailed Description

Definition at line 603 of file val.h.

Constructor & Destructor Documentation

val_Time::val_Time ( const string &  a_name,
const val_Limit  a_limits,
const UInt32_t  a_minNumOfVal = 1,
const UInt64_t  a_maxNumOfVal = cfg_INFINITE,
const string &  a_defaultStr = "" 

Definition at line 698 of file val.cpp.

  : val_Value(a_name, a_limits, a_minNumOfVal, a_maxNumOfVal,  a_defaultStr ),
    m_time_p(NULL) {
    // Empty

val_Time::~val_Time (  )  [virtual]

Definition at line 710 of file val.cpp.


Member Function Documentation

void val_Time::Assign ( const string &  a_strVal  )  [virtual]

Definition at line 718 of file val.cpp.

References cmn_Time::GetTime_t(), m_time_p, and NULL.

    if (m_time_p == NULL) {

    if (a_strVal.empty()) {
        // Empty input string means the Epoch.
        *m_time_p = 0;
    else {
        // cmn_Time is used to convert from string to ivd_Time32_t
        cmn_Time    tmp(a_strVal);
        *m_time_p = tmp.GetTime_t();

Here is the call graph for this function:

void val_Time::Bind ( ivd_Time32_t a_time  )  [virtual]

Definition at line 714 of file val.cpp.

References m_time_p.

    m_time_p = &(a_time);

Member Data Documentation

Reimplemented from val_Value.

Definition at line 620 of file val.h.

Definition at line 619 of file val.h.

Referenced by Assign(), and Bind().

The documentation for this class was generated from the following files: