Responder.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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_RESPONDER_H
  21. #define FIX_RESPONDER_H
  22. #ifdef _MSC_VER
  23. #pragma warning( disable : 4503 4355 4786 4290 )
  24. #endif
  25. #include <string>
  26. namespace FIX
  27. {
  28. /// Interface implements sending on and disconnecting a transport.
  29. class Responder
  30. {
  31. public:
  32. virtual ~Responder() {}
  33. virtual bool send( const std::string& ) = 0;
  34. virtual void disconnect() = 0;
  35. };
  36. }
  37. #endif