mockpp::MockTimeServer Class Reference
[Basic Mock Objects]

Mock object to return defined time points. More...

Inheritance diagram for mockpp::MockTimeServer:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 MockTimeServer (const String &name=MOCKPP_PCHAR(""), mockpp::VerifiableList *parent=0)
 Construct a mock time server.
virtual MOCKPP_STD_NS::time_t getUnixTime ()
 Returns the "current" unix time.
void addUnixTime (MOCKPP_STD_NS::time_t time)
 Adds another "current" unix time.

Detailed Description

Mock object to return defined time points.

Some unix times:

Definition at line 47 of file MockTimeServer.h.


Constructor & Destructor Documentation

mockpp::MockTimeServer::MockTimeServer ( const String name = MOCKPP_PCHAR(""),
mockpp::VerifiableList parent = 0 
)

Construct a mock time server.

Parameters:
name object name
parent parent verifiable

Definition at line 40 of file MockTimeServer.cpp.


Member Function Documentation

void mockpp::MockTimeServer::addUnixTime ( MOCKPP_STD_NS::time_t  time  ) 

Adds another "current" unix time.

Parameters:
time unix time

Definition at line 53 of file MockTimeServer.cpp.

std::time_t mockpp::MockTimeServer::getUnixTime (  )  [virtual]

Returns the "current" unix time.

Returns:
unix time

Implements mockpp::TimeServer.

Definition at line 47 of file MockTimeServer.cpp.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Friends Defines

Generated on Tue Jan 5 09:49:00 2010 for mockpp by  doxygen 1.6.1