From: <qua...@us...> - 2010-02-12 14:04:46
|
Revision: 66 http://dsim.svn.sourceforge.net/dsim/?rev=66&view=rev Author: quannaus Date: 2010-02-12 14:04:38 +0000 (Fri, 12 Feb 2010) Log Message: ----------- [dev] Removed the hardcoded creation of AirlineFeatureSet and AirlineFeature objects. Modified Paths: -------------- trunk/dsim/dsim/service/DSIM_Service.cpp Modified: trunk/dsim/dsim/service/DSIM_Service.cpp =================================================================== --- trunk/dsim/dsim/service/DSIM_Service.cpp 2010-02-12 13:57:44 UTC (rev 65) +++ trunk/dsim/dsim/service/DSIM_Service.cpp 2010-02-12 14:04:38 UTC (rev 66) @@ -111,26 +111,7 @@ // Retrieve the root of the BOM tree, on which all of the other BOM objects // will be attached assert (lSTDAIR_Service_ptr != NULL); - stdair::BomRoot& lBomRoot = lSTDAIR_Service_ptr->getBomRoot(); - // TODO: do not hardcode the initialisation of AirlineFeatureSet - // Initialise the set of required airline features - stdair::AirlineFeatureSet& lAirlineFeatureSet = - stdair::FacBomContent::instance().create<stdair::AirlineFeatureSet>(); - - // Airline code - stdair::AirlineCode_T lAirlineCode ("BA"); - // Initialise an AirlineFeature object - stdair::AirlineFeatureKey_T lAirlineFeatureKey (lAirlineCode); - stdair::AirlineFeature& lAirlineFeature = stdair::FacBomContent:: - instance().create<stdair::AirlineFeature> (lAirlineFeatureKey); - stdair::FacBomContent:: - linkWithParent<stdair::AirlineFeature> (lAirlineFeature, - lAirlineFeatureSet); - - // Set the AirlineFeatureSet for the BomRoot. - lBomRoot.setAirlineFeatureSet (&lAirlineFeatureSet); - // Store the STDAIR service object within the (TRADEMGEN) service context lDSIM_ServiceContext.setSTDAIR_Service (lSTDAIR_Service_ptr); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |