We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 36622e6 commit e002e24Copy full SHA for e002e24
include/netlicensing/datatypes.h
@@ -117,21 +117,24 @@ namespace netlicensing {
117
118
enum class Currency {
119
NONE,
120
- EUR
+ EUR,
121
+ USD
122
};
123
inline const char* currencyToString(Currency v)
124
{
125
switch (v)
126
127
case Currency::NONE: return "";
128
case Currency::EUR: return "EUR";
129
+ case Currency::USD: return "USD";
130
default: return "[Unknown Currency]";
131
}
132
133
inline const Currency stringToCurrency(const String_t& v)
134
135
if (std::string(v) == "") return Currency::NONE;
136
else if (std::string(v) == "EUR") return Currency::EUR;
137
+ else if (std::string(v) == "USD") return Currency::USD;
138
else return Currency::NONE;
139
140
0 commit comments