AppCore
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | List of all members
EDataConverter Class Reference

#include <EDataConverter.h>

Public Member Functions

 EDataConverter ()
 
 ~EDataConverter ()
 
 EDataConverter ()
 
 ~EDataConverter ()
 

Static Public Member Functions

static std::string ConvertNumberToString (const char &number)
 
static std::string ConvertNumberToString (const unsigned char &number)
 
static std::string ConvertNumberToString (const short &number)
 
static std::string ConvertNumberToString (const unsigned short &number)
 
static std::string ConvertNumberToString (const int &number)
 
static std::string ConvertNumberToString (const unsigned int &number)
 
static std::string ConvertNumberToString (const long &number)
 
static std::string ConvertNumberToString (const unsigned long &number)
 
static std::string ConvertNumberToString (const unsigned long long &number)
 
static std::string ConvertNumberToString (const float &number)
 
static std::string GetDate ()
 
static std::string GetDate (const std::string &format)
 
static std::string GetDate (const EM::Common::EDate &date, const std::string &format="dd.MM.yyyy")
 
static std::string GetDate (const struct tm &date, const std::string &format="dd.MM.yyyy")
 
static std::string GetDate (int day, int month, int year, const std::string &format="dd.MM.yyyy")
 
static std::string GetTime (bool seconds=true)
 
static std::string GetTime (const EM::Common::EDate &date, bool seconds=true)
 
static std::string GetBsName (unsigned long bsID, bool shortname=false)
 
static std::string GetBsName (EM::Strojcek::VstupneUdaje::CestovnePoriadky::EZastavka *busStop, bool shortName=false)
 
static std::string RecodeInputDataToUtf8 (const char *text)
 
static std::string GetDayName (const unsigned char &dayOfWeek)
 returns name of day
 
static std::string GetMonth (const unsigned char &monthNumber)
 returns name of month
 
static std::string GetMonthAndYear (const EM::Common::EDate &date)
 
static std::string GetWeek (const EM::Common::EDate &date)
 
static std::string GetPrice (const long &price, const float currencyCoefficient)
 
static std::string GetPrice (const float &price, const float currencyCoefficient)
 
static std::string GetInterchange ()
 
static std::string GetInterchangeUntil ()
 
static std::string GetValidUntil ()
 
static std::string GetPaymentType (long paymentType)
 GetPaymentType.
 
static std::string ConvertCurrencyShortcutToCharacter (const std::string &currencyShortcut)
 
static std::string ConvertTableAddressToTableName (const long &tableAddress)
 
static std::string ConvertDeviceCommonStatusNumberToString (const long &statusNumber)
 
static std::string ConvertDeviceSystemStatusPropertyToString (const std::string &value)
 
static std::string ConvertNumberToString (const char &number)
 
static std::string ConvertNumberToString (const unsigned char &number)
 
static std::string ConvertNumberToString (const short &number)
 
static std::string ConvertNumberToString (const unsigned short &number)
 
static std::string ConvertNumberToString (const int &number)
 
static std::string ConvertNumberToString (const unsigned int &number)
 
static std::string ConvertNumberToString (const long &number)
 
static std::string ConvertNumberToString (const unsigned long &number)
 
static std::string ConvertNumberToString (const unsigned long long &number)
 
static std::string ConvertNumberToString (const float &number)
 
static std::string GetDate ()
 
static std::string GetDate (const std::string &format)
 
static std::string GetDate (const EM::Common::EDate &date, const std::string &format="dd.MM.yyyy")
 
static std::string GetDate (const struct tm &date, const std::string &format="dd.MM.yyyy")
 
static std::string GetDate (int day, int month, int year, const std::string &format="dd.MM.yyyy")
 
static std::string GetTime (bool seconds=true)
 
static std::string GetTime (const EM::Common::EDate &date, bool seconds=true)
 
static std::string GetBsName (unsigned long bsID, bool shortname=false)
 
static std::string GetBsName (EM::Strojcek::VstupneUdaje::CestovnePoriadky::EZastavka *busStop, bool shortName=false)
 
static std::string RecodeInputDataToUtf8 (const char *text)
 
static std::string GetDayName (const unsigned char &dayOfWeek)
 returns name of day
 
