Sophie

Sophie

distrib > Fedora > 18 > i386 > by-pkgid > 10941174a3f0743ac497348990268016 > files > 82

travelccm-doc-1.00.1-2.fc18.noarch.rpm

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
		  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
	<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
	<meta name="robots" content="index,follow"/>
	<title>TRAVELCCM::TRAVELCCM_Service Class Reference</title>
	<link rel="shortcut icon" href="favicon.ico">
	<link href="tabs.css" rel="stylesheet" type="text/css"/>
	<link href="travelccm.css" rel="stylesheet" type="text/css"/>
	<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
  $(window).load(resizeHeight);
</script>
	<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
	<script type="text/javascript">
	  var _gaq = _gaq || [];
	  _gaq.push(['_setAccount', 'UA-25250378-1']);
	  _gaq.push(['_setDomainName', 'none']);
	  _gaq.push(['_setAllowLinker', true]);
	  _gaq.push(['_trackPageview']);
	  (function() {
      var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
      ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
      var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
	  })();
	</script>
	<script type="text/javascript"
			src="https://apis.google.com/js/plusone.js"></script>
  </head>
  <body>
	<div id="top"><!-- do not remove this div! -->
	  <div id="titlearea">
		<table width="100%">
		  <tbody>
			<tr style="height: 56px;">
			  <td style="padding-left: 0.5em;">
				<div id="projectname"><a href="http://travel-ccm.sourceforge.net"><img height="45px" alt="TravelCCM Logo" src="travelccm_logo.png"></a>
				  &#160;<span id="projectnumber">1.00.1</span>
				</div>
				<div id="projectbrief">C++ Travel Customer Choice Model Library</div>
			  </td>
			  <!-- begin SOURCEFORGE_CUSTOM-->
			  <td>
				<div id="sflogo"><a href="http://travel-ccm.sourceforge.net"><img height="45px" alt="SourceForge Logo" src="sfx_logo.png"></a></div>
			  </td>
			  <!-- end SOURCEFORGE_CUSTOM-->
			</tr>
		  </tbody>
		</table>
	  </div>
<!-- Generated by Doxygen 1.8.3.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('classTRAVELCCM_1_1TRAVELCCM__Service.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Friends</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Macros</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark">&#160;</span>Pages</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="classTRAVELCCM_1_1TRAVELCCM__Service-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">TRAVELCCM::TRAVELCCM_Service Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p><code>#include &lt;<a class="el" href="TRAVELCCM__Service_8hpp_source.html">travelccm/TRAVELCCM_Service.hpp</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a88567852c72b8fa0ec1663e02673c032"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTRAVELCCM_1_1TRAVELCCM__Service.html#a88567852c72b8fa0ec1663e02673c032">TRAVELCCM_Service</a> (const stdair::BasLogParams &amp;, const stdair::BasDBParams &amp;)</td></tr>
<tr class="separator:a88567852c72b8fa0ec1663e02673c032"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab079de116e6bad94c3c812c86655ffb6"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTRAVELCCM_1_1TRAVELCCM__Service.html#ab079de116e6bad94c3c812c86655ffb6">TRAVELCCM_Service</a> (const stdair::BasLogParams &amp;)</td></tr>
<tr class="separator:ab079de116e6bad94c3c812c86655ffb6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7f1f8b536a800ffbe273a1c2f07b9703"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTRAVELCCM_1_1TRAVELCCM__Service.html#a7f1f8b536a800ffbe273a1c2f07b9703">TRAVELCCM_Service</a> (stdair::STDAIR_ServicePtr_T)</td></tr>
<tr class="separator:a7f1f8b536a800ffbe273a1c2f07b9703"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abeb5783e40e6ae707535d6a5757d966e"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTRAVELCCM_1_1TRAVELCCM__Service.html#abeb5783e40e6ae707535d6a5757d966e">~TRAVELCCM_Service</a> ()</td></tr>
<tr class="separator:abeb5783e40e6ae707535d6a5757d966e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0d4c45ca683206edcef7a5319eca1c3e"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTRAVELCCM_1_1TRAVELCCM__Service.html#a0d4c45ca683206edcef7a5319eca1c3e">buildSampleBom</a> ()</td></tr>
<tr class="separator:a0d4c45ca683206edcef7a5319eca1c3e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5e788fc7a18cd1ead3073b65d9a498f7"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTRAVELCCM_1_1TRAVELCCM__Service.html#a5e788fc7a18cd1ead3073b65d9a498f7">clonePersistentBom</a> ()</td></tr>
<tr class="separator:a5e788fc7a18cd1ead3073b65d9a498f7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0d2124af468bb92a4078f412c1c8a3c3"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTRAVELCCM_1_1TRAVELCCM__Service.html#a0d2124af468bb92a4078f412c1c8a3c3">buildComplementaryLinks</a> (stdair::BomRoot &amp;)</td></tr>
<tr class="separator:a0d2124af468bb92a4078f412c1c8a3c3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6a3ace25eff2437f44ee3f371b175abc"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTRAVELCCM_1_1TRAVELCCM__Service.html#a6a3ace25eff2437f44ee3f371b175abc">buildSampleTravelSolutions</a> (stdair::TravelSolutionList_T &amp;)</td></tr>
<tr class="separator:a6a3ace25eff2437f44ee3f371b175abc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a66e7f036caff75aad976294ad7c43a8d"><td class="memItemLeft" align="right" valign="top">stdair::BookingRequestStruct&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTRAVELCCM_1_1TRAVELCCM__Service.html#a66e7f036caff75aad976294ad7c43a8d">buildSampleBookingRequest</a> (const bool isForCRS=false)</td></tr>
<tr class="separator:a66e7f036caff75aad976294ad7c43a8d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a99ec5890e8cb5a55d75b5ede9c7a945a"><td class="memItemLeft" align="right" valign="top">const <br class="typebreak"/>
stdair::TravelSolutionStruct *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTRAVELCCM_1_1TRAVELCCM__Service.html#a99ec5890e8cb5a55d75b5ede9c7a945a">chooseTravelSolution</a> (stdair::TravelSolutionList_T &amp;, const stdair::BookingRequestStruct &amp;, const stdair::PassengerChoiceModel::EN_PassengerChoiceModel &amp;iPassengerChoiceModel=stdair::PassengerChoiceModel::PRICE_ORIENTED)</td></tr>
<tr class="separator:a99ec5890e8cb5a55d75b5ede9c7a945a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5fb8dfa6fb93311cd0e742d131ef7465"><td class="memItemLeft" align="right" valign="top">std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTRAVELCCM_1_1TRAVELCCM__Service.html#a5fb8dfa6fb93311cd0e742d131ef7465">csvDisplay</a> () const </td></tr>
<tr class="separator:a5fb8dfa6fb93311cd0e742d131ef7465"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abf48c35ea91ce453213e4efd83285648"><td class="memItemLeft" align="right" valign="top">std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTRAVELCCM_1_1TRAVELCCM__Service.html#abf48c35ea91ce453213e4efd83285648">csvDisplay</a> (const stdair::TravelSolutionList_T &amp;) const </td></tr>
<tr class="separator:abf48c35ea91ce453213e4efd83285648"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Interface for the <a class="el" href="namespaceTRAVELCCM.html">TRAVELCCM</a> Services. </p>

<p>Definition at line <a class="el" href="TRAVELCCM__Service_8hpp_source.html#l00033">33</a> of file <a class="el" href="TRAVELCCM__Service_8hpp_source.html">TRAVELCCM_Service.hpp</a>.</p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a88567852c72b8fa0ec1663e02673c032"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">TRAVELCCM::TRAVELCCM_Service::TRAVELCCM_Service </td>
          <td>(</td>
          <td class="paramtype">const stdair::BasLogParams &amp;&#160;</td>
          <td class="paramname"><em>iLogParams</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const stdair::BasDBParams &amp;&#160;</td>
          <td class="paramname"><em>iDBParams</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Constructor.</p>
<p>The init() method is called; see the corresponding documentation for more details.</p>
<p>A reference on an output stream is given, so that log outputs can be directed onto that stream.</p>
<p>Moreover, database connection parameters are given, so that a session can be created on the corresponding database.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">const</td><td>stdair::BasLogParams&amp; Parameters for the output log stream. </td></tr>
    <tr><td class="paramname">const</td><td>stdair::BasDBParams&amp; Parameters for the database access. </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="TRAVELCCM__Service_8cpp_source.html#l00036">36</a> of file <a class="el" href="TRAVELCCM__Service_8cpp_source.html">TRAVELCCM_Service.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="ab079de116e6bad94c3c812c86655ffb6"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">TRAVELCCM::TRAVELCCM_Service::TRAVELCCM_Service </td>
          <td>(</td>
          <td class="paramtype">const stdair::BasLogParams &amp;&#160;</td>
          <td class="paramname"><em>iLogParams</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Constructor.</p>
<p>The init() method is called; see the corresponding documentation for more details.</p>
<p>A reference on an output stream is given, so that log outputs can be directed onto that stream.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">const</td><td>stdair::BasLogParams&amp; Parameters for the output log stream. </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="TRAVELCCM__Service_8cpp_source.html#l00057">57</a> of file <a class="el" href="TRAVELCCM__Service_8cpp_source.html">TRAVELCCM_Service.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a7f1f8b536a800ffbe273a1c2f07b9703"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">TRAVELCCM::TRAVELCCM_Service::TRAVELCCM_Service </td>
          <td>(</td>
          <td class="paramtype">stdair::STDAIR_ServicePtr_T&#160;</td>
          <td class="paramname"><em>ioSTDAIR_Service_ptr</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Constructor.</p>
<p>The init() method is called; see the corresponding documentation for more details.</p>
<p>Moreover, as no reference on any output stream is given, it is assumed that the StdAir log service has already been initialised with the proper log output stream by some other methods in the calling chain (for instance, when the <a class="el" href="classTRAVELCCM_1_1TRAVELCCM__Service.html">TRAVELCCM_Service</a> is itself being initialised by another library service such as TVLSIM_Service).</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">stdair::STDAIR_ServicePtr_T</td><td>Reference on the STDAIR service. </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="TRAVELCCM__Service_8cpp_source.html#l00078">78</a> of file <a class="el" href="TRAVELCCM__Service_8cpp_source.html">TRAVELCCM_Service.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="abeb5783e40e6ae707535d6a5757d966e"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">TRAVELCCM::TRAVELCCM_Service::~TRAVELCCM_Service </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Destructor. </p>

<p>Definition at line <a class="el" href="TRAVELCCM__Service_8cpp_source.html#l00094">94</a> of file <a class="el" href="TRAVELCCM__Service_8cpp_source.html">TRAVELCCM_Service.cpp</a>.</p>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a class="anchor" id="a0d4c45ca683206edcef7a5319eca1c3e"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void TRAVELCCM::TRAVELCCM_Service::buildSampleBom </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Build a sample BOM tree, and attach it to the BomRoot instance. </p>

<p>Definition at line <a class="el" href="TRAVELCCM__Service_8cpp_source.html#l00170">170</a> of file <a class="el" href="TRAVELCCM__Service_8cpp_source.html">TRAVELCCM_Service.cpp</a>.</p>

<p>References <a class="el" href="TRAVELCCM__Service_8cpp_source.html#l00273">buildComplementaryLinks()</a>, and <a class="el" href="TRAVELCCM__Service_8cpp_source.html#l00228">clonePersistentBom()</a>.</p>

</div>
</div>
<a class="anchor" id="a5e788fc7a18cd1ead3073b65d9a498f7"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void TRAVELCCM::TRAVELCCM_Service::clonePersistentBom </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Clone the persistent BOM object. </p>

<p>Definition at line <a class="el" href="TRAVELCCM__Service_8cpp_source.html#l00228">228</a> of file <a class="el" href="TRAVELCCM__Service_8cpp_source.html">TRAVELCCM_Service.cpp</a>.</p>

<p>References <a class="el" href="TRAVELCCM__Service_8cpp_source.html#l00273">buildComplementaryLinks()</a>.</p>

<p>Referenced by <a class="el" href="TRAVELCCM__Service_8cpp_source.html#l00170">buildSampleBom()</a>.</p>

</div>
</div>
<a class="anchor" id="a0d2124af468bb92a4078f412c1c8a3c3"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void TRAVELCCM::TRAVELCCM_Service::buildComplementaryLinks </td>
          <td>(</td>
          <td class="paramtype">stdair::BomRoot &amp;&#160;</td>
          <td class="paramname"><em>ioBomRoot</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Build all the complementary links in the given bom root object. </p>
<dl class="section note"><dt>Note</dt><dd>Do nothing for now. </dd></dl>

<p>Definition at line <a class="el" href="TRAVELCCM__Service_8cpp_source.html#l00273">273</a> of file <a class="el" href="TRAVELCCM__Service_8cpp_source.html">TRAVELCCM_Service.cpp</a>.</p>

<p>Referenced by <a class="el" href="TRAVELCCM__Service_8cpp_source.html#l00170">buildSampleBom()</a>, and <a class="el" href="TRAVELCCM__Service_8cpp_source.html#l00228">clonePersistentBom()</a>.</p>

</div>
</div>
<a class="anchor" id="a6a3ace25eff2437f44ee3f371b175abc"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void TRAVELCCM::TRAVELCCM_Service::buildSampleTravelSolutions </td>
          <td>(</td>
          <td class="paramtype">stdair::TravelSolutionList_T &amp;&#160;</td>
          <td class="paramname"><em>ioTSList</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Build a sample list of travel solutions.</p>
<p>As of now (March 2011), that list is made of the following travel solutions: </p>
<ul>
<li>
BA9 </li>
<li>
LHR-SYD </li>
<li>
2011-06-10 </li>
<li>
Q </li>
<li>
WTP: 900 </li>
<li>
Change fee: 20; Non refundable; Saturday night stay </li>
</ul>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">stdair::TravelSolutionList_T&amp;</td><td>Sample list of travel solution structures. It should be given empty. It is altered with the returned sample. </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="TRAVELCCM__Service_8cpp_source.html#l00279">279</a> of file <a class="el" href="TRAVELCCM__Service_8cpp_source.html">TRAVELCCM_Service.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a66e7f036caff75aad976294ad7c43a8d"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">stdair::BookingRequestStruct TRAVELCCM::TRAVELCCM_Service::buildSampleBookingRequest </td>
          <td>(</td>
          <td class="paramtype">const bool&#160;</td>
          <td class="paramname"><em>isForCRS</em> = <code>false</code></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Build a sample booking request structure.</p>
<p>As of now (March 2011), the sample booking request is made of the following parameters: </p>
<ul>
<li>
Return trip (inbound): LHR-SYD (POS: LHR, Channel: DN),  </li>
<li>
Departing 10-JUN-2011 around 8:00, staying 7 days </li>
<li>
Requested on 15-MAY-2011 at 10:00 </li>
<li>
Economy cabin, 3 persons, FF member </li>
<li>
WTP: 1000.0 EUR </li>
<li>
Dis-utility: 100.0 EUR/hour </li>
</ul>
<p>As of now (March 2011), the CRS-related booking request is made of the following parameters: </p>
<ul>
<li>
Return trip (inbound): SIN-BKK (POS: SIN, Channel: IN),  </li>
<li>
Departing 30-JAN-2010 around 10:00, staying 7 days </li>
<li>
Requested on 22-JAN-2010 at 10:00 </li>
<li>
Economy cabin, 3 persons, FF member </li>
<li>
WTP: 1000.0 EUR </li>
<li>
Dis-utility: 100.0 EUR/hour </li>
</ul>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">const</td><td>bool isForCRS Whether the sample booking request is for CRS. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>BookingRequestStruct&amp; Sample booking request structure. </dd></dl>

<p>Definition at line <a class="el" href="TRAVELCCM__Service_8cpp_source.html#l00301">301</a> of file <a class="el" href="TRAVELCCM__Service_8cpp_source.html">TRAVELCCM_Service.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a99ec5890e8cb5a55d75b5ede9c7a945a"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const stdair::TravelSolutionStruct * TRAVELCCM::TRAVELCCM_Service::chooseTravelSolution </td>
          <td>(</td>
          <td class="paramtype">stdair::TravelSolutionList_T &amp;&#160;</td>
          <td class="paramname"><em>ioTravelSolutionList</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const stdair::BookingRequestStruct &amp;&#160;</td>
          <td class="paramname"><em>iBookingRequest</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const stdair::PassengerChoiceModel::EN_PassengerChoiceModel &amp;&#160;</td>
          <td class="paramname"><em>iPassengerChoiceModel</em> = <code>stdair::PassengerChoiceModel::PRICE_ORIENTED</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Choose the travel solution and the fare option within the given list of travel solutions.</p>
<p>The returned pointer will be NULL if no travel solution is chosen (e.g., when the Willingness-To-Pay is too low).</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">stdair::TravelSolutionList_T&amp;</td><td>The list of travel solution to choose among. </td></tr>
    <tr><td class="paramname">const</td><td>stdair::BookingRequestStruct&amp; The booking request and its context. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>stdair::TravelSolutionStruct* The chosen travel solution. NULL when not found. </dd></dl>

<p>Definition at line <a class="el" href="TRAVELCCM__Service_8cpp_source.html#l00366">366</a> of file <a class="el" href="TRAVELCCM__Service_8cpp_source.html">TRAVELCCM_Service.cpp</a>.</p>

<p>References <a class="el" href="ChoiceManager_8cpp_source.html#l00019">TRAVELCCM::ChoiceManager::chooseTravelSolution()</a>.</p>

</div>
</div>
<a class="anchor" id="a5fb8dfa6fb93311cd0e742d131ef7465"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">std::string TRAVELCCM::TRAVELCCM_Service::csvDisplay </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Recursively display (dump in the returned string) the objects of the BOM tree.</p>
<dl class="section return"><dt>Returns</dt><dd>std::string Output string in which the BOM tree is logged/dumped. </dd></dl>

<p>Definition at line <a class="el" href="TRAVELCCM__Service_8cpp_source.html#l00322">322</a> of file <a class="el" href="TRAVELCCM__Service_8cpp_source.html">TRAVELCCM_Service.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="abf48c35ea91ce453213e4efd83285648"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">std::string TRAVELCCM::TRAVELCCM_Service::csvDisplay </td>
          <td>(</td>
          <td class="paramtype">const stdair::TravelSolutionList_T &amp;&#160;</td>
          <td class="paramname"><em>iTravelSolutionList</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Display (dump in the returned string) the full list of travel solution structures.</p>
<dl class="section return"><dt>Returns</dt><dd>std::string Output string in which the list of travel solutions is logged/dumped. </dd></dl>

<p>Definition at line <a class="el" href="TRAVELCCM__Service_8cpp_source.html#l00345">345</a> of file <a class="el" href="TRAVELCCM__Service_8cpp_source.html">TRAVELCCM_Service.cpp</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li>travelccm/<a class="el" href="TRAVELCCM__Service_8hpp_source.html">TRAVELCCM_Service.hpp</a></li>
<li>travelccm/service/<a class="el" href="TRAVELCCM__Service_8cpp_source.html">TRAVELCCM_Service.cpp</a></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
		
		<li class="footer">Generated on Wed May 22 2013 21:19:40 for TravelCCM by
		  <a href="http://www.doxygen.org/index.html">
			<img class="footer" src="doxygen.png" alt="doxygen"/></a> 
		  1.8.3.1
		</li>
		<li class="footer">
		  <a href="http://sourceforge.net/projects/travel-ccm"><img class="footer" src="http://sflogo.sourceforge.net/sflogo.php?group_id=261639&type=12&format=.png" alt="SourceForge Logo"></a>
		</li>
	  </ul>
	</div>
  </body>
</html>