-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathAtEnumConverter.h
27 lines (22 loc) · 980 Bytes
/
AtEnumConverter.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#pragma once
#include <string>
#include <map>
#include "./import/atfeed-cppsdk/include/Shared/ATServerAPIDefines.h"
class AtEnumConverter {
public:
AtEnumConverter();
~AtEnumConverter();
ATExchangeType toAtExchange( std::string exchangeType );
ATCountryType toAtCountry( std::string countryType );
ATStreamRequestType toAtStreamRequest( std::string requestType );
ATQuoteFieldType toAtQuoteField( std::string quoteFieldType );
ATCursorType toAtCursor( std::string cursorType );
ATConstituentListType toAtConstituentList( std::string constituentListType );
private:
std::map<std::string, ATExchangeType> m_strToExchange;
std::map<std::string, ATCountryType> m_strToCountry;
std::map<std::string, ATStreamRequestType> m_strToStreamRequest;
std::map<std::string, ATQuoteFieldType> m_strToQuoteField;
std::map<std::string, ATCursorType> m_strToCursor;
std::map<std::string, ATConstituentListType> m_strToConstituentList;
};