5 #include "exchangeratelabconfig.h" 11 namespace ExchangeratelabApi {
20 void readFile(
const std::string& _fileName);
22 void read(Poco::Dynamic::Var val);
26 void SetBaseCurrency(std::string val)
31 bool isSetBaseCurrency() {
32 return (baseCurrency !=
"Empty");
35 std::string baseCurrency;
37 void SetExecutionTime(Poco::Int32 val)
42 bool isSetExecutionTime() {
43 return (executionTime != std::numeric_limits<Poco::Int32>::max());
46 Poco::Int32 executionTime;
48 void SetLicenseMessage(std::string val)
53 bool isSetLicenseMessage() {
54 return (licenseMessage !=
"Empty");
57 std::string licenseMessage;
61 void SetRate(
double val)
67 return (rate != std::numeric_limits<double>::max());
72 void SetTo(std::string val)
78 return (to !=
"Empty");
84 : rate(std::numeric_limits<double>::max())
93 void SetTimeStamp(std::time_t val)
98 bool isSetTimeStamp() {
99 return (timeStamp != std::numeric_limits<time_t>::max());
102 std::time_t timeStamp;
105 : baseCurrency(
"Empty")
106 , executionTime(std::numeric_limits<Poco::Int32>::max())
107 , licenseMessage(
"Empty")
108 , timeStamp(std::numeric_limits<time_t>::max())
126 Poco::AutoPtr<SingleExchangeRate> GetUSDToSGD();
130 Poco::AutoPtr<trader::App> _app;
Definition: exchangeratelabconfig.h:7
Definition: exchangeratelabapi.h:117
Definition: exchangeratelabapi.h:13
Definition: exchangeratelabapi.h:59
Definition: exchangeratelabapi.h:24