This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
interface WTF | |
{ | |
Type type; | |
} | |
enum Type | |
{ | |
A, | |
B | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// in your utilities classheader | |
template<typename T> | |
osal::uint32_t toUnsigned32(const T& t) | |
{ | |
return t; | |
} | |
// you can put this in the utilities class header but probably belongs in datamodelenumerant header | |
template<> | |
osal::uint32_t toUnsigned32(const DataModelEnumerant& t) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
std::string serialize(map) | |
{ | |
std::stringstream output; | |
// for each key/value pair in map | |
// "{key,value}{key,value}" | |
output << "{" << serialize(pair.first) << "." << serialize(pair.second) << "}" | |
return output.str(); | |
} |