static std::string GetMonth (const unsigned char &monthNumber)
 returns name of month
 
static std::string GetMonthAndYear (const EM::Common::EDate &date)
 
static std::string GetWeek (const EM::Common::EDate &date)
 
static std::string GetPrice (const long &price, const float currencyCoefficient)
 
static std::string GetPrice (const float &price, const float currencyCoefficient)
 
static std::string GetInterchange ()
 
static std::string GetInterchangeUntil ()
 
static std::string GetValidUntil ()
 
static std::string GetPaymentType (long paymentType)
 GetPaymentType.
 
static std::string ConvertCurrencyShortcutToCharacter (const std::string &currencyShortcut)
 
static std::string ConvertTableAddressToTableName (const long &tableAddress)
 
static std::string ConvertDeviceCommonStatusNumberToString (const long &statusNumber)
 
static std::string ConvertDeviceSystemStatusPropertyToString (const std::string &value)
 

Constructor & Destructor Documentation

◆ EDataConverter() [1/2]

INTERNAL EDataConverter::EDataConverter ( )

CONSTRUCTOR

◆ ~EDataConverter() [1/2]

EDataConverter::~EDataConverter ( )

DESTRUCTOR

◆ EDataConverter() [2/2]

EDataConverter::EDataConverter ( )

◆ ~EDataConverter() [2/2]

EDataConverter::~EDataConverter ( )

Member Function Documentation

◆ ConvertCurrencyShortcutToCharacter() [1/2]

static std::string EDataConverter::ConvertCurrencyShortcutToCharacter ( const std::string &  currencyShortcut)
static
Here is the caller graph for this function:

◆ ConvertCurrencyShortcutToCharacter() [2/2]

static std::string EDataConverter::ConvertCurrencyShortcutToCharacter ( const std::string &  currencyShortcut)
static

◆ ConvertDeviceCommonStatusNumberToString() [1/2]

string EDataConverter::ConvertDeviceCommonStatusNumberToString ( const long &  statusNumber)
static

◆ ConvertDeviceCommonStatusNumberToString() [2/2]

static std::string EDataConverter::ConvertDeviceCommonStatusNumberToString ( const long &  statusNumber)
static

◆ ConvertDeviceSystemStatusPropertyToString() [1/2]

static std::string EDataConverter::ConvertDeviceSystemStatusPropertyToString ( const std::string &  value)
static

◆ ConvertDeviceSystemStatusPropertyToString() [2/2]

static std::string EDataConverter::ConvertDeviceSystemStatusPropertyToString ( const std::string &  value)
static

◆ ConvertNumberToString() [1/20]

string EDataConverter::ConvertNumberToString ( const char &  number)
static

ConvertNumberToString

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ConvertNumberToString() [2/20]

static std::string EDataConverter::ConvertNumberToString ( const char &  number)
static

◆ ConvertNumberToString() [3/20]

string EDataConverter::ConvertNumberToString ( const float &  number)
static

ConvertNumberToString

◆ ConvertNumberToString() [4/20]

static std::string EDataConverter::ConvertNumberToString ( const float &  number)
static

◆ ConvertNumberToString() [5/20]

string EDataConverter::ConvertNumberToString ( const int &  number)
static

ConvertNumberToString

Here is the call graph for this function:

◆ ConvertNumberToString() [6/20]

static std::string EDataConverter::ConvertNumberToString ( const int &  number)
static

◆ ConvertNumberToString() [7/20]

string EDataConverter::ConvertNumberToString ( const long &  number)
static

ConvertNumberToString

◆ ConvertNumberToString() [8/20]

static std::string EDataConverter::ConvertNumberToString ( const long &  number)
static

◆ ConvertNumberToString() [9/20]

string EDataConverter::ConvertNumberToString ( const short &  number)
static

ConvertNumberToString

Here is the call graph for this function:

◆ ConvertNumberToString() [10/20]

static std::string EDataConverter::ConvertNumberToString ( const short &  number)
static

◆ ConvertNumberToString() [11/20]

string EDataConverter::ConvertNumberToString ( const unsigned char &  number)
static

ConvertNumberToString

Here is the call graph for this function:

◆ ConvertNumberToString() [12/20]

