AirInv Logo  1.00.8
C++ Simulated Airline Inventory Management System Library
Loading...
Searching...
No Matches
RequestHandler.hpp
Go to the documentation of this file.
1#ifndef __AIRINV_SVR_REQUESTHANDLER_HPP
2#define __AIRINV_SVR_REQUESTHANDLER_HPP
3
4// //////////////////////////////////////////////////////////////////////
5// Import section
6// //////////////////////////////////////////////////////////////////////
7// STL
8#include <string>
9// Boost
10#include <boost/noncopyable.hpp>
11// StdAir
12#include <stdair/stdair_basic_types.hpp>
13// AirInv
14
15// Forward declarations
16namespace stdair {
17 struct InventoryKey_T;
18 struct FlightDateKey_T;
19}
20
21namespace AIRINV {
22
23 // Forward declarations.
24 struct Reply;
25 struct Request;
26
28 class RequestHandler : private boost::noncopyable {
29 public:
30 // //////////// Constructors and Destructors /////////////////
34 RequestHandler (const stdair::AirlineCode_T&);
35
36
37 public:
38 // /////////// Business Support Methods ////////////////
40 bool handleRequest (Request&, Reply&) const;
41
42
43 private:
44 // //////////////// Attributes //////////////////
46 stdair::AirlineCode_T _airlineCode;
47 };
48
49}
50#endif // __AIRINV_SVR_REQUESTHANDLER_HPP
The common handler for all incoming requests.
bool handleRequest(Request &, Reply &) const
Forward declarations.