AppCore
Loading...
Searching...
No Matches
EDataConverter.h
Go to the documentation of this file.
1#ifndef EDATACONVERTER_H
2#define EDATACONVERTER_H
3
4#include <string>
5#include "core/common/eplatform.h"
6#include "appcore/ticketissuelogic/ETicketIssueLogicDefines.h"
7
8class QString;
9
10namespace EM
11{
12 namespace Common
13 {
14 class EDate;
15 }
16 namespace Strojcek
17 {
18 namespace VstupneUdaje
19 {
20 namespace CestovnePoriadky
21 {
22 class EZastavka;
23 }
24 }
25 }
26}
27
29{
31
32 class DataClass;
33 DataClass *d;
34
36public:
39
40 static std::string ConvertNumberToString( const char &number );
41 static std::string ConvertNumberToString( const unsigned char &number );
42 static std::string ConvertNumberToString( const short &number );
43 static std::string ConvertNumberToString( const unsigned short &number );
44 static std::string ConvertNumberToString( const int &number );
45 static std::string ConvertNumberToString( const unsigned int &number );
46 static std::string ConvertNumberToString( const long &number );
47 static std::string ConvertNumberToString( const unsigned long &number );
48 static std::string ConvertNumberToString( const unsigned long long &number );
49 static std::string ConvertNumberToString( const float &number );
50
51 static std::string GetDate();
52 static std::string GetDate( const std::string &format );
53 static std::string GetDate( const EM::Common::EDate &date, const std::string &format = "dd.MM.yyyy" );
54 static std::string GetDate( const struct tm &date, const std::string &format = "dd.MM.yyyy" );
55 static std::string GetDate( int day, int month, int year, const std::string &format = "dd.MM.yyyy" );
56 static std::string GetTime( bool seconds = true );
57 static std::string GetTime( const EM::Common::EDate &date, bool seconds = true );
58 static std::string GetBsName(unsigned long bsID, bool shortname = false );
59 static std::string GetBsName( EM::Strojcek::VstupneUdaje::CestovnePoriadky::EZastavka *busStop, bool shortName = false );
60 static std::string RecodeInputDataToUtf8(const char *text);
61
67 static std::string GetDayName( const unsigned char &dayOfWeek );
68
74 static std::string GetMonth( const unsigned char &monthNumber );
75 static std::string GetMonthAndYear( const EM::Common::EDate &date );
76 static std::string GetWeek( const EM::Common::EDate &date );
77
78 static std::string GetPrice( const long &price, const float currencyCoefficient );
79 static std::string GetPrice( const float &price, const float currencyCoefficient );
80
81 static std::string GetInterchange();
82 static std::string GetInterchangeUntil();
83 static std::string GetValidUntil();
89 static std::string GetPaymentType( long paymentType );
90 static std::string ConvertCurrencyShortcutToCharacter( const std::string &currencyShortcut );
91
92 static std::string ConvertTableAddressToTableName( const long &tableAddress );
93 static std::string ConvertDeviceCommonStatusNumberToString( const long &statusNumber );
94 static std::string ConvertDeviceSystemStatusPropertyToString( const std::string &value );
95};
96
97
98
99#endif // EDATACONVERTER_H
Definition EDataConverter.h:29
static std::string ConvertNumberToString(const char &number)
static std::string GetPaymentType(long paymentType)
GetPaymentType.
static std::string ConvertNumberToString(const unsigned long &number)
static std::string ConvertTableAddressToTableName(const long &tableAddress)
static std::string GetDate()
static std::string GetMonthAndYear(const EM::Common::EDate &date)
static std::string ConvertDeviceCommonStatusNumberToString(const long &statusNumber)
static std::string GetWeek(const EM::Common::EDate &date)
static std::string GetMonth(const unsigned char &monthNumber)
returns name of month
static std::string ConvertNumberToString(const short &number)
static std::string ConvertDeviceSystemStatusPropertyToString(const std::string &value)
static std::string GetDate(const EM::Common::EDate &date, const std::string &format="dd.MM.yyyy")
static std::string ConvertNumberToString(const unsigned short &number)
static std::string ConvertNumberToString(const unsigned int &number)
static std::string ConvertNumberToString(const float &number)
static std::string GetInterchangeUntil()
static std::string GetDayName(const unsigned char &dayOfWeek)
returns name of day
static std::string ConvertNumberToString(const unsigned char &number)
static std::string GetTime(bool seconds=true)
static std::string GetInterchange()
static std::string RecodeInputDataToUtf8(const char *text)
static std::string ConvertNumberToString(const long &number)
static std::string GetPrice(const float &price, const float currencyCoefficient)
static std::string ConvertNumberToString(const int &number)
static std::string GetPrice(const long &price, const float currencyCoefficient)
static std::string GetTime(const EM::Common::EDate &date, bool seconds=true)
static std::string GetDate(const std::string &format)
static std::string ConvertNumberToString(const unsigned long long &number)
static std::string ConvertCurrencyShortcutToCharacter(const std::string &currencyShortcut)
static std::string GetDate(int day, int month, int year, const std::string &format="dd.MM.yyyy")
static std::string GetBsName(EM::Strojcek::VstupneUdaje::CestovnePoriadky::EZastavka *busStop, bool shortName=false)
static std::string GetDate(const struct tm &date, const std::string &format="dd.MM.yyyy")
static std::string GetBsName(unsigned long bsID, bool shortname=false)
static std::string GetValidUntil()
SYSTEM INCLUDES.
Definition CardFacadeManagerXML.h:7