ANNA Suite  2020b
Multipurpose development suite for Telco applications
Classes | Public Member Functions | Static Public Member Functions | Friends | List of all members
anna::testing::TestTimer Class Reference

#include <TestTimer.hpp>

Inheritance diagram for anna::testing::TestTimer:
Inheritance graph
[legend]
Collaboration diagram for anna::testing::TestTimer:
Collaboration graph
[legend]

Classes

struct  Type
 

Public Member Functions

TestStepgetTestCaseStep ()
 
const TestStepgetTestCaseStep () const
 
void setType (const Type::_v type)
 
const Type::_vgetType (const Type::_v type) const
 
std::string asString () const
 
- Public Member Functions inherited from anna::timex::Transaction
 Transaction ()
 
 Transaction (const Id id, const Millisecond &timeout)
 
 Transaction (const Id id, const Millisecond &timeout, void *context)
 
void * getContext ()
 
const void * getContext () const
 
void setContext (void *context)
 
- Public Member Functions inherited from anna::timex::TimeEvent
virtual ~TimeEvent ()
 
Id getId () const
 
const MillisecondgetTimeout () const
 
const TimeEventObservergetObserver () const
 
void setId (const Id id)
 
void setTimeout (const Millisecond &timeout)
 
void setObserver (TimeEventObserver *observer)
 
bool isActive () const
 
- Public Member Functions inherited from anna::timex::Meter
 Meter ()
 
 Meter (const Meter &other)
 
Millisecond setControlPoint ()
 
void setTopReference (const Millisecond &topReference)
 
void clearTopReference ()
 
Millisecond getDelay () const
 
Meteroperator= (const Millisecond &timestamp)
 
Meteroperator= (const Meter &other)
 

Static Public Member Functions

static const char * asText (const Type::_v type)
 

Friends

class anna::Allocator< TestTimer >
 

Additional Inherited Members

- Public Types inherited from anna::timex::TimeEvent
typedef anna::ptrnumber Id
 
- Protected Member Functions inherited from anna::timex::TimeEvent
 TimeEvent ()
 
 TimeEvent (const Id id, const Millisecond &timeout)
 
virtual void stop () noexcept(false)
 

Member Function Documentation

◆ asString()

std::string anna::testing::TestTimer::asString ( void  ) const
virtual

Devuelve una cadena con la informacion referente a este temporizador.

Returns
Una cadena con la informacion referenta a este temporizador.

Reimplemented from anna::timex::Transaction.

◆ asText()

static const char* anna::testing::TestTimer::asText ( const Type::_v  type)
static

◆ getTestCaseStep() [1/2]

TestStep* anna::testing::TestTimer::getTestCaseStep ( )
inline
33 { return reinterpret_cast <TestStep*>(getContext()); }
void * getContext()
Definition: Transaction.hpp:66
Here is the call graph for this function:

◆ getTestCaseStep() [2/2]

const TestStep* anna::testing::TestTimer::getTestCaseStep ( ) const
inline
34 { return reinterpret_cast <const TestStep*>(getContext()); }
void * getContext()
Definition: Transaction.hpp:66
Here is the call graph for this function:

◆ getType()

const Type::_v& anna::testing::TestTimer::getType ( const Type::_v  type) const
inline
37 { return a_type; }
Here is the call graph for this function:

◆ setType()

void anna::testing::TestTimer::setType ( const Type::_v  type)
inline
36 { a_type = type; }

Friends And Related Function Documentation

◆ anna::Allocator< TestTimer >

friend class anna::Allocator< TestTimer >
friend

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