00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #if !defined(__ONIXS_DIALECT_H__)
00021 #define __ONIXS_DIALECT_H__
00022
00023 #include <string>
00024
00025 #include "OnixS/FIX/ABI.h"
00026 #include "OnixS/FIX/Definitions.h"
00027 #include "OnixS/FIX/Message.h"
00028 #include "OnixS/FIX/Session.h"
00029
00030 namespace OnixS
00031 {
00032 namespace FIX
00033 {
00035 class ONIXS_FIXENGINE_API Dialect
00036 {
00037 public:
00042 Dialect(const std::string& dialectId);
00043
00045 Dialect(const Dialect& other);
00046
00047 ~Dialect();
00048
00050 const std::string& id() const;
00051
00054 Version version() const;
00055
00056 Dialect& operator =(const Dialect& other);
00057
00058 bool operator ==(const Dialect& other) const;
00059 bool operator !=(const Dialect& other) const;
00060
00061 private:
00062 friend ONIXS_FIXENGINE_API_DECL(class, Message);
00063 friend ONIXS_FIXENGINE_API_DECL(struct, Message::Impl);
00064
00065 friend ONIXS_FIXENGINE_API_DECL(class, Session);
00066 friend ONIXS_FIXENGINE_API_DECL(struct, Session::Impl);
00067
00068 const void* impl_;
00069
00070 Dialect();
00071
00072 void attach(const void* impl);
00073 };
00074 }
00075 }
00076
00077 #endif // __ONIXS_DIALECT_H__