static std::string EDataConverter::ConvertNumberToString ( const unsigned char &  number)
static

◆ ConvertNumberToString() [13/20]

string EDataConverter::ConvertNumberToString ( const unsigned int &  number)
static

ConvertNumberToString

Here is the call graph for this function:

◆ ConvertNumberToString() [14/20]

static std::string EDataConverter::ConvertNumberToString ( const unsigned int &  number)
static

◆ ConvertNumberToString() [15/20]

std::string EDataConverter::ConvertNumberToString ( const unsigned long &  number)
static

ConvertNumberToString

◆ ConvertNumberToString() [16/20]

static std::string EDataConverter::ConvertNumberToString ( const unsigned long &  number)
static

◆ ConvertNumberToString() [17/20]

std::string EDataConverter::ConvertNumberToString ( const unsigned long long &  number)
static

ConvertNumberToString

◆ ConvertNumberToString() [18/20]

static std::string EDataConverter::ConvertNumberToString ( const unsigned long long &  number)
static

◆ ConvertNumberToString() [19/20]

string EDataConverter::ConvertNumberToString ( const unsigned short &  number)
static

ConvertNumberToString

Here is the call graph for this function:

◆ ConvertNumberToString() [20/20]

static std::string EDataConverter::ConvertNumberToString ( const unsigned short &  number)
static

◆ ConvertTableAddressToTableName() [1/2]

string EDataConverter::ConvertTableAddressToTableName ( const long &  tableAddress)
static

◆ ConvertTableAddressToTableName() [2/2]

static std::string EDataConverter::ConvertTableAddressToTableName ( const long &  tableAddress)
static

◆ GetBsName() [1/4]

static std::string EDataConverter::GetBsName ( EM::Strojcek::VstupneUdaje::CestovnePoriadky::EZastavka *  busStop,
bool  shortName = false 
)
static

◆ GetBsName() [2/4]

static std::string EDataConverter::GetBsName ( EM::Strojcek::VstupneUdaje::CestovnePoriadky::EZastavka *  busStop,
bool  shortName = false 
)
static

◆ GetBsName() [3/4]

string EDataConverter::GetBsName ( unsigned long  bsID,
bool  shortName = false 
)
static

GetBsName

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetBsName() [4/4]

static std::string EDataConverter::GetBsName ( unsigned long  bsID,
bool  shortname = false 
)
static

◆ GetDate() [1/10]

std::string EDataConverter::GetDate ( )
static

GetDate

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetDate() [2/10]

static std::string EDataConverter::GetDate ( )
static

◆ GetDate() [3/10]

static std::string EDataConverter::GetDate ( const EM::Common::EDate &  date,
const std::string &  format = "dd.MM.yyyy" 
)
static

◆ GetDate() [4/10]

static std::string EDataConverter::GetDate ( const EM::Common::EDate &  date,
const std::string &  format = "dd.MM.yyyy" 
)
static

◆ GetDate() [5/10]

std::string EDataConverter::GetDate ( const std::string &  format)
static

GetDate

Here is the call graph for this function:

◆ GetDate() [6/10]

static std::string EDataConverter::GetDate ( const std::string &  format)
static

◆ GetDate() [7/10]

static std::string EDataConverter::GetDate ( const struct tm &  date,
const std::string &  format = "dd.MM.yyyy" 
)
static

◆ GetDate() [8/10]

static std::string EDataConverter::GetDate ( const struct tm &  date,
const std::string &  format = "dd.MM.yyyy" 
)
static

◆ GetDate() [9/10]

static std::string EDataConverter::GetDate ( int  day,
int  month,
int  year,
const std::string &  format = "dd.MM.yyyy" 
)
static

◆ GetDate() [10/10]

static std::string EDataConverter::GetDate ( int  day,
int  month,
int  year,
const std::string &  format = "dd.MM.yyyy" 
)
static

◆ GetDayName() [1/2]

string EDataConverter::GetDayName ( const unsigned char &  dayOfWeek)
static

returns name of day

Parameters
dayOfWeektells which day in week. Have to be within range 0-6 (including, sunday on 0th position)
Returns
dayName when input parameter within range, empty string otherwise

GetDayName

Here is the caller graph for this function:

