| 80 | } |
| 81 | |
| 82 | char const* OsiFunctionTypeToString(EoCFunctionType type) |
| 83 | { |
| 84 | switch (type) { |
| 85 | case EoCFunctionType::Call: return "call"; |
| 86 | case EoCFunctionType::Query: return "query"; |
| 87 | case EoCFunctionType::Event: return "event"; |
| 88 | default: throw new std::runtime_error("EoC function type not supported"); |
| 89 | } |
| 90 | } |
| 91 | |
| 92 | void CustomFunction::GenerateHeader(std::stringstream & ss, std::unordered_map<ValueType, STDString>& typeMap) const |
| 93 | { |