Settings.h 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. /* -*- C++ -*- */
  2. /****************************************************************************
  3. ** Copyright (c) 2001-2014
  4. **
  5. ** This file is part of the QuickFIX FIX Engine
  6. **
  7. ** This file may be distributed under the terms of the quickfixengine.org
  8. ** license as defined by quickfixengine.org and appearing in the file
  9. ** LICENSE included in the packaging of this file.
  10. **
  11. ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
  12. ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
  13. **
  14. ** See http://www.quickfixengine.org/LICENSE for licensing information.
  15. **
  16. ** Contact ask@quickfixengine.org if any conditions of this licensing are
  17. ** not clear to you.
  18. **
  19. ****************************************************************************/
  20. #ifndef FIX_SETTINGS_H
  21. #define FIX_SETTINGS_H
  22. #ifdef _MSC_VER
  23. #pragma warning( disable : 4503 4355 4786 4290 )
  24. #endif
  25. #include "Dictionary.h"
  26. #include <string>
  27. #include <vector>
  28. #include <map>
  29. #include <iostream>
  30. namespace FIX
  31. {
  32. /// Internal representation of QuickFIX configuration settings.
  33. class Settings
  34. {
  35. public:
  36. typedef std::vector < Dictionary > Sections;
  37. Sections get( const std::string& name ) const;
  38. friend std::istream& operator>>( std::istream&, Settings& );
  39. private:
  40. Sections m_sections;
  41. };
  42. std::istream& operator>>( std::istream&, Settings& );
  43. }
  44. #endif //FIX_SETTINGS_H