◆ GetDayName() [2/2]

static std::string EDataConverter::GetDayName ( const unsigned char &  dayOfWeek)
static

returns name of day

Parameters
dayOfWeektells which day in week. Have to be within range 0-6 (including, sunday on 0th position)
Returns
dayName when input parameter within range, empty string otherwise

◆ GetInterchange() [1/2]

string EDataConverter::GetInterchange ( )
static

GetInterchange

Here is the caller graph for this function:

◆ GetInterchange() [2/2]

static std::string EDataConverter::GetInterchange ( )
static

◆ GetInterchangeUntil() [1/2]

string EDataConverter::GetInterchangeUntil ( )
static

GetInterchangeUntil

Here is the caller graph for this function:

◆ GetInterchangeUntil() [2/2]

static std::string EDataConverter::GetInterchangeUntil ( )
static

◆ GetMonth() [1/2]

string EDataConverter::GetMonth ( const unsigned char &  monthNumber)
static

returns name of month

Parameters
monthNumbertells which month. Have to be within range 1-12 (including)
Returns
short name of month (e.g. Sep) when input parameter within range, empty string otherwise

GetMonth

◆ GetMonth() [2/2]

static std::string EDataConverter::GetMonth ( const unsigned char &  monthNumber)
static

returns name of month

Parameters
monthNumbertells which month. Have to be within range 1-12 (including)
Returns
short name of month (e.g. Sep) when input parameter within range, empty string otherwise

◆ GetMonthAndYear() [1/2]

static std::string EDataConverter::GetMonthAndYear ( const EM::Common::EDate &  date)
static

◆ GetMonthAndYear() [2/2]

static std::string EDataConverter::GetMonthAndYear ( const EM::Common::EDate &  date)
static

◆ GetPaymentType() [1/2]

string EDataConverter::GetPaymentType ( long  paymentType)
static

GetPaymentType.

Parameters
paymentTypesee TicketIssueLogicDefines Pament type
Returns

GetPaymentType

Here is the caller graph for this function:

◆ GetPaymentType() [2/2]

static std::string EDataConverter::GetPaymentType ( long  paymentType)
static

GetPaymentType.

Parameters
paymentTypesee TicketIssueLogicDefines Pament type
Returns

◆ GetPrice() [1/4]

string EDataConverter::GetPrice ( const float &  price,
const float  currencyCoefficient 
)
static

GetPrice

◆ GetPrice() [2/4]

static std::string EDataConverter::GetPrice ( const float &  price,
const float  currencyCoefficient 
)
static

◆ GetPrice() [3/4]

string EDataConverter::GetPrice ( const long &  price,
const float  currencyCoefficient 
)
static

GetPrice

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetPrice() [4/4]

static std::string EDataConverter::GetPrice ( const long &  price,
const float  currencyCoefficient 
)
static

◆ GetTime() [1/4]

string EDataConverter::GetTime ( bool  seconds = true)
static

GetTime

Here is the caller graph for this function:

◆ GetTime() [2/4]

static std::string EDataConverter::GetTime ( bool  seconds = true)
static

◆ GetTime() [3/4]

static std::string EDataConverter::GetTime ( const EM::Common::EDate &  date,
bool  seconds = true 
)
static

◆ GetTime() [4/4]

static std::string EDataConverter::GetTime ( const EM::Common::EDate &  date,
bool  seconds = true 
)
static

◆ GetValidUntil() [1/2]

string EDataConverter::GetValidUntil ( )
static

GetValidUntil

◆ GetValidUntil() [2/2]

static std::string EDataConverter::GetValidUntil ( )
static

◆ GetWeek() [1/2]

static std::string EDataConverter::GetWeek ( const EM::Common::EDate &  date)
static

◆ GetWeek() [2/2]

static std::string EDataConverter::GetWeek ( const EM::Common::EDate &  date)
static

◆ RecodeInputDataToUtf8() [1/2]

string EDataConverter::RecodeInputDataToUtf8 ( const char *  text)
static

RecodeInputDataToUtf8

Here is the caller graph for this function:

◆ RecodeInputDataToUtf8() [2/2]

static std::string EDataConverter::RecodeInputDataToUtf8 ( const char *  text)
static

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