StdAir Logo  1.00.3
C++ Standard Airline IT Object Library
DBManagerForAirlines.hpp
Go to the documentation of this file.
1 #ifndef __TVLSIM_CMD_DBMANAGERFORAIRLINES_HPP
2 #define __TVLSIM_CMD_DBMANAGERFORAIRLINES_HPP
3 
4 // //////////////////////////////////////////////////////////////////////
5 // Import section
6 // //////////////////////////////////////////////////////////////////////
7 // StdAir
8 #include <stdair/stdair_db.hpp>
10 
11 namespace stdair {
12 
13  // Forward declarations
14  struct AirlineStruct;
15 
19  public:
24  static void updateAirlineInDB (DBSession_T&, const AirlineStruct&);
25 
32  static bool retrieveAirline (DBSession_T&, const AirlineCode_T&,
33  AirlineStruct&);
34 
35 
36  public:
42  AirlineStruct&);
43 
49 
50 
51  private:
57  static void prepareSelectOnAirlineCodeStatement (DBSession_T&,
59  const AirlineCode_T&,
60  AirlineStruct&);
61 
62 
63  private:
64  // /////////////////// Constructors and Destructors //////////////
71  };
72 
73 }
74 #endif // __TVLSIM_CMD_DBMANAGERFORAIRLINES_HPP
Handle on the StdAir library context.
std::string AirlineCode_T
static void updateAirlineInDB(DBSession_T &, const AirlineStruct &)
soci::session DBSession_T
Definition: stdair_db.hpp:20
static bool retrieveAirline(DBSession_T &, const AirlineCode_T &, AirlineStruct &)
static bool iterateOnStatement(DBRequestStatement_T &, AirlineStruct &)
static void prepareSelectStatement(DBSession_T &, DBRequestStatement_T &, AirlineStruct &)
soci::statement DBRequestStatement_T
Definition: stdair_db.hpp:23