trader  v0.1a
A framework to build trading applications
fixspec.h
1 #pragma once
2 
3 #include "endpoint.h"
4 #include "fileoutputstream.h"
5 #include <unordered_map>
6 
7 
8 namespace trader {
9 
10  using namespace Poco;
11  using namespace std;
12 
13  class FixSpec : public SingletonHolder<FixSpec>
14  {
15  public:
16  void process(const string& _namespace, const string& _inputDir, const string& outputdirectory);
17  const char* getCppType(const string& dbName, const string& dbType);
18  enum InterfaceType
19  {
20  InterfaceType_STRING,
21  InterfaceType_DOUBLE,
22  InterfaceType_FLOAT,
23  InterfaceType_INTEGER,
24  InterfaceType_BOOL,
25  InterfaceType_ENUM,
26  NUM_InterfaceType
27  };
28  string getDefaultType(const string &dbName, InterfaceType interfaceType);
29  typedef std::unordered_map<std::string, InterfaceType> TypenameToTypeMap;
30  TypenameToTypeMap typenameToTypeMap;
31  static FixSpec instance;
32  };
33 
34 }
Definition: fixspec.h:13
Definition: fileoutputstream.h:3
Definition: app.h:7