From: <den...@us...> - 2010-07-28 13:09:46
|
Revision: 248 http://stdair.svn.sourceforge.net/stdair/?rev=248&view=rev Author: denis_arnaud Date: 2010-07-28 13:09:40 +0000 (Wed, 28 Jul 2010) Log Message: ----------- [Test] Added a prototype of wished usage. Added Paths: ----------- trunk/stdair/test/architecture/LH.cpp Added: trunk/stdair/test/architecture/LH.cpp =================================================================== --- trunk/stdair/test/architecture/LH.cpp (rev 0) +++ trunk/stdair/test/architecture/LH.cpp 2010-07-28 13:09:40 UTC (rev 248) @@ -0,0 +1,33 @@ + +// StdAir +#include <stdair/bom/BomRoot.hpp> +#include <stdair/bom/Inventory.hpp> +#include <stdair/bom/FlightDate.hpp> + +namespace LH { + + /** + * \brief LH own implementation of the BomRoot class + */ + class BomRootImpl : public stdair::BomRootContent { + }; + + /** + * \brief LH own implementation of the FlightDate class + */ + class FlightDateImpl : public stdair::FlightDateContent { + }; + + /** + * \brief Initialisation of objects + */ + void init() { + stdair::BomRoot<BomRootImpl> lhBomRoot; + stdair::Inventory<stdair::InventoryImpl> lhInventory; + stdair::link(lhBomRoot, lhInventory); + + stdair::FlightDate<lh::FlightDateImpl> lhFlightDate; + stdair::link (lhInventory, lhFlightDate); + } + +} This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |