PandA-2024.02
Public Member Functions | Static Public Member Functions | Data Fields | Friends
TimeStamp Struct Reference

The type used for timestamp. More...

#include <utility.hpp>

Public Member Functions

 TimeStamp ()
 Empty constructor: timestamp is set to 01-01-1970 00.00. More...
 
 TimeStamp (const std::string &timestamp)
 Constructor from string. More...
 

Static Public Member Functions

static std::string GetCurrentTimeStamp ()
 Return a timestamp of the current time. More...
 

Data Fields

std::string timestamp
 

Friends

std::ostream & operator<< (std::ostream &os, const TimeStamp &timestamp)
 Friend definition of the << operator. More...
 
bool operator<= (const TimeStamp &timestamp1, const TimeStamp &timestamp2)
 

Detailed Description

The type used for timestamp.

Definition at line 280 of file utility.hpp.

Constructor & Destructor Documentation

◆ TimeStamp() [1/2]

TimeStamp::TimeStamp ( )

Empty constructor: timestamp is set to 01-01-1970 00.00.

Definition at line 47 of file utility.cpp.

◆ TimeStamp() [2/2]

TimeStamp::TimeStamp ( const std::string &  timestamp)
explicit

Constructor from string.

Parameters
timestampis the string containing the timestamp

Definition at line 51 of file utility.cpp.

Member Function Documentation

◆ GetCurrentTimeStamp()

std::string TimeStamp::GetCurrentTimeStamp ( )
static

Return a timestamp of the current time.

Definition at line 55 of file utility.cpp.

Referenced by Evaluation::Exec(), CBackend::Exec(), HDL_manager::write_components(), and RTLCharacterization::xwrite_characterization().

Here is the caller graph for this function:

Friends And Related Function Documentation

◆ operator<<

std::ostream& operator<< ( std::ostream &  os,
const TimeStamp timestamp 
)
friend

Friend definition of the << operator.

Parameters
osis the output stream
timestampis the timestamp to be printed

Definition at line 70 of file utility.cpp.

◆ operator<=

bool operator<= ( const TimeStamp timestamp1,
const TimeStamp timestamp2 
)
friend

Definition at line 76 of file utility.cpp.

Field Documentation

◆ timestamp

std::string TimeStamp::timestamp

Definition at line 282 of file utility.hpp.

Referenced by operator<<(), and operator<=().


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

Generated on Mon Feb 12 2024 13:04:05 for PandA-2024.02 by doxygen 1.8.13