val_Time Class Reference
[Parser for config files; validation]

#include <val.h>

Inheritance diagram for val_Time:

Inheritance graph
[legend]
Collaboration diagram for val_Time:

Collaboration graph
[legend]

List of all members.


Detailed Description

Definition at line 589 of file val.h.


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

ivd_Time32_tm_time_p
 log_CLASSID_m

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 684 of file val.cpp.

00690   : val_Value(a_name, a_limits, a_minNumOfVal, a_maxNumOfVal,  a_defaultStr ),
00691     m_time_p(NULL) {
00692     // Empty
00693 }

val_Time::~val_Time (  )  [virtual]

Definition at line 696 of file val.cpp.

00696                     {
00697     //Empty
00698 }


Member Function Documentation

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

Definition at line 700 of file val.cpp.

References m_time_p.

00700                                         {
00701     m_time_p = &(a_time);
00702 }

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

Implements val_BasicValue.

Definition at line 704 of file val.cpp.

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

00704                                             {
00705     if (m_time_p == NULL) {
00706         return;
00707     };
00708 
00709     if (a_strVal.empty()) {
00710         // Empty input string means the Epoch.
00711         *m_time_p = 0;
00712     }
00713     else {
00714         // cmn_Time is used to convert from string to ivd_Time32_t
00715         cmn_Time    tmp(a_strVal);
00716         *m_time_p = tmp.GetTime_t();
00717     }
00718 }

Here is the call graph for this function:


Member Data Documentation

Definition at line 605 of file val.h.

Referenced by Assign(), and Bind().

Reimplemented from val_Value.

Definition at line 606 of file val.h.


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

Generated on Mon Feb 27 19:52:10 2012 for OPENARCHIVE by  doxygen 1.5.6