OnixS C++ FIX Engine 2.79.1.0
C:/Users/Pasha/_Dev/fixforge-cpp/fix/cppEngine/include/OnixS/FIX/Dialect.h
00001 /*
00002 * Copyright 2005-2011 Onix Solutions Limited [OnixS]. All rights reserved. 
00003 * 
00004 * This software owned by Onix Solutions Limited [OnixS] and is protected by copyright law 
00005 * and international copyright treaties. 
00006 * 
00007 * Access to and use of the software is governed by the terms of the applicable ONIXS Software
00008 * Services Agreement (the Agreement) and Customer end user license agreements granting 
00009 * a non-assignable, non-transferable and non-exclusive license to use the software 
00010 * for it's own data processing purposes under the terms defined in the Agreement.
00011 * 
00012 * Except as otherwise granted within the terms of the Agreement, copying or reproduction of any part 
00013 * of this source code or associated reference material to any other location for further reproduction
00014 * or redistribution, and any amendments to this copyright notice, are expressly prohibited. 
00015 *
00016 * Any reproduction or redistribution for sale or hiring of the Software not in accordance with 
00017 * the terms of the Agreement is a violation of copyright law. 
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__