From: <qua...@us...> - 2009-10-15 09:21:23
|
Revision: 46 http://stdair.svn.sourceforge.net/stdair/?rev=46&view=rev Author: quannaus Date: 2009-10-15 09:21:08 +0000 (Thu, 15 Oct 2009) Log Message: ----------- [Dev] Added the xxxContent objects. Modified Paths: -------------- trunk/stdair/stdair/bom/BomStructureRoot.hpp trunk/stdair/stdair/bom/BookingClass.hpp trunk/stdair/stdair/bom/FlightDate.hpp trunk/stdair/stdair/bom/Inventory.hpp trunk/stdair/stdair/bom/LegCabin.hpp trunk/stdair/stdair/bom/LegDate.hpp trunk/stdair/stdair/bom/SegmentCabin.hpp trunk/stdair/stdair/bom/SegmentDate.hpp trunk/stdair/stdair/bom/sources.mk Added Paths: ----------- trunk/stdair/stdair/bom/BookingClassContent.cpp trunk/stdair/stdair/bom/BookingClassContent.hpp trunk/stdair/stdair/bom/FlightDateContent.cpp trunk/stdair/stdair/bom/FlightDateContent.hpp trunk/stdair/stdair/bom/InventoryContent.cpp trunk/stdair/stdair/bom/InventoryContent.hpp trunk/stdair/stdair/bom/LegCabinContent.cpp trunk/stdair/stdair/bom/LegCabinContent.hpp trunk/stdair/stdair/bom/LegDateContent.cpp trunk/stdair/stdair/bom/LegDateContent.hpp trunk/stdair/stdair/bom/SegmentCabinContent.cpp trunk/stdair/stdair/bom/SegmentCabinContent.hpp trunk/stdair/stdair/bom/SegmentDateContent.cpp trunk/stdair/stdair/bom/SegmentDateContent.hpp Modified: trunk/stdair/stdair/bom/BomStructureRoot.hpp =================================================================== --- trunk/stdair/stdair/bom/BomStructureRoot.hpp 2009-10-14 14:33:39 UTC (rev 45) +++ trunk/stdair/stdair/bom/BomStructureRoot.hpp 2009-10-15 09:21:08 UTC (rev 46) @@ -47,16 +47,7 @@ typedef BomChildrenHolderImp<ContentChild_T> ChildrenBomHolder_T; public: - /** Define the iterators of the inventory list. */ - typedef typename ChildrenBomHolder_T::ListIterator_T InventoryListIterator_T; - typedef typename ChildrenBomHolder_T::ListReverseIterator_T InventoryListReverseIterator_T; - /** Define the iterators of the inventory map. */ - typedef typename ChildrenBomHolder_T::MapIterator_T InventoryMapIterator_T; - typedef typename ChildrenBomHolder_T::MapReverseIterator_T InventoryMapReverseIterator_T; - - public: - // /////////// Getters ///////////// /** Get the BomStructureRoot key. */ const BomKey_T& getKey() const { @@ -106,64 +97,6 @@ at the same level). */ const std::string describeShortKey() const { return _key.toString(); } - public: - // /////////// Iteration methods ////////// - /** Initialise the internal iterator on inventory: - return the iterator at the begining of the list. */ - InventoryListIterator_T inventoryListBegin () const { - assert (_childrenList != NULL); - return _childrenList->listBegin (); - } - - /** Initialise the internal iterator on inventory: - return the iterator at the end of the list. */ - InventoryListIterator_T inventoryListEnd () const { - assert (_childrenList != NULL); - return _childrenList->listEnd (); - } - - /** Initialise the internal reverse iterator on inventory: - return the reverse iterator at the rbegining of the list. */ - InventoryListReverseIterator_T inventoryListRBegin () const { - assert (_childrenList != NULL); - return _childrenList->listRBegin (); - } - - /** Initialise the internal reverse iterator on inventory: - return the reverse iterator at the rend of the list. */ - InventoryListReverseIterator_T inventoryListREnd () const { - assert (_childrenList != NULL); - return _childrenList->listREnd (); - } - - /** Initialise the internal iterator on inventory: - return the iterator at the begining of the map. */ - InventoryMapIterator_T inventoryMapBegin () const { - assert (_childrenList != NULL); - return _childrenList->mapBegin (); - } - - /** Initialise the internal iterator on inventory: - return the iterator at the end of the map. */ - InventoryMapIterator_T inventoryMapEnd () const { - assert (_childrenList != NULL); - return _childrenList->mapEnd (); - } - - /** Initialise the internal reverse iterator on inventory: - return the reverse iterator at the rbegining of the map. */ - InventoryMapReverseIterator_T inventoryMapRBegin () const { - assert (_childrenList != NULL); - return _childrenList->mapRBegin (); - } - - /** Initialise the internal reverse iterator on inventory: - return the reverse iterator at the rend of the map. */ - InventoryMapReverseIterator_T inventoryMapREnd () const { - assert (_childrenList != NULL); - return _childrenList->mapREnd (); - } - private: /** Constructors are private so as to force the usage of the Factory layer. */ Modified: trunk/stdair/stdair/bom/BookingClass.hpp =================================================================== --- trunk/stdair/stdair/bom/BookingClass.hpp 2009-10-14 14:33:39 UTC (rev 45) +++ trunk/stdair/stdair/bom/BookingClass.hpp 2009-10-15 09:21:08 UTC (rev 46) @@ -5,7 +5,7 @@ // Import section // ////////////////////////////////////////////////////////////////////// // STDAIR -#include <stdair/bom/BomContent.hpp> +#include <stdair/bom/BookingClassContent.hpp> #include <stdair/bom/SegmentCabinTypes.hpp> #include <stdair/bom/BookingClassTypes.hpp> @@ -18,7 +18,7 @@ /** Class representing the actual functional/business content for a segment-cabin. */ - class BookingClass : public BomContent { + class BookingClass : public BookingClassContent { friend class FacBomContent; public: Copied: trunk/stdair/stdair/bom/BookingClassContent.cpp (from rev 45, trunk/stdair/stdair/bom/Inventory.cpp) =================================================================== --- trunk/stdair/stdair/bom/BookingClassContent.cpp (rev 0) +++ trunk/stdair/stdair/bom/BookingClassContent.cpp 2009-10-15 09:21:08 UTC (rev 46) @@ -0,0 +1,20 @@ +// ////////////////////////////////////////////////////////////////////// +// Import section +// ////////////////////////////////////////////////////////////////////// +// STL +#include <cassert> +// STDAIR +#include <stdair/bom/BookingClassContent.hpp> + +namespace stdair { + + // //////////////////////////////////////////////////////////////////// + BookingClassContent::BookingClassContent () { + } + + // //////////////////////////////////////////////////////////////////// + BookingClassContent::~BookingClassContent () { + } + +} + Copied: trunk/stdair/stdair/bom/BookingClassContent.hpp (from rev 45, trunk/stdair/stdair/bom/Inventory.hpp) =================================================================== --- trunk/stdair/stdair/bom/BookingClassContent.hpp (rev 0) +++ trunk/stdair/stdair/bom/BookingClassContent.hpp 2009-10-15 09:21:08 UTC (rev 46) @@ -0,0 +1,50 @@ +#ifndef __STDAIR_BOM_BOOKINGCLASSCONTENT_HPP +#define __STDAIR_BOM_BOOKINGCLASSCONTENT_HPP + +// ////////////////////////////////////////////////////////////////////// +// Import section +// ////////////////////////////////////////////////////////////////////// +// STDAIR +#include <stdair/bom/BomContent.hpp> + +namespace stdair { + + /** Class representing the actual attributes for an airline booking class. */ + class BookingClassContent : public BomContent { + public: + // /////////// Display support methods ///////// + /** Dump a Business Object into an output stream. + @param ostream& the output stream. */ + virtual void toStream (std::ostream& ioOut) const = 0; + + /** Read a Business Object from an input stream. + @param istream& the input stream. */ + virtual void fromStream (std::istream& ioIn) = 0; + + /** Get the serialised version of the Business Object. */ + virtual std::string toString() const = 0; + + /** Get a string describing the whole key (differentiating two objects + at any level). */ + virtual const std::string describeKey() const = 0; + + /** Get a string describing the short key (differentiating two objects + at the same level). */ + virtual const std::string describeShortKey() const = 0; + + + protected: + /** Default constructors. */ + BookingClassContent (); + BookingClassContent (const BookingClassContent&); + + /** Destructor. */ + virtual ~BookingClassContent(); + + protected: + // Attributes + }; + +} +#endif // __STDAIR_BOM_BOOKINGCLASSCONTENT_HPP + Modified: trunk/stdair/stdair/bom/FlightDate.hpp =================================================================== --- trunk/stdair/stdair/bom/FlightDate.hpp 2009-10-14 14:33:39 UTC (rev 45) +++ trunk/stdair/stdair/bom/FlightDate.hpp 2009-10-15 09:21:08 UTC (rev 46) @@ -5,7 +5,7 @@ // Import section // ////////////////////////////////////////////////////////////////////// // STDAIR -#include <stdair/bom/BomContent.hpp> +#include <stdair/bom/FlightDateContent.hpp> #include <stdair/bom/FlightDateTypes.hpp> #include <stdair/bom/SegmentDateTypes.hpp> #include <stdair/bom/LegDateTypes.hpp> @@ -22,7 +22,7 @@ /** Class representing the actual functional/business content for a flight-date. */ - class FlightDate : public BomContent { + class FlightDate : public FlightDateContent { friend class FacBomContent; public: Copied: trunk/stdair/stdair/bom/FlightDateContent.cpp (from rev 45, trunk/stdair/stdair/bom/Inventory.cpp) =================================================================== --- trunk/stdair/stdair/bom/FlightDateContent.cpp (rev 0) +++ trunk/stdair/stdair/bom/FlightDateContent.cpp 2009-10-15 09:21:08 UTC (rev 46) @@ -0,0 +1,20 @@ +// ////////////////////////////////////////////////////////////////////// +// Import section +// ////////////////////////////////////////////////////////////////////// +// STL +#include <cassert> +// STDAIR +#include <stdair/bom/FlightDateContent.hpp> + +namespace stdair { + + // //////////////////////////////////////////////////////////////////// + FlightDateContent::FlightDateContent () { + } + + // //////////////////////////////////////////////////////////////////// + FlightDateContent::~FlightDateContent () { + } + +} + Copied: trunk/stdair/stdair/bom/FlightDateContent.hpp (from rev 45, trunk/stdair/stdair/bom/Inventory.hpp) =================================================================== --- trunk/stdair/stdair/bom/FlightDateContent.hpp (rev 0) +++ trunk/stdair/stdair/bom/FlightDateContent.hpp 2009-10-15 09:21:08 UTC (rev 46) @@ -0,0 +1,50 @@ +#ifndef __STDAIR_BOM_FLIGHTDATECONTENT_HPP +#define __STDAIR_BOM_FLIGHTDATECONTENT_HPP + +// ////////////////////////////////////////////////////////////////////// +// Import section +// ////////////////////////////////////////////////////////////////////// +// STDAIR +#include <stdair/bom/BomContent.hpp> + +namespace stdair { + + /** Class representing the actual attributes for an airline flight-date. */ + class FlightDateContent : public BomContent { + public: + // /////////// Display support methods ///////// + /** Dump a Business Object into an output stream. + @param ostream& the output stream. */ + virtual void toStream (std::ostream& ioOut) const = 0; + + /** Read a Business Object from an input stream. + @param istream& the input stream. */ + virtual void fromStream (std::istream& ioIn) = 0; + + /** Get the serialised version of the Business Object. */ + virtual std::string toString() const = 0; + + /** Get a string describing the whole key (differentiating two objects + at any level). */ + virtual const std::string describeKey() const = 0; + + /** Get a string describing the short key (differentiating two objects + at the same level). */ + virtual const std::string describeShortKey() const = 0; + + + protected: + /** Default constructors. */ + FlightDateContent (); + FlightDateContent (const FlightDateContent&); + + /** Destructor. */ + virtual ~FlightDateContent(); + + protected: + // Attributes + }; + +} +#endif // __STDAIR_BOM_FLIGHTDATECONTENT_HPP + Modified: trunk/stdair/stdair/bom/Inventory.hpp =================================================================== --- trunk/stdair/stdair/bom/Inventory.hpp 2009-10-14 14:33:39 UTC (rev 45) +++ trunk/stdair/stdair/bom/Inventory.hpp 2009-10-15 09:21:08 UTC (rev 46) @@ -5,8 +5,8 @@ // Import section // ////////////////////////////////////////////////////////////////////// // STDAIR -#include <stdair/bom/BomContent.hpp> #include <stdair/bom/BomContentRoot.hpp> +#include <stdair/bom/InventoryContent.hpp> #include <stdair/bom/BomRootTypes.hpp> #include <stdair/bom/InventoryTypes.hpp> #include <stdair/bom/FlightDateTypes.hpp> @@ -21,7 +21,7 @@ /** Class representing the actual functional/business content for an airline inventory. */ - class Inventory : public BomContent { + class Inventory : public InventoryContent { friend class FacBomContent; public: Copied: trunk/stdair/stdair/bom/InventoryContent.cpp (from rev 45, trunk/stdair/stdair/bom/Inventory.cpp) =================================================================== --- trunk/stdair/stdair/bom/InventoryContent.cpp (rev 0) +++ trunk/stdair/stdair/bom/InventoryContent.cpp 2009-10-15 09:21:08 UTC (rev 46) @@ -0,0 +1,20 @@ +// ////////////////////////////////////////////////////////////////////// +// Import section +// ////////////////////////////////////////////////////////////////////// +// STL +#include <cassert> +// STDAIR +#include <stdair/bom/InventoryContent.hpp> + +namespace stdair { + + // //////////////////////////////////////////////////////////////////// + InventoryContent::InventoryContent () { + } + + // //////////////////////////////////////////////////////////////////// + InventoryContent::~InventoryContent () { + } + +} + Copied: trunk/stdair/stdair/bom/InventoryContent.hpp (from rev 45, trunk/stdair/stdair/bom/Inventory.hpp) =================================================================== --- trunk/stdair/stdair/bom/InventoryContent.hpp (rev 0) +++ trunk/stdair/stdair/bom/InventoryContent.hpp 2009-10-15 09:21:08 UTC (rev 46) @@ -0,0 +1,50 @@ +#ifndef __STDAIR_BOM_INVENTORYCONTENT_HPP +#define __STDAIR_BOM_INVENTORYCONTENT_HPP + +// ////////////////////////////////////////////////////////////////////// +// Import section +// ////////////////////////////////////////////////////////////////////// +// STDAIR +#include <stdair/bom/BomContent.hpp> + +namespace stdair { + + /** Class representing the actual attributes for an airline inventory. */ + class InventoryContent : public BomContent { + public: + // /////////// Display support methods ///////// + /** Dump a Business Object into an output stream. + @param ostream& the output stream. */ + virtual void toStream (std::ostream& ioOut) const = 0; + + /** Read a Business Object from an input stream. + @param istream& the input stream. */ + virtual void fromStream (std::istream& ioIn) = 0; + + /** Get the serialised version of the Business Object. */ + virtual std::string toString() const = 0; + + /** Get a string describing the whole key (differentiating two objects + at any level). */ + virtual const std::string describeKey() const = 0; + + /** Get a string describing the short key (differentiating two objects + at the same level). */ + virtual const std::string describeShortKey() const = 0; + + + protected: + /** Default constructors. */ + InventoryContent (); + InventoryContent (const InventoryContent&); + + /** Destructor. */ + virtual ~InventoryContent(); + + protected: + // Attributes + }; + +} +#endif // __STDAIR_BOM_INVENTORYCONTENT_HPP + Modified: trunk/stdair/stdair/bom/LegCabin.hpp =================================================================== --- trunk/stdair/stdair/bom/LegCabin.hpp 2009-10-14 14:33:39 UTC (rev 45) +++ trunk/stdair/stdair/bom/LegCabin.hpp 2009-10-15 09:21:08 UTC (rev 46) @@ -5,7 +5,7 @@ // Import section // ////////////////////////////////////////////////////////////////////// // STDAIR -#include <stdair/bom/BomContent.hpp> +#include <stdair/bom/LegCabinContent.hpp> #include <stdair/bom/LegCabinTypes.hpp> namespace stdair { @@ -15,7 +15,7 @@ /** Class representing the actual functional/business content for a leg-date. */ - class LegCabin : public BomContent { + class LegCabin : public LegCabinContent { friend class FacBomContent; public: Copied: trunk/stdair/stdair/bom/LegCabinContent.cpp (from rev 45, trunk/stdair/stdair/bom/Inventory.cpp) =================================================================== --- trunk/stdair/stdair/bom/LegCabinContent.cpp (rev 0) +++ trunk/stdair/stdair/bom/LegCabinContent.cpp 2009-10-15 09:21:08 UTC (rev 46) @@ -0,0 +1,20 @@ +// ////////////////////////////////////////////////////////////////////// +// Import section +// ////////////////////////////////////////////////////////////////////// +// STL +#include <cassert> +// STDAIR +#include <stdair/bom/LegCabinContent.hpp> + +namespace stdair { + + // //////////////////////////////////////////////////////////////////// + LegCabinContent::LegCabinContent () { + } + + // //////////////////////////////////////////////////////////////////// + LegCabinContent::~LegCabinContent () { + } + +} + Copied: trunk/stdair/stdair/bom/LegCabinContent.hpp (from rev 45, trunk/stdair/stdair/bom/Inventory.hpp) =================================================================== --- trunk/stdair/stdair/bom/LegCabinContent.hpp (rev 0) +++ trunk/stdair/stdair/bom/LegCabinContent.hpp 2009-10-15 09:21:08 UTC (rev 46) @@ -0,0 +1,50 @@ +#ifndef __STDAIR_BOM_LEGCABINCONTENT_HPP +#define __STDAIR_BOM_LEGCABINCONTENT_HPP + +// ////////////////////////////////////////////////////////////////////// +// Import section +// ////////////////////////////////////////////////////////////////////// +// STDAIR +#include <stdair/bom/BomContent.hpp> + +namespace stdair { + + /** Class representing the actual attributes for an airline leg-cabin. */ + class LegCabinContent : public BomContent { + public: + // /////////// Display support methods ///////// + /** Dump a Business Object into an output stream. + @param ostream& the output stream. */ + virtual void toStream (std::ostream& ioOut) const = 0; + + /** Read a Business Object from an input stream. + @param istream& the input stream. */ + virtual void fromStream (std::istream& ioIn) = 0; + + /** Get the serialised version of the Business Object. */ + virtual std::string toString() const = 0; + + /** Get a string describing the whole key (differentiating two objects + at any level). */ + virtual const std::string describeKey() const = 0; + + /** Get a string describing the short key (differentiating two objects + at the same level). */ + virtual const std::string describeShortKey() const = 0; + + + protected: + /** Default constructors. */ + LegCabinContent (); + LegCabinContent (const LegCabinContent&); + + /** Destructor. */ + virtual ~LegCabinContent(); + + protected: + // Attributes + }; + +} +#endif // __STDAIR_BOM_LEGCABINCONTENT_HPP + Modified: trunk/stdair/stdair/bom/LegDate.hpp =================================================================== --- trunk/stdair/stdair/bom/LegDate.hpp 2009-10-14 14:33:39 UTC (rev 45) +++ trunk/stdair/stdair/bom/LegDate.hpp 2009-10-15 09:21:08 UTC (rev 46) @@ -5,7 +5,7 @@ // Import section // ////////////////////////////////////////////////////////////////////// // STDAIR -#include <stdair/bom/BomContent.hpp> +#include <stdair/bom/LegDateContent.hpp> #include <stdair/bom/LegDateTypes.hpp> #include <stdair/bom/LegCabinTypes.hpp> @@ -18,7 +18,7 @@ /** Class representing the actual functional/business content for a leg-date. */ - class LegDate : public BomContent { + class LegDate : public LegDateContent { friend class FacBomContent; public: Copied: trunk/stdair/stdair/bom/LegDateContent.cpp (from rev 45, trunk/stdair/stdair/bom/Inventory.cpp) =================================================================== --- trunk/stdair/stdair/bom/LegDateContent.cpp (rev 0) +++ trunk/stdair/stdair/bom/LegDateContent.cpp 2009-10-15 09:21:08 UTC (rev 46) @@ -0,0 +1,20 @@ +// ////////////////////////////////////////////////////////////////////// +// Import section +// ////////////////////////////////////////////////////////////////////// +// STL +#include <cassert> +// STDAIR +#include <stdair/bom/LegDateContent.hpp> + +namespace stdair { + + // //////////////////////////////////////////////////////////////////// + LegDateContent::LegDateContent () { + } + + // //////////////////////////////////////////////////////////////////// + LegDateContent::~LegDateContent () { + } + +} + Copied: trunk/stdair/stdair/bom/LegDateContent.hpp (from rev 45, trunk/stdair/stdair/bom/Inventory.hpp) =================================================================== --- trunk/stdair/stdair/bom/LegDateContent.hpp (rev 0) +++ trunk/stdair/stdair/bom/LegDateContent.hpp 2009-10-15 09:21:08 UTC (rev 46) @@ -0,0 +1,50 @@ +#ifndef __STDAIR_BOM_LEGDATECONTENT_HPP +#define __STDAIR_BOM_LEGDATECONTENT_HPP + +// ////////////////////////////////////////////////////////////////////// +// Import section +// ////////////////////////////////////////////////////////////////////// +// STDAIR +#include <stdair/bom/BomContent.hpp> + +namespace stdair { + + /** Class representing the actual attributes for an airline leg-date. */ + class LegDateContent : public BomContent { + public: + // /////////// Display support methods ///////// + /** Dump a Business Object into an output stream. + @param ostream& the output stream. */ + virtual void toStream (std::ostream& ioOut) const = 0; + + /** Read a Business Object from an input stream. + @param istream& the input stream. */ + virtual void fromStream (std::istream& ioIn) = 0; + + /** Get the serialised version of the Business Object. */ + virtual std::string toString() const = 0; + + /** Get a string describing the whole key (differentiating two objects + at any level). */ + virtual const std::string describeKey() const = 0; + + /** Get a string describing the short key (differentiating two objects + at the same level). */ + virtual const std::string describeShortKey() const = 0; + + + protected: + /** Default constructors. */ + LegDateContent (); + LegDateContent (const LegDateContent&); + + /** Destructor. */ + virtual ~LegDateContent(); + + protected: + // Attributes + }; + +} +#endif // __STDAIR_BOM_LEGDATECONTENT_HPP + Modified: trunk/stdair/stdair/bom/SegmentCabin.hpp =================================================================== --- trunk/stdair/stdair/bom/SegmentCabin.hpp 2009-10-14 14:33:39 UTC (rev 45) +++ trunk/stdair/stdair/bom/SegmentCabin.hpp 2009-10-15 09:21:08 UTC (rev 46) @@ -5,7 +5,7 @@ // Import section // ////////////////////////////////////////////////////////////////////// // STDAIR -#include <stdair/bom/BomContent.hpp> +#include <stdair/bom/SegmentCabinContent.hpp> #include <stdair/bom/SegmentCabinTypes.hpp> #include <stdair/bom/BookingClassTypes.hpp> @@ -18,7 +18,7 @@ /** Class representing the actual functional/business content for a segment-date. */ - class SegmentCabin : public BomContent { + class SegmentCabin : public SegmentCabinContent { friend class FacBomContent; public: Copied: trunk/stdair/stdair/bom/SegmentCabinContent.cpp (from rev 45, trunk/stdair/stdair/bom/Inventory.cpp) =================================================================== --- trunk/stdair/stdair/bom/SegmentCabinContent.cpp (rev 0) +++ trunk/stdair/stdair/bom/SegmentCabinContent.cpp 2009-10-15 09:21:08 UTC (rev 46) @@ -0,0 +1,20 @@ +// ////////////////////////////////////////////////////////////////////// +// Import section +// ////////////////////////////////////////////////////////////////////// +// STL +#include <cassert> +// STDAIR +#include <stdair/bom/SegmentCabinContent.hpp> + +namespace stdair { + + // //////////////////////////////////////////////////////////////////// + SegmentCabinContent::SegmentCabinContent () { + } + + // //////////////////////////////////////////////////////////////////// + SegmentCabinContent::~SegmentCabinContent () { + } + +} + Copied: trunk/stdair/stdair/bom/SegmentCabinContent.hpp (from rev 45, trunk/stdair/stdair/bom/Inventory.hpp) =================================================================== --- trunk/stdair/stdair/bom/SegmentCabinContent.hpp (rev 0) +++ trunk/stdair/stdair/bom/SegmentCabinContent.hpp 2009-10-15 09:21:08 UTC (rev 46) @@ -0,0 +1,50 @@ +#ifndef __STDAIR_BOM_SEGMENTCABINCONTENT_HPP +#define __STDAIR_BOM_SEGMENTCABINCONTENT_HPP + +// ////////////////////////////////////////////////////////////////////// +// Import section +// ////////////////////////////////////////////////////////////////////// +// STDAIR +#include <stdair/bom/BomContent.hpp> + +namespace stdair { + + /** Class representing the actual attributes for an airline segment-cabin. */ + class SegmentCabinContent : public BomContent { + public: + // /////////// Display support methods ///////// + /** Dump a Business Object into an output stream. + @param ostream& the output stream. */ + virtual void toStream (std::ostream& ioOut) const = 0; + + /** Read a Business Object from an input stream. + @param istream& the input stream. */ + virtual void fromStream (std::istream& ioIn) = 0; + + /** Get the serialised version of the Business Object. */ + virtual std::string toString() const = 0; + + /** Get a string describing the whole key (differentiating two objects + at any level). */ + virtual const std::string describeKey() const = 0; + + /** Get a string describing the short key (differentiating two objects + at the same level). */ + virtual const std::string describeShortKey() const = 0; + + + protected: + /** Default constructors. */ + SegmentCabinContent (); + SegmentCabinContent (const SegmentCabinContent&); + + /** Destructor. */ + virtual ~SegmentCabinContent(); + + protected: + // Attributes + }; + +} +#endif // __STDAIR_BOM_SEGMENTCABINCONTENT_HPP + Modified: trunk/stdair/stdair/bom/SegmentDate.hpp =================================================================== --- trunk/stdair/stdair/bom/SegmentDate.hpp 2009-10-14 14:33:39 UTC (rev 45) +++ trunk/stdair/stdair/bom/SegmentDate.hpp 2009-10-15 09:21:08 UTC (rev 46) @@ -5,7 +5,7 @@ // Import section // ////////////////////////////////////////////////////////////////////// // STDAIR -#include <stdair/bom/BomContent.hpp> +#include <stdair/bom/SegmentDateContent.hpp> #include <stdair/bom/SegmentDateTypes.hpp> #include <stdair/bom/SegmentCabinTypes.hpp> @@ -18,7 +18,7 @@ /** Class representing the actual functional/business content for a segment-date. */ - class SegmentDate : public BomContent { + class SegmentDate : public SegmentDateContent { friend class FacBomContent; public: Copied: trunk/stdair/stdair/bom/SegmentDateContent.cpp (from rev 45, trunk/stdair/stdair/bom/Inventory.cpp) =================================================================== --- trunk/stdair/stdair/bom/SegmentDateContent.cpp (rev 0) +++ trunk/stdair/stdair/bom/SegmentDateContent.cpp 2009-10-15 09:21:08 UTC (rev 46) @@ -0,0 +1,20 @@ +// ////////////////////////////////////////////////////////////////////// +// Import section +// ////////////////////////////////////////////////////////////////////// +// STL +#include <cassert> +// STDAIR +#include <stdair/bom/SegmentDateContent.hpp> + +namespace stdair { + + // //////////////////////////////////////////////////////////////////// + SegmentDateContent::SegmentDateContent () { + } + + // //////////////////////////////////////////////////////////////////// + SegmentDateContent::~SegmentDateContent () { + } + +} + Copied: trunk/stdair/stdair/bom/SegmentDateContent.hpp (from rev 45, trunk/stdair/stdair/bom/Inventory.hpp) =================================================================== --- trunk/stdair/stdair/bom/SegmentDateContent.hpp (rev 0) +++ trunk/stdair/stdair/bom/SegmentDateContent.hpp 2009-10-15 09:21:08 UTC (rev 46) @@ -0,0 +1,50 @@ +#ifndef __STDAIR_BOM_SEGMENTDATECONTENT_HPP +#define __STDAIR_BOM_SEGMENTDATECONTENT_HPP + +// ////////////////////////////////////////////////////////////////////// +// Import section +// ////////////////////////////////////////////////////////////////////// +// STDAIR +#include <stdair/bom/BomContent.hpp> + +namespace stdair { + + /** Class representing the actual attributes for an airline segment-date. */ + class SegmentDateContent : public BomContent { + public: + // /////////// Display support methods ///////// + /** Dump a Business Object into an output stream. + @param ostream& the output stream. */ + virtual void toStream (std::ostream& ioOut) const = 0; + + /** Read a Business Object from an input stream. + @param istream& the input stream. */ + virtual void fromStream (std::istream& ioIn) = 0; + + /** Get the serialised version of the Business Object. */ + virtual std::string toString() const = 0; + + /** Get a string describing the whole key (differentiating two objects + at any level). */ + virtual const std::string describeKey() const = 0; + + /** Get a string describing the short key (differentiating two objects + at the same level). */ + virtual const std::string describeShortKey() const = 0; + + + protected: + /** Default constructors. */ + SegmentDateContent (); + SegmentDateContent (const SegmentDateContent&); + + /** Destructor. */ + virtual ~SegmentDateContent(); + + protected: + // Attributes + }; + +} +#endif // __STDAIR_BOM_SEGMENTDATECONTENT_HPP + Modified: trunk/stdair/stdair/bom/sources.mk =================================================================== --- trunk/stdair/stdair/bom/sources.mk 2009-10-14 14:33:39 UTC (rev 45) +++ trunk/stdair/stdair/bom/sources.mk 2009-10-15 09:21:08 UTC (rev 46) @@ -12,36 +12,43 @@ $(top_srcdir)/stdair/bom/BomStructureRoot.hpp \ $(top_srcdir)/stdair/bom/BomStructureDummy.hpp \ $(top_srcdir)/stdair/bom/Inventory.hpp \ + $(top_srcdir)/stdair/bom/InventoryContent.hpp \ $(top_srcdir)/stdair/bom/InventoryTypes.hpp \ $(top_srcdir)/stdair/bom/InventoryList.hpp \ $(top_srcdir)/stdair/bom/InventoryMap.hpp \ $(top_srcdir)/stdair/bom/InventoryStructure.hpp \ $(top_srcdir)/stdair/bom/FlightDate.hpp \ + $(top_srcdir)/stdair/bom/FlightDateContent.hpp \ $(top_srcdir)/stdair/bom/FlightDateTypes.hpp \ $(top_srcdir)/stdair/bom/FlightDateList.hpp \ $(top_srcdir)/stdair/bom/FlightDateMap.hpp \ $(top_srcdir)/stdair/bom/FlightDateStructure.hpp \ $(top_srcdir)/stdair/bom/SegmentDate.hpp \ + $(top_srcdir)/stdair/bom/SegmentDateContent.hpp \ $(top_srcdir)/stdair/bom/SegmentDateTypes.hpp \ $(top_srcdir)/stdair/bom/SegmentDateList.hpp \ $(top_srcdir)/stdair/bom/SegmentDateMap.hpp \ $(top_srcdir)/stdair/bom/SegmentDateStructure.hpp \ $(top_srcdir)/stdair/bom/LegDate.hpp \ + $(top_srcdir)/stdair/bom/LegDateContent.hpp \ $(top_srcdir)/stdair/bom/LegDateTypes.hpp \ $(top_srcdir)/stdair/bom/LegDateList.hpp \ $(top_srcdir)/stdair/bom/LegDateMap.hpp \ $(top_srcdir)/stdair/bom/LegDateStructure.hpp \ $(top_srcdir)/stdair/bom/SegmentCabin.hpp \ + $(top_srcdir)/stdair/bom/SegmentCabinContent.hpp \ $(top_srcdir)/stdair/bom/SegmentCabinTypes.hpp \ $(top_srcdir)/stdair/bom/SegmentCabinList.hpp \ $(top_srcdir)/stdair/bom/SegmentCabinMap.hpp \ $(top_srcdir)/stdair/bom/SegmentCabinStructure.hpp \ $(top_srcdir)/stdair/bom/LegCabin.hpp \ + $(top_srcdir)/stdair/bom/LegCabinContent.hpp \ $(top_srcdir)/stdair/bom/LegCabinTypes.hpp \ $(top_srcdir)/stdair/bom/LegCabinList.hpp \ $(top_srcdir)/stdair/bom/LegCabinMap.hpp \ $(top_srcdir)/stdair/bom/LegCabinStructure.hpp \ $(top_srcdir)/stdair/bom/BookingClass.hpp \ + $(top_srcdir)/stdair/bom/BookingClassContent.hpp \ $(top_srcdir)/stdair/bom/BookingClassTypes.hpp \ $(top_srcdir)/stdair/bom/BookingClassList.hpp \ $(top_srcdir)/stdair/bom/BookingClassMap.hpp \ @@ -54,24 +61,31 @@ $(top_srcdir)/stdair/bom/BomIterator.hpp bom_cc_sources = \ $(top_srcdir)/stdair/bom/Inventory.cpp \ + $(top_srcdir)/stdair/bom/InventoryContent.cpp \ $(top_srcdir)/stdair/bom/InventoryList.cpp \ $(top_srcdir)/stdair/bom/InventoryMap.cpp \ $(top_srcdir)/stdair/bom/FlightDate.cpp \ + $(top_srcdir)/stdair/bom/FlightDateContent.cpp \ $(top_srcdir)/stdair/bom/FlightDateList.cpp \ $(top_srcdir)/stdair/bom/FlightDateMap.cpp \ $(top_srcdir)/stdair/bom/SegmentDate.cpp \ + $(top_srcdir)/stdair/bom/SegmentDateContent.cpp \ $(top_srcdir)/stdair/bom/SegmentDateList.cpp \ $(top_srcdir)/stdair/bom/SegmentDateMap.cpp \ $(top_srcdir)/stdair/bom/LegDate.cpp \ + $(top_srcdir)/stdair/bom/LegDateContent.cpp \ $(top_srcdir)/stdair/bom/LegDateList.cpp \ $(top_srcdir)/stdair/bom/LegDateMap.cpp \ $(top_srcdir)/stdair/bom/SegmentCabin.cpp \ + $(top_srcdir)/stdair/bom/SegmentCabinContent.cpp \ $(top_srcdir)/stdair/bom/SegmentCabinList.cpp \ $(top_srcdir)/stdair/bom/SegmentCabinMap.cpp \ $(top_srcdir)/stdair/bom/LegCabin.cpp \ + $(top_srcdir)/stdair/bom/LegCabinContent.cpp \ $(top_srcdir)/stdair/bom/LegCabinList.cpp \ $(top_srcdir)/stdair/bom/LegCabinMap.cpp \ $(top_srcdir)/stdair/bom/BookingClass.cpp \ + $(top_srcdir)/stdair/bom/BookingClassContent.cpp \ $(top_srcdir)/stdair/bom/BookingClassList.cpp \ $(top_srcdir)/stdair/bom/BookingClassMap.cpp This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |