From: <den...@us...> - 2010-12-03 09:18:21
|
Revision: 377 http://stdair.svn.sourceforge.net/stdair/?rev=377&view=rev Author: denis_arnaud Date: 2010-12-03 09:18:14 +0000 (Fri, 03 Dec 2010) Log Message: ----------- [Branch 0.9.0][API] Further specified the API. Modified Paths: -------------- branches/stdair/0.9.0/main/stdair/sources.mk branches/stdair/0.9.0/main/stdair/stdair_basic_types.hpp branches/stdair/0.9.0/main/stdair/stdair_demand_types.hpp branches/stdair/0.9.0/main/stdair/stdair_inventory_types.hpp branches/stdair/0.9.0/main/stdair/stdair_types.hpp Added Paths: ----------- branches/stdair/0.9.0/main/stdair/stdair_maths_types.hpp branches/stdair/0.9.0/main/stdair/stdair_rm_types.hpp Modified: branches/stdair/0.9.0/main/stdair/sources.mk =================================================================== --- branches/stdair/0.9.0/main/stdair/sources.mk 2010-12-02 23:56:41 UTC (rev 376) +++ branches/stdair/0.9.0/main/stdair/sources.mk 2010-12-03 09:18:14 UTC (rev 377) @@ -3,8 +3,10 @@ $(top_srcdir)/stdair/stdair_log.hpp \ $(top_srcdir)/stdair/stdair_db.hpp \ $(top_srcdir)/stdair/stdair_basic_types.hpp \ + $(top_srcdir)/stdair/stdair_maths_types.hpp \ $(top_srcdir)/stdair/stdair_date_time_types.hpp \ $(top_srcdir)/stdair/stdair_inventory_types.hpp \ + $(top_srcdir)/stdair/stdair_rm_types.hpp \ $(top_srcdir)/stdair/stdair_demand_types.hpp \ $(top_srcdir)/stdair/stdair_fare_types.hpp \ $(top_srcdir)/stdair/stdair_types.hpp \ Modified: branches/stdair/0.9.0/main/stdair/stdair_basic_types.hpp =================================================================== --- branches/stdair/0.9.0/main/stdair/stdair_basic_types.hpp 2010-12-02 23:56:41 UTC (rev 376) +++ branches/stdair/0.9.0/main/stdair/stdair_basic_types.hpp 2010-12-03 09:18:14 UTC (rev 377) @@ -66,10 +66,15 @@ /** Define the number of seats required by a demand. */ // typedef unsigned short NbOfSeats_T; - // ////////////////////////////////////////////////////////////////////// - // Probability - /** Probability */ - typedef float Probability_T; + // ///////////// Technical //////////////// + /** File or directory name. + <br>It may contain paths, relative or absolute (e.g., /foo/bar + or C:\foo\bar). */ + typedef std::string Filename_T; + + /** Define the file address type (e.g. "a_directory/a_filename"). + <br>NOTE: That type should be deprecated. */ + typedef std::string FileAddress_T; } #endif // __STDAIR_STDAIR_BASIC_TYPES_HPP Modified: branches/stdair/0.9.0/main/stdair/stdair_demand_types.hpp =================================================================== --- branches/stdair/0.9.0/main/stdair/stdair_demand_types.hpp 2010-12-02 23:56:41 UTC (rev 376) +++ branches/stdair/0.9.0/main/stdair/stdair_demand_types.hpp 2010-12-03 09:18:14 UTC (rev 377) @@ -66,6 +66,9 @@ /** Define a Willingness-To-Pay (WTP) (e.g., 1000.0 Euros). */ typedef double WTP_T; + /** Define the name of a WTP-component of characteristics pattern. */ + typedef boost::tuples::tuple<double, WTP_T> CharacteristicsWTP_tuple_T; + /** Number of passengers (in a group) for a booking. */ typedef unsigned short PartySize_T; @@ -85,13 +88,15 @@ (in a travel solution block). */ typedef unsigned short NbOfTravelSolutions_T; + /** Define a indicator of demand to class matching. */ + typedef double MatchingIndicator_T; + /** Define the name of an event. */ typedef std::string EventName_T; /** Define a number of events. */ typedef double NbOfEvents_T; - // ////////////////////////////////////////////////////////////////////// /** Type definition for the hashed key of the DemandStreamKey object. */ typedef std::string DemandStreamKeyStr_T; @@ -105,5 +110,12 @@ /** Type of frequent flyer (P=Platinum, G=Gold, S=Silver, M=Member, N=None).*/ typedef std::string FrequentFlyer_T; + /** Define the Request status for booking (1-letter-code, e.g., + B: booked, C: cancelled, R: Rejected). */ + typedef std::string RequestStatus_T; + + /** Define a map between a BookingID and a TravelSolutionID. */ + typedef std::map<Identity_T, Identity_T> BookingTSIDMap_T; + } #endif // __STDAIR_STDAIR_DEMAND_TYPES_HPP Modified: branches/stdair/0.9.0/main/stdair/stdair_inventory_types.hpp =================================================================== --- branches/stdair/0.9.0/main/stdair/stdair_inventory_types.hpp 2010-12-02 23:56:41 UTC (rev 376) +++ branches/stdair/0.9.0/main/stdair/stdair_inventory_types.hpp 2010-12-03 09:18:14 UTC (rev 377) @@ -15,6 +15,9 @@ namespace stdair { // //////// Type definitions ///////// + /** Define the type for network ID. */ + typedef std::string NetworkID_T; + /** Define the Airline Code type (2-letter-code, e.g., BA). */ typedef std::string AirlineCode_T; @@ -122,5 +125,8 @@ /** Define the current index of a Bid-Price Vector (for a given LegCabin). */ typedef unsigned int SeatIndex_T; + /** Mode of inventory control. */ + typedef std::string ControlMode_T; + } #endif // __STDAIR_STDAIR_INVENTORY_TYPES_HPP Copied: branches/stdair/0.9.0/main/stdair/stdair_maths_types.hpp (from rev 376, branches/stdair/0.9.0/main/stdair/stdair_types.hpp) =================================================================== --- branches/stdair/0.9.0/main/stdair/stdair_maths_types.hpp (rev 0) +++ branches/stdair/0.9.0/main/stdair/stdair_maths_types.hpp 2010-12-03 09:18:14 UTC (rev 377) @@ -0,0 +1,48 @@ +#ifndef __STDAIR_STDAIR_MATHS_TYPES_HPP +#define __STDAIR_STDAIR_MATHS_TYPES_HPP + +// ////////////////////////////////////////////////////////////////////// +// Import section +// ////////////////////////////////////////////////////////////////////// +// STL +#include <string> +#include <vector> +#include <map> +// Boost Random +#include <boost/random/linear_congruential.hpp> +#include <boost/random/uniform_real.hpp> +#include <boost/random/variate_generator.hpp> + +namespace stdair { + + // //////// Type definitions ///////// + /** Define the replication number. */ + typedef unsigned int ReplicationNumber_T; + + /** Define the seed type of an Exponential function. */ + typedef unsigned long int ExponentialSeed_T; + + /** Define the seed type of an Uniform function. */ + typedef unsigned long int UniformSeed_T; + + /** Seed for the random generation, so that it can be reproductible. */ + typedef unsigned long int RandomSeed_T; + + /** Random number generator. */ + typedef boost::minstd_rand BaseGenerator_T; + + /** Uniform random generator. */ + typedef boost::variate_generator<stdair::BaseGenerator_T&, + boost::uniform_real<> > UniformGenerator_T; + + /** Define a mean value (e.g., 20.2). */ + typedef double MeanValue_T; + + /** Define a standard deviation value (e.g., 1.5). */ + typedef double StdDevValue_T; + + /** Probability */ + typedef float Probability_T; + +} +#endif // __STDAIR_STDAIR_MATHS_TYPES_HPP Copied: branches/stdair/0.9.0/main/stdair/stdair_rm_types.hpp (from rev 376, branches/stdair/0.9.0/main/stdair/stdair_types.hpp) =================================================================== --- branches/stdair/0.9.0/main/stdair/stdair_rm_types.hpp (rev 0) +++ branches/stdair/0.9.0/main/stdair/stdair_rm_types.hpp 2010-12-03 09:18:14 UTC (rev 377) @@ -0,0 +1,53 @@ +#ifndef __STDAIR_STDAIR_RM_TYPES_HPP +#define __STDAIR_STDAIR_RM_TYPES_HPP + +// ////////////////////////////////////////////////////////////////////// +// Import section +// ////////////////////////////////////////////////////////////////////// +// STL +#include <string> +#include <vector> + +namespace stdair { + + // //////// Type definitions ///////// + /** Frequency of the Data Collection Point description (daily, monthly or + detailed). */ + typedef std::string DCPModeFrequency_T; + + /** Mode of the Data Collection Point description (Forecaster only, + Optimizer only or both of them). */ + typedef std::string DCPMode_T; + + /** Mode of the forecaster. */ + typedef std::string ForecasterMode_T; + + /** Limit of similar flight-dates used in the forecaster. */ + typedef short HistoricalDataLimit_T; + + /** Mode of the forecaster. */ + typedef std::string OptimizerMode_T; + + /** Mode of the forecaster. */ + typedef std::string DicoOptimizerMode_T; + + /** Define the name of sell-up probability flag for RMS optimizer. */ + typedef bool SellupFlagForOptimizer_T; + + /** Define the name of sell-up probability for RMS optimizer. */ + typedef double SellupProbabilityForOptimizer_T; + + /** Define the name of sell-up probability vector for RMS optimizer. */ + typedef std::vector<SellupProbabilityForOptimizer_T> SellupProbabilityVector_T; + + /** Define the demand for a policy. */ + typedef NbOfBookings_T PolicyDemand_T; + + /** Define the total revenue of an unconstrained policy. */ + typedef double PolicyRevenue_T; + + /** Define the total revenue of an unconstrained policy. */ + typedef double PolicyRevenue_T; + +} +#endif // __STDAIR_STDAIR_RM_TYPES_HPP Modified: branches/stdair/0.9.0/main/stdair/stdair_types.hpp =================================================================== --- branches/stdair/0.9.0/main/stdair/stdair_types.hpp 2010-12-02 23:56:41 UTC (rev 376) +++ branches/stdair/0.9.0/main/stdair/stdair_types.hpp 2010-12-03 09:18:14 UTC (rev 377) @@ -4,147 +4,17 @@ // ////////////////////////////////////////////////////////////////////// // Import section // ////////////////////////////////////////////////////////////////////// -// STL -#include <string> -#include <vector> -#include <map> -// Boost Random -#include <boost/random/linear_congruential.hpp> -#include <boost/random/uniform_real.hpp> -#include <boost/random/variate_generator.hpp> -// Boost (Extended STL) -#include <boost/date_time/gregorian/gregorian.hpp> -#include <boost/date_time/posix_time/posix_time.hpp> -#include <boost/tuple/tuple.hpp> // StdAir #include <stdair/stdair_exceptions.hpp> #include <stdair/stdair_log.hpp> #include <stdair/stdair_db.hpp> #include <stdair/stdair_basic_types.hpp> #include <stdair/stdair_demand_types.hpp> +#include <stdair/stdair_maths_types.hpp> #include <stdair/stdair_fare_types.hpp> #include <stdair/stdair_inventory_types.hpp> +#include <stdair/stdair_rm_types.hpp> #include <stdair/stdair_date_time_types.hpp> #include <stdair/stdair_service.hpp> -namespace stdair { - - // //////// Type definitions ///////// - /** Define the type for network ID. */ - typedef std::string NetworkID_T; - - /** Define the file address type (e.g. "a_directory/a_filename")*/ - typedef std::string FileAddress_T; - - /** Define the replication number. */ - typedef unsigned int ReplicationNumber_T; - - /** Define the seed type of an Exponential function. */ - typedef unsigned long int ExponentialSeed_T; - - /** Define the seed type of an Uniform function. */ - typedef unsigned long int UniformSeed_T; - - /** Define the Request status for booking (1-letter-code, e.g., - B: booked, C: cancelled, R: Rejected). */ - typedef std::string RequestStatus_T; - - /** Define a mean value (e.g., 20.2). */ - typedef double MeanValue_T; - - /** Define a standard deviation value (e.g., 1.5). */ - typedef double StdDevValue_T; - - /** Define a map between a BookingID and a TravelSolutionID. */ - typedef std::map<Identity_T, Identity_T> BookingTSIDMap_T; - - /** Define a indicator of demand to class matching. */ - typedef double MatchingIndicator_T; - - /** Frequency of the Data Collection Point description (daily, monthly or - detailed). */ - typedef std::string DCPModeFrequency_T; - - /** Mode of the Data Collection Point description (Forecaster only, - Optimizer only or both of them). */ - typedef std::string DCPMode_T; - - /** Mode of the forecaster. */ - typedef std::string ForecasterMode_T; - - /** Limit of similar flight-dates used in the forecaster. */ - typedef short HistoricalDataLimit_T; - - /** Mode of the forecaster. */ - typedef std::string OptimizerMode_T; - - /** Mode of the forecaster. */ - typedef std::string DicoOptimizerMode_T; - - /** Mode of inventory control. */ - typedef std::string ControlMode_T; - - /** Define the name of a multiplier. */ - typedef double Multiplier_T; - - /** Define the name of a WTP-component of characteristics pattern. */ - typedef boost::tuples::tuple<double, double> CharacteristicsWTP_tuple_T; - - /** Define the name of sell-up probability flag for RMS optimizer. */ - typedef bool SellupFlagForOptimizer_T; - - /** Define the name of sell-up probability for RMS optimizer. */ - typedef double SellupProbabilityForOptimizer_T; - - /** Define the name of sell-up probability vector for RMS optimizer. */ - typedef std::vector<SellupProbabilityForOptimizer_T> - SellupProbabilityVector_T; - - /** Define the demand for a policy. */ - typedef NbOfBookings_T PolicyDemand_T; - - /** Define the total revenue of an unconstrained policy. */ - typedef double PolicyRevenue_T; - - /** Define the total revenue of an unconstrained policy. */ - typedef double PolicyRevenue_T; - - // ///////////// Technical //////////////// - /** File or directory name. - <br>It may contain paths, relative or absolute (e.g., /foo/bar - or C:\foo\bar). */ - typedef std::string Filename_T; - - // ////////////////////////////////////////////////////////////////////// - // Random generation - /** Seed for the random generation, so that it can be reproductible. */ - typedef unsigned long int RandomSeed_T; - - /** Random number generator. */ - typedef boost::minstd_rand BaseGenerator_T; - - /** Uniform random generator. */ - typedef boost::variate_generator<stdair::BaseGenerator_T&, - boost::uniform_real<> > UniformGenerator_T; - - // ////////////////////////////////////////////////////////////////////// - // Probability - /** Probability */ - typedef float Probability_T; - - // ////////////////////////////////////////////////////////////////////// - /** Type definition for the hashed key of the DemandStreamKey object. */ - typedef std::string DemandStreamKeyStr_T; - - /** Type of booking channel (D=direct, I=indirect, N=oNline, F=oFfline). */ - typedef std::string ChannelLabel_T; - - /** Type of trip type (RO=outbound of round-trip, RI=inbound of round-trip, - OW=one way). */ - typedef std::string TripType_T; - - /** Type of frequent flyer (P=Platinum, G=Gold, S=Silver, M=Member, N=None). */ - typedef std::string FrequentFlyer_T; - -} #endif // __STDAIR_STDAIR_TYPES_HPP This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <den...@us...> - 2010-12-03 14:26:50
|
Revision: 379 http://stdair.svn.sourceforge.net/stdair/?rev=379&view=rev Author: denis_arnaud Date: 2010-12-03 14:26:43 +0000 (Fri, 03 Dec 2010) Log Message: ----------- [Branch 0.9.0][API] Fixed a few compilation errors with the new API. Modified Paths: -------------- branches/stdair/0.9.0/main/stdair/bom/BookingClass.cpp branches/stdair/0.9.0/main/stdair/bom/BookingClass.hpp branches/stdair/0.9.0/main/stdair/bom/BookingClassKey.cpp branches/stdair/0.9.0/main/stdair/bom/BookingClassKey.hpp branches/stdair/0.9.0/main/stdair/bom/FlightDate.cpp branches/stdair/0.9.0/main/stdair/bom/FlightDateKey.cpp branches/stdair/0.9.0/main/stdair/bom/FlightDateKey.hpp branches/stdair/0.9.0/main/stdair/bom/LegCabin.hpp branches/stdair/0.9.0/main/stdair/bom/LegCabinKey.cpp branches/stdair/0.9.0/main/stdair/bom/LegCabinKey.hpp branches/stdair/0.9.0/main/stdair/bom/LegDate.hpp branches/stdair/0.9.0/main/stdair/bom/LegDateKey.cpp branches/stdair/0.9.0/main/stdair/bom/LegDateKey.hpp branches/stdair/0.9.0/main/stdair/bom/SegmentCabin.cpp branches/stdair/0.9.0/main/stdair/bom/SegmentCabin.hpp branches/stdair/0.9.0/main/stdair/bom/SegmentCabinKey.cpp branches/stdair/0.9.0/main/stdair/bom/SegmentCabinKey.hpp branches/stdair/0.9.0/main/stdair/bom/SegmentDateKey.cpp branches/stdair/0.9.0/main/stdair/bom/SegmentDateKey.hpp branches/stdair/0.9.0/main/stdair/stdair_basic_types.hpp branches/stdair/0.9.0/main/stdair/stdair_demand_types.hpp branches/stdair/0.9.0/main/stdair/stdair_inventory_types.hpp Modified: branches/stdair/0.9.0/main/stdair/bom/BookingClass.cpp =================================================================== --- branches/stdair/0.9.0/main/stdair/bom/BookingClass.cpp 2010-12-03 09:22:27 UTC (rev 378) +++ branches/stdair/0.9.0/main/stdair/bom/BookingClass.cpp 2010-12-03 14:26:43 UTC (rev 379) @@ -3,6 +3,7 @@ // ////////////////////////////////////////////////////////////////////// // STL #include <cassert> +#include <sstream> // STDAIR #include <stdair/basic/BasConst_BookingClass.hpp> #include <stdair/basic/BasConst_Yield.hpp> Modified: branches/stdair/0.9.0/main/stdair/bom/BookingClass.hpp =================================================================== --- branches/stdair/0.9.0/main/stdair/bom/BookingClass.hpp 2010-12-03 09:22:27 UTC (rev 378) +++ branches/stdair/0.9.0/main/stdair/bom/BookingClass.hpp 2010-12-03 14:26:43 UTC (rev 379) @@ -4,7 +4,8 @@ // ////////////////////////////////////////////////////////////////////// // Import section // ////////////////////////////////////////////////////////////////////// -// STDAIR +// StdAir +#include <stdair/stdair_inventory_types.hpp> #include <stdair/bom/BomAbstract.hpp> #include <stdair/bom/BookingClassKey.hpp> #include <stdair/bom/BookingClassTypes.hpp> Modified: branches/stdair/0.9.0/main/stdair/bom/BookingClassKey.cpp =================================================================== --- branches/stdair/0.9.0/main/stdair/bom/BookingClassKey.cpp 2010-12-03 09:22:27 UTC (rev 378) +++ branches/stdair/0.9.0/main/stdair/bom/BookingClassKey.cpp 2010-12-03 14:26:43 UTC (rev 379) @@ -1,6 +1,8 @@ // ////////////////////////////////////////////////////////////////////// // Import section // ////////////////////////////////////////////////////////////////////// +// STL +#include <sstream> // StdAir #include <stdair/bom/BookingClassKey.hpp> Modified: branches/stdair/0.9.0/main/stdair/bom/BookingClassKey.hpp =================================================================== --- branches/stdair/0.9.0/main/stdair/bom/BookingClassKey.hpp 2010-12-03 09:22:27 UTC (rev 378) +++ branches/stdair/0.9.0/main/stdair/bom/BookingClassKey.hpp 2010-12-03 14:26:43 UTC (rev 379) @@ -5,7 +5,7 @@ // Import section // ////////////////////////////////////////////////////////////////////// // StdAir -#include <stdair/stdair_inventory_types.hpp> +#include <stdair/stdair_basic_types.hpp> #include <stdair/bom/KeyAbstract.hpp> namespace stdair { Modified: branches/stdair/0.9.0/main/stdair/bom/FlightDate.cpp =================================================================== --- branches/stdair/0.9.0/main/stdair/bom/FlightDate.cpp 2010-12-03 09:22:27 UTC (rev 378) +++ branches/stdair/0.9.0/main/stdair/bom/FlightDate.cpp 2010-12-03 14:26:43 UTC (rev 379) @@ -3,6 +3,7 @@ // ////////////////////////////////////////////////////////////////////// // STL #include <cassert> +#include <sstream> // StdAir #include <stdair/bom/FlightDate.hpp> Modified: branches/stdair/0.9.0/main/stdair/bom/FlightDateKey.cpp =================================================================== --- branches/stdair/0.9.0/main/stdair/bom/FlightDateKey.cpp 2010-12-03 09:22:27 UTC (rev 378) +++ branches/stdair/0.9.0/main/stdair/bom/FlightDateKey.cpp 2010-12-03 14:26:43 UTC (rev 379) @@ -1,6 +1,8 @@ // ////////////////////////////////////////////////////////////////////// // Import section // ////////////////////////////////////////////////////////////////////// +// STL +#include <sstream> // StdAir #include <stdair/bom/FlightDateKey.hpp> Modified: branches/stdair/0.9.0/main/stdair/bom/FlightDateKey.hpp =================================================================== --- branches/stdair/0.9.0/main/stdair/bom/FlightDateKey.hpp 2010-12-03 09:22:27 UTC (rev 378) +++ branches/stdair/0.9.0/main/stdair/bom/FlightDateKey.hpp 2010-12-03 14:26:43 UTC (rev 379) @@ -5,7 +5,8 @@ // Import section // ////////////////////////////////////////////////////////////////////// // StdAir -#include <stdair/stdair_inventory_types.hpp> +#include <stdair/stdair_basic_types.hpp> +#include <stdair/stdair_date_time_types.hpp> #include <stdair/bom/KeyAbstract.hpp> namespace stdair { Modified: branches/stdair/0.9.0/main/stdair/bom/LegCabin.hpp =================================================================== --- branches/stdair/0.9.0/main/stdair/bom/LegCabin.hpp 2010-12-03 09:22:27 UTC (rev 378) +++ branches/stdair/0.9.0/main/stdair/bom/LegCabin.hpp 2010-12-03 14:26:43 UTC (rev 379) @@ -4,7 +4,8 @@ // ////////////////////////////////////////////////////////////////////// // Import section // ////////////////////////////////////////////////////////////////////// -// STDAIR +// StdAir +#include <stdair/stdair_inventory_types.hpp> #include <stdair/bom/BomAbstract.hpp> #include <stdair/bom/LegCabinKey.hpp> #include <stdair/bom/LegCabinTypes.hpp> Modified: branches/stdair/0.9.0/main/stdair/bom/LegCabinKey.cpp =================================================================== --- branches/stdair/0.9.0/main/stdair/bom/LegCabinKey.cpp 2010-12-03 09:22:27 UTC (rev 378) +++ branches/stdair/0.9.0/main/stdair/bom/LegCabinKey.cpp 2010-12-03 14:26:43 UTC (rev 379) @@ -1,6 +1,8 @@ // ////////////////////////////////////////////////////////////////////// // Import section // ////////////////////////////////////////////////////////////////////// +// STL +#include <sstream> // StdAir #include <stdair/bom/LegCabinKey.hpp> Modified: branches/stdair/0.9.0/main/stdair/bom/LegCabinKey.hpp =================================================================== --- branches/stdair/0.9.0/main/stdair/bom/LegCabinKey.hpp 2010-12-03 09:22:27 UTC (rev 378) +++ branches/stdair/0.9.0/main/stdair/bom/LegCabinKey.hpp 2010-12-03 14:26:43 UTC (rev 379) @@ -5,7 +5,7 @@ // Import section // ////////////////////////////////////////////////////////////////////// // StdAir -#include <stdair/stdair_inventory_types.hpp> +#include <stdair/stdair_basic_types.hpp> #include <stdair/bom/KeyAbstract.hpp> namespace stdair { Modified: branches/stdair/0.9.0/main/stdair/bom/LegDate.hpp =================================================================== --- branches/stdair/0.9.0/main/stdair/bom/LegDate.hpp 2010-12-03 09:22:27 UTC (rev 378) +++ branches/stdair/0.9.0/main/stdair/bom/LegDate.hpp 2010-12-03 14:26:43 UTC (rev 379) @@ -4,7 +4,8 @@ // ////////////////////////////////////////////////////////////////////// // Import section // ////////////////////////////////////////////////////////////////////// -// STDAIR +// StdAir +#include <stdair/stdair_inventory_types.hpp> #include <stdair/bom/BomAbstract.hpp> #include <stdair/bom/LegDateKey.hpp> #include <stdair/bom/LegDateTypes.hpp> Modified: branches/stdair/0.9.0/main/stdair/bom/LegDateKey.cpp =================================================================== --- branches/stdair/0.9.0/main/stdair/bom/LegDateKey.cpp 2010-12-03 09:22:27 UTC (rev 378) +++ branches/stdair/0.9.0/main/stdair/bom/LegDateKey.cpp 2010-12-03 14:26:43 UTC (rev 379) @@ -1,6 +1,8 @@ // ////////////////////////////////////////////////////////////////////// // Import section // ////////////////////////////////////////////////////////////////////// +// STL +#include <sstream> // StdAir #include <stdair/bom/LegDateKey.hpp> Modified: branches/stdair/0.9.0/main/stdair/bom/LegDateKey.hpp =================================================================== --- branches/stdair/0.9.0/main/stdair/bom/LegDateKey.hpp 2010-12-03 09:22:27 UTC (rev 378) +++ branches/stdair/0.9.0/main/stdair/bom/LegDateKey.hpp 2010-12-03 14:26:43 UTC (rev 379) @@ -6,7 +6,6 @@ // ////////////////////////////////////////////////////////////////////// // StdAir #include <stdair/stdair_basic_types.hpp> -#include <stdair/stdair_inventory_types.hpp> #include <stdair/bom/KeyAbstract.hpp> namespace stdair { Modified: branches/stdair/0.9.0/main/stdair/bom/SegmentCabin.cpp =================================================================== --- branches/stdair/0.9.0/main/stdair/bom/SegmentCabin.cpp 2010-12-03 09:22:27 UTC (rev 378) +++ branches/stdair/0.9.0/main/stdair/bom/SegmentCabin.cpp 2010-12-03 14:26:43 UTC (rev 379) @@ -3,7 +3,8 @@ // ////////////////////////////////////////////////////////////////////// // STL #include <cassert> -// STDAIR +#include <sstream> +// StdAir #include <stdair/basic/BasConst_BookingClass.hpp> #include <stdair/basic/BasConst_Inventory.hpp> #include <stdair/bom/SegmentCabin.hpp> Modified: branches/stdair/0.9.0/main/stdair/bom/SegmentCabin.hpp =================================================================== --- branches/stdair/0.9.0/main/stdair/bom/SegmentCabin.hpp 2010-12-03 09:22:27 UTC (rev 378) +++ branches/stdair/0.9.0/main/stdair/bom/SegmentCabin.hpp 2010-12-03 14:26:43 UTC (rev 379) @@ -4,7 +4,8 @@ // ////////////////////////////////////////////////////////////////////// // Import section // ////////////////////////////////////////////////////////////////////// -// STDAIR +// StdAir +#include <stdair/stdair_inventory_types.hpp> #include <stdair/bom/BomAbstract.hpp> #include <stdair/bom/SegmentCabinKey.hpp> #include <stdair/bom/SegmentCabinTypes.hpp> Modified: branches/stdair/0.9.0/main/stdair/bom/SegmentCabinKey.cpp =================================================================== --- branches/stdair/0.9.0/main/stdair/bom/SegmentCabinKey.cpp 2010-12-03 09:22:27 UTC (rev 378) +++ branches/stdair/0.9.0/main/stdair/bom/SegmentCabinKey.cpp 2010-12-03 14:26:43 UTC (rev 379) @@ -1,6 +1,8 @@ // ////////////////////////////////////////////////////////////////////// // Import section // ////////////////////////////////////////////////////////////////////// +// STL +#include <sstream> // StdAir #include <stdair/bom/SegmentCabinKey.hpp> Modified: branches/stdair/0.9.0/main/stdair/bom/SegmentCabinKey.hpp =================================================================== --- branches/stdair/0.9.0/main/stdair/bom/SegmentCabinKey.hpp 2010-12-03 09:22:27 UTC (rev 378) +++ branches/stdair/0.9.0/main/stdair/bom/SegmentCabinKey.hpp 2010-12-03 14:26:43 UTC (rev 379) @@ -5,7 +5,7 @@ // Import section // ////////////////////////////////////////////////////////////////////// // StdAir -#include <stdair/stdair_inventory_types.hpp> +#include <stdair/stdair_basic_types.hpp> #include <stdair/bom/KeyAbstract.hpp> namespace stdair { Modified: branches/stdair/0.9.0/main/stdair/bom/SegmentDateKey.cpp =================================================================== --- branches/stdair/0.9.0/main/stdair/bom/SegmentDateKey.cpp 2010-12-03 09:22:27 UTC (rev 378) +++ branches/stdair/0.9.0/main/stdair/bom/SegmentDateKey.cpp 2010-12-03 14:26:43 UTC (rev 379) @@ -1,6 +1,8 @@ // ////////////////////////////////////////////////////////////////////// // Import section // ////////////////////////////////////////////////////////////////////// +// STL +#include <sstream> // StdAir #include <stdair/bom/SegmentDateKey.hpp> Modified: branches/stdair/0.9.0/main/stdair/bom/SegmentDateKey.hpp =================================================================== --- branches/stdair/0.9.0/main/stdair/bom/SegmentDateKey.hpp 2010-12-03 09:22:27 UTC (rev 378) +++ branches/stdair/0.9.0/main/stdair/bom/SegmentDateKey.hpp 2010-12-03 14:26:43 UTC (rev 379) @@ -6,7 +6,6 @@ // ////////////////////////////////////////////////////////////////////// // StdAir #include <stdair/stdair_basic_types.hpp> -#include <stdair/stdair_inventory_types.hpp> #include <stdair/bom/KeyAbstract.hpp> namespace stdair { Modified: branches/stdair/0.9.0/main/stdair/stdair_basic_types.hpp =================================================================== --- branches/stdair/0.9.0/main/stdair/stdair_basic_types.hpp 2010-12-03 09:22:27 UTC (rev 378) +++ branches/stdair/0.9.0/main/stdair/stdair_basic_types.hpp 2010-12-03 14:26:43 UTC (rev 379) @@ -14,9 +14,6 @@ /** Event type */ typedef std::string EventType_T; - /** Count */ - typedef int Count_T; - /** Location code (3-letter-code, e.g., LON). */ typedef std::string LocationCode_T; @@ -29,6 +26,23 @@ /** City code */ typedef LocationCode_T CityCode_T; + /** Define the Airline Code type (2-letter-code, e.g., BA). */ + typedef std::string AirlineCode_T; + + /** Define the type for flight numbers. */ + typedef unsigned short FlightNumber_T; + + /** Define the cabin code (class of service, e.g., first, business, + economy). */ + typedef std::string CabinCode_T; + + /** Define the code of the fare family (e.g., 1, 2, 3, etc.). */ + typedef std::string FamilyCode_T; + + /** Define the booking class code (product segment class, e.g., H, + B, K, etc.). */ + typedef std::string ClassCode_T; + /** Define a identity number. */ typedef unsigned long Identity_T; @@ -66,6 +80,22 @@ /** Define the number of seats required by a demand. */ // typedef unsigned short NbOfSeats_T; + /** Count */ + typedef int Count_T; + + /** Number of passengers (in a group) for a booking. */ + typedef unsigned short PartySize_T; + + /** Define a number of requests. */ + typedef double NbOfRequests_T; + + /** Define a number of bookings. */ + typedef NbOfRequests_T NbOfBookings_T; + + /** Define a number of travel solutions + (in a travel solution block). */ + typedef unsigned short NbOfTravelSolutions_T; + // ///////////// Technical //////////////// /** File or directory name. <br>It may contain paths, relative or absolute (e.g., /foo/bar Modified: branches/stdair/0.9.0/main/stdair/stdair_demand_types.hpp =================================================================== --- branches/stdair/0.9.0/main/stdair/stdair_demand_types.hpp 2010-12-03 09:22:27 UTC (rev 378) +++ branches/stdair/0.9.0/main/stdair/stdair_demand_types.hpp 2010-12-03 14:26:43 UTC (rev 379) @@ -69,25 +69,12 @@ /** Define the name of a WTP-component of characteristics pattern. */ typedef boost::tuples::tuple<double, WTP_T> CharacteristicsWTP_tuple_T; - /** Number of passengers (in a group) for a booking. */ - typedef unsigned short PartySize_T; - - /** Define a number of requests. */ - typedef double NbOfRequests_T; - - /** Define a number of bookings. */ - typedef NbOfRequests_T NbOfBookings_T; - /** Define a number of cancellations (travellers). */ typedef NbOfRequests_T NbOfCancellations_T; /** Define a number of no-shows. */ typedef NbOfRequests_T NbOfNoShows_T; - /** Define a number of travel solutions - (in a travel solution block). */ - typedef unsigned short NbOfTravelSolutions_T; - /** Define a indicator of demand to class matching. */ typedef double MatchingIndicator_T; Modified: branches/stdair/0.9.0/main/stdair/stdair_inventory_types.hpp =================================================================== --- branches/stdair/0.9.0/main/stdair/stdair_inventory_types.hpp 2010-12-03 09:22:27 UTC (rev 378) +++ branches/stdair/0.9.0/main/stdair/stdair_inventory_types.hpp 2010-12-03 14:26:43 UTC (rev 379) @@ -18,27 +18,10 @@ /** Define the type for network ID. */ typedef std::string NetworkID_T; - /** Define the Airline Code type (2-letter-code, e.g., BA). */ - typedef std::string AirlineCode_T; - - /** Define a list of airline code. */ + /** Define a list of airline code. */ typedef std::vector<AirlineCode_T> AirlineCodeList_T; - /** Define the type for flight numbers. */ - typedef unsigned short FlightNumber_T; - - /** Define the cabin code (class of service, e.g., first, business, - economy). */ - typedef std::string CabinCode_T; - - /** Define the code of the fare family (e.g., 1, 2, 3, etc.). */ - typedef std::string FamilyCode_T; - - /** Define the booking class code (product segment class, e.g., H, - B, K, etc.). */ - typedef std::string ClassCode_T; - - /** Define a list of class code. */ + /** Define a list of class code. */ typedef std::vector<ClassCode_T> ClassCodeList_T; /** Define the sub-class code (e.g., 0, 1, 2, etc.). The subclass is This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <den...@us...> - 2010-12-03 14:51:27
|
Revision: 381 http://stdair.svn.sourceforge.net/stdair/?rev=381&view=rev Author: denis_arnaud Date: 2010-12-03 14:51:21 +0000 (Fri, 03 Dec 2010) Log Message: ----------- [Branch 0.9.0][API] Fixed a few compilation errors with the new API. Modified Paths: -------------- branches/stdair/0.9.0/main/stdair/bom/Bucket.cpp branches/stdair/0.9.0/main/stdair/bom/Bucket.hpp branches/stdair/0.9.0/main/stdair/bom/BucketKey.hpp branches/stdair/0.9.0/main/stdair/bom/OptimizerStruct.cpp branches/stdair/0.9.0/main/stdair/bom/OptimizerStruct.hpp branches/stdair/0.9.0/main/stdair/bom/TravelSolutionStruct.cpp branches/stdair/0.9.0/main/stdair/bom/TravelSolutionStruct.hpp branches/stdair/0.9.0/main/stdair/stdair_rm_types.hpp Modified: branches/stdair/0.9.0/main/stdair/bom/Bucket.cpp =================================================================== --- branches/stdair/0.9.0/main/stdair/bom/Bucket.cpp 2010-12-03 14:27:44 UTC (rev 380) +++ branches/stdair/0.9.0/main/stdair/bom/Bucket.cpp 2010-12-03 14:51:21 UTC (rev 381) @@ -3,6 +3,7 @@ // ////////////////////////////////////////////////////////////////////// // STL #include <cassert> +#include <sstream> // StdAir #include <stdair/bom/Bucket.hpp> Modified: branches/stdair/0.9.0/main/stdair/bom/Bucket.hpp =================================================================== --- branches/stdair/0.9.0/main/stdair/bom/Bucket.hpp 2010-12-03 14:27:44 UTC (rev 380) +++ branches/stdair/0.9.0/main/stdair/bom/Bucket.hpp 2010-12-03 14:51:21 UTC (rev 381) @@ -4,8 +4,11 @@ // ////////////////////////////////////////////////////////////////////// // Import section // ////////////////////////////////////////////////////////////////////// -// STDAIR -#include <stdair/stdair_types.hpp> +// STL +#include <string> +#include <iosfwd> +// StdAir +#include <stdair/stdair_inventory_types.hpp> #include <stdair/bom/BomAbstract.hpp> #include <stdair/bom/BucketKey.hpp> #include <stdair/bom/BucketTypes.hpp> Modified: branches/stdair/0.9.0/main/stdair/bom/BucketKey.hpp =================================================================== --- branches/stdair/0.9.0/main/stdair/bom/BucketKey.hpp 2010-12-03 14:27:44 UTC (rev 380) +++ branches/stdair/0.9.0/main/stdair/bom/BucketKey.hpp 2010-12-03 14:51:21 UTC (rev 381) @@ -4,7 +4,10 @@ // ////////////////////////////////////////////////////////////////////// // Import section // ////////////////////////////////////////////////////////////////////// -// STDAIR +// STL +#include <string> +#include <iosfwd> +// StdAir #include <stdair/bom/KeyAbstract.hpp> namespace stdair { Modified: branches/stdair/0.9.0/main/stdair/bom/OptimizerStruct.cpp =================================================================== --- branches/stdair/0.9.0/main/stdair/bom/OptimizerStruct.cpp 2010-12-03 14:27:44 UTC (rev 380) +++ branches/stdair/0.9.0/main/stdair/bom/OptimizerStruct.cpp 2010-12-03 14:51:21 UTC (rev 381) @@ -2,11 +2,10 @@ // Import section // ////////////////////////////////////////////////////////////////////// // STL -#include <string> +#include <cassert> #include <sstream> #include <vector> -// STDAIR -#include <stdair/stdair_types.hpp> +// StdAir #include <stdair/bom/OptimizerStruct.hpp> namespace stdair { Modified: branches/stdair/0.9.0/main/stdair/bom/OptimizerStruct.hpp =================================================================== --- branches/stdair/0.9.0/main/stdair/bom/OptimizerStruct.hpp 2010-12-03 14:27:44 UTC (rev 380) +++ branches/stdair/0.9.0/main/stdair/bom/OptimizerStruct.hpp 2010-12-03 14:51:21 UTC (rev 381) @@ -6,6 +6,8 @@ // ////////////////////////////////////////////////////////////////////// // STL #include <string> +// StdAir +#include <stdair/stdair_rm_types.hpp> namespace stdair { Modified: branches/stdair/0.9.0/main/stdair/bom/TravelSolutionStruct.cpp =================================================================== --- branches/stdair/0.9.0/main/stdair/bom/TravelSolutionStruct.cpp 2010-12-03 14:27:44 UTC (rev 380) +++ branches/stdair/0.9.0/main/stdair/bom/TravelSolutionStruct.cpp 2010-12-03 14:51:21 UTC (rev 381) @@ -3,11 +3,8 @@ // ////////////////////////////////////////////////////////////////////// // STL #include <cassert> -#include <istream> -#include <ostream> #include <sstream> // StdAir -#include <stdair/stdair_types.hpp> #include <stdair/basic/BasConst_BookingClass.hpp> #include <stdair/bom/TravelSolutionStruct.hpp> Modified: branches/stdair/0.9.0/main/stdair/bom/TravelSolutionStruct.hpp =================================================================== --- branches/stdair/0.9.0/main/stdair/bom/TravelSolutionStruct.hpp 2010-12-03 14:27:44 UTC (rev 380) +++ branches/stdair/0.9.0/main/stdair/bom/TravelSolutionStruct.hpp 2010-12-03 14:51:21 UTC (rev 381) @@ -9,10 +9,12 @@ #include <string> #include <vector> // StdAir +#include <stdair/stdair_basic_types.hpp> #include <stdair/basic/StructAbstract.hpp> #include <stdair/bom/BookingClassTypes.hpp> namespace stdair { + /** Structure holding the elements of a travel solution. */ struct TravelSolutionStruct : public StructAbstract { public: Modified: branches/stdair/0.9.0/main/stdair/stdair_rm_types.hpp =================================================================== --- branches/stdair/0.9.0/main/stdair/stdair_rm_types.hpp 2010-12-03 14:27:44 UTC (rev 380) +++ branches/stdair/0.9.0/main/stdair/stdair_rm_types.hpp 2010-12-03 14:51:21 UTC (rev 381) @@ -7,6 +7,8 @@ // STL #include <string> #include <vector> +// StdAir +#include <stdair/stdair_basic_types.hpp> namespace stdair { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <den...@us...> - 2010-12-03 15:09:42
|
Revision: 383 http://stdair.svn.sourceforge.net/stdair/?rev=383&view=rev Author: denis_arnaud Date: 2010-12-03 15:09:36 +0000 (Fri, 03 Dec 2010) Log Message: ----------- [Branch 0.9.0][API] Fixed a few compilation errors with the new API. Modified Paths: -------------- branches/stdair/0.9.0/main/stdair/bom/TravelSolutionStruct.hpp branches/stdair/0.9.0/main/stdair/stdair_basic_types.hpp branches/stdair/0.9.0/main/stdair/stdair_fare_types.hpp branches/stdair/0.9.0/main/stdair/stdair_inventory_types.hpp Modified: branches/stdair/0.9.0/main/stdair/bom/TravelSolutionStruct.hpp =================================================================== --- branches/stdair/0.9.0/main/stdair/bom/TravelSolutionStruct.hpp 2010-12-03 14:51:47 UTC (rev 382) +++ branches/stdair/0.9.0/main/stdair/bom/TravelSolutionStruct.hpp 2010-12-03 15:09:36 UTC (rev 383) @@ -19,27 +19,38 @@ struct TravelSolutionStruct : public StructAbstract { public: // /////////// Getters /////////////// + /** Get the fare/price. */ + const Fare_T getFare() const { + return _fare; + } + /** Get the availability. */ + const Availability_T getAvailability() const { + return _availability; + } + /** Get the list of segment-date keys. */ const KeyList_T& getSegmentDateKeyList () const { return _segmentDateKeyList; } + /** Get the list of booking-class keys. */ const ClassList_String_T& getBookingClassKeyList () const { return _bookingClassKeyList; } - const Fare_T getFare() const { return _fare; } - const Availability_T getAvailability() const { return _availability; } public: // /////////// Setters /////////////// - /** Setter for some attributes. */ + /** Set the fare/price. */ void setFare (const Fare_T& iFare) { _fare = iFare; } + /** Set the availability. */ void setAvailability (const Availability_T& iAvail) { _availability=iAvail; } + /** Add a segment-date key to the dedicated list. */ void addSegmentDateKey (const std::string& iKey) { _segmentDateKeyList.push_back (iKey); } + /** Add a booking-class key to the dedicated list. */ void addBookingClassKey (const char iKey) { _bookingClassKeyList.push_back (iKey); } Modified: branches/stdair/0.9.0/main/stdair/stdair_basic_types.hpp =================================================================== --- branches/stdair/0.9.0/main/stdair/stdair_basic_types.hpp 2010-12-03 14:51:47 UTC (rev 382) +++ branches/stdair/0.9.0/main/stdair/stdair_basic_types.hpp 2010-12-03 15:09:36 UTC (rev 383) @@ -96,6 +96,21 @@ (in a travel solution block). */ typedef unsigned short NbOfTravelSolutions_T; + /** Define the list of class codes as a string. */ + typedef std::string ClassList_String_T; + + /** Define a number of segment-dates (in a path). */ + typedef unsigned short NbOfSegments_T; + + /** Define a number of airlines (in a path). */ + typedef unsigned short NbOfAirlines_T; + + /** Define an availability. */ + typedef double Availability_T; + + /** Define the price of a travel solution. */ + typedef double Fare_T; + // ///////////// Technical //////////////// /** File or directory name. <br>It may contain paths, relative or absolute (e.g., /foo/bar Modified: branches/stdair/0.9.0/main/stdair/stdair_fare_types.hpp =================================================================== --- branches/stdair/0.9.0/main/stdair/stdair_fare_types.hpp 2010-12-03 14:51:47 UTC (rev 382) +++ branches/stdair/0.9.0/main/stdair/stdair_fare_types.hpp 2010-12-03 15:09:36 UTC (rev 383) @@ -11,8 +11,5 @@ /** Define a number of fare rules. */ typedef double NbOfFareRules_T; - /** Define the fare of a travel solution. */ - typedef double Fare_T; - } #endif // __STDAIR_STDAIR_FARE_TYPES_HPP Modified: branches/stdair/0.9.0/main/stdair/stdair_inventory_types.hpp =================================================================== --- branches/stdair/0.9.0/main/stdair/stdair_inventory_types.hpp 2010-12-03 14:51:47 UTC (rev 382) +++ branches/stdair/0.9.0/main/stdair/stdair_inventory_types.hpp 2010-12-03 15:09:36 UTC (rev 383) @@ -32,15 +32,6 @@ /** Define the flight path code (code made by a suite of flight numbers). */ typedef std::string FlightPathCode_T; - /** Define the list of class codes as a string. */ - typedef std::string ClassList_String_T; - - /** Define a number of segment-dates (in a path). */ - typedef unsigned short NbOfSegments_T; - - /** Define a number of airlines (in a path). */ - typedef unsigned short NbOfAirlines_T; - /** Map between the cabin codes and the booking class codes within each cabin. */ typedef std::map<CabinCode_T, ClassList_String_T> CabinBookingClassMap_T; @@ -70,10 +61,7 @@ /** Define the number of seat which could not be used for the booking. */ typedef double BlockSpace_T; - /** Define an availability. */ - typedef double Availability_T; - - /** Define an availability. */ + /** Define an availability status (AVS). */ typedef bool AvailabilityStatus_T; /** Define a list of availabilities. */ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <den...@us...> - 2010-12-03 17:22:57
|
Revision: 387 http://stdair.svn.sourceforge.net/stdair/?rev=387&view=rev Author: denis_arnaud Date: 2010-12-03 15:33:52 +0000 (Fri, 03 Dec 2010) Log Message: ----------- [Branch 0.9.0][API] Fixed a few compilation errors with the new API. Modified Paths: -------------- branches/stdair/0.9.0/main/stdair/command/DBManagerForAirlines.cpp branches/stdair/0.9.0/main/stdair/command/DBManagerForAirlines.hpp branches/stdair/0.9.0/main/stdair/sources.mk branches/stdair/0.9.0/main/stdair/stdair_date_time_types.hpp branches/stdair/0.9.0/main/stdair/stdair_types.hpp Added Paths: ----------- branches/stdair/0.9.0/main/stdair/stdair_service_types.hpp Removed Paths: ------------- branches/stdair/0.9.0/main/stdair/stdair_service.hpp Modified: branches/stdair/0.9.0/main/stdair/command/DBManagerForAirlines.cpp =================================================================== --- branches/stdair/0.9.0/main/stdair/command/DBManagerForAirlines.cpp 2010-12-03 15:20:52 UTC (rev 386) +++ branches/stdair/0.9.0/main/stdair/command/DBManagerForAirlines.cpp 2010-12-03 15:33:52 UTC (rev 387) @@ -12,7 +12,8 @@ #include <mysql/soci-mysql.h> #endif // SOCI_HEADERS_BURIED // StdAir -#include <stdair/stdair_inventory_types.hpp> +#include <stdair/stdair_basic_types.hpp> +#include <stdair/stdair_exceptions.hpp> #include <stdair/bom/AirlineStruct.hpp> #include <stdair/dbadaptor/DbaAirline.hpp> #include <stdair/command/DBManagerForAirlines.hpp> Modified: branches/stdair/0.9.0/main/stdair/command/DBManagerForAirlines.hpp =================================================================== --- branches/stdair/0.9.0/main/stdair/command/DBManagerForAirlines.hpp 2010-12-03 15:20:52 UTC (rev 386) +++ branches/stdair/0.9.0/main/stdair/command/DBManagerForAirlines.hpp 2010-12-03 15:33:52 UTC (rev 387) @@ -5,6 +5,7 @@ // Import section // ////////////////////////////////////////////////////////////////////// // StdAir +#include <stdair/stdair_db.hpp> #include <stdair/command/CmdAbstract.hpp> namespace stdair { Modified: branches/stdair/0.9.0/main/stdair/sources.mk =================================================================== --- branches/stdair/0.9.0/main/stdair/sources.mk 2010-12-03 15:20:52 UTC (rev 386) +++ branches/stdair/0.9.0/main/stdair/sources.mk 2010-12-03 15:33:52 UTC (rev 387) @@ -9,8 +9,8 @@ $(top_srcdir)/stdair/stdair_rm_types.hpp \ $(top_srcdir)/stdair/stdair_demand_types.hpp \ $(top_srcdir)/stdair/stdair_fare_types.hpp \ + $(top_srcdir)/stdair/stdair_service_types.hpp \ $(top_srcdir)/stdair/stdair_types.hpp \ - $(top_srcdir)/stdair/stdair_service.hpp \ $(top_srcdir)/stdair/STDAIR_Service.hpp stdair_service_cc_sources = Modified: branches/stdair/0.9.0/main/stdair/stdair_date_time_types.hpp =================================================================== --- branches/stdair/0.9.0/main/stdair/stdair_date_time_types.hpp 2010-12-03 15:20:52 UTC (rev 386) +++ branches/stdair/0.9.0/main/stdair/stdair_date_time_types.hpp 2010-12-03 15:33:52 UTC (rev 387) @@ -6,22 +6,9 @@ // ////////////////////////////////////////////////////////////////////// // STL #include <string> -#include <vector> -#include <map> -// Boost Random -#include <boost/random/linear_congruential.hpp> -#include <boost/random/uniform_real.hpp> -#include <boost/random/variate_generator.hpp> // Boost (Extended STL) #include <boost/date_time/gregorian/gregorian.hpp> #include <boost/date_time/posix_time/posix_time.hpp> -#include <boost/tuple/tuple.hpp> -// StdAir -#include <stdair/stdair_exceptions.hpp> -#include <stdair/stdair_log.hpp> -#include <stdair/stdair_db.hpp> -#include <stdair/stdair_inventory_types.hpp> -#include <stdair/stdair_service.hpp> namespace stdair { Deleted: branches/stdair/0.9.0/main/stdair/stdair_service.hpp =================================================================== --- branches/stdair/0.9.0/main/stdair/stdair_service.hpp 2010-12-03 15:20:52 UTC (rev 386) +++ branches/stdair/0.9.0/main/stdair/stdair_service.hpp 2010-12-03 15:33:52 UTC (rev 387) @@ -1,19 +0,0 @@ -#ifndef __STDAIR_STDAIR_SERVICE_HPP -#define __STDAIR_STDAIR_SERVICE_HPP - -// ////////////////////////////////////////////////////////////////////// -// Import section -// ////////////////////////////////////////////////////////////////////// -// Boost (Extended STL) -#include <boost/shared_ptr.hpp> - -namespace stdair { - - // Forward declarations - class STDAIR_Service; - - /** Pointer on the STDAIR Service handler. */ - typedef boost::shared_ptr<STDAIR_Service> STDAIR_ServicePtr_T; - -} -#endif // __STDAIR_STDAIR_SERVICE_HPP Copied: branches/stdair/0.9.0/main/stdair/stdair_service_types.hpp (from rev 376, branches/stdair/0.9.0/main/stdair/stdair_service.hpp) =================================================================== --- branches/stdair/0.9.0/main/stdair/stdair_service_types.hpp (rev 0) +++ branches/stdair/0.9.0/main/stdair/stdair_service_types.hpp 2010-12-03 15:33:52 UTC (rev 387) @@ -0,0 +1,19 @@ +#ifndef __STDAIR_STDAIR_SERVICE_HPP +#define __STDAIR_STDAIR_SERVICE_HPP + +// ////////////////////////////////////////////////////////////////////// +// Import section +// ////////////////////////////////////////////////////////////////////// +// Boost (Extended STL) +#include <boost/shared_ptr.hpp> + +namespace stdair { + + // Forward declarations + class STDAIR_Service; + + /** Pointer on the STDAIR Service handler. */ + typedef boost::shared_ptr<STDAIR_Service> STDAIR_ServicePtr_T; + +} +#endif // __STDAIR_STDAIR_SERVICE_HPP Modified: branches/stdair/0.9.0/main/stdair/stdair_types.hpp =================================================================== --- branches/stdair/0.9.0/main/stdair/stdair_types.hpp 2010-12-03 15:20:52 UTC (rev 386) +++ branches/stdair/0.9.0/main/stdair/stdair_types.hpp 2010-12-03 15:33:52 UTC (rev 387) @@ -15,6 +15,6 @@ #include <stdair/stdair_inventory_types.hpp> #include <stdair/stdair_rm_types.hpp> #include <stdair/stdair_date_time_types.hpp> -#include <stdair/stdair_service.hpp> +#include <stdair/stdair_service_types.hpp> #endif // __STDAIR_STDAIR_TYPES_HPP This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |