<!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>stdair::BomKeyManager Class Reference</title> <link rel="shortcut icon" href="favicon.ico"> <link href="tabs.css" rel="stylesheet" type="text/css"/> <link href="stdair.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-24867310-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://stdair.sourceforge.net"><img height="45px" alt="StdAir Logo" src="stdair_logo.png"></a>  <span id="projectnumber">1.00.1</span> </div> <div id="projectbrief">C++ Standard Airline IT Object Library</div> </td> <!-- begin SOURCEFORGE_CUSTOM--> <td> <div id="sflogo"><a href="http://stdair.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 Page</span></a></li> <li><a href="pages.html"><span>Related 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 List</span></a></li> <li><a href="classes.html"><span>Class Index</span></a></li> <li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li> <li><a href="functions.html"><span>Class 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('a00046.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"> </span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark"> </span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark"> </span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark"> </span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark"> </span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark"> </span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark"> </span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark"> </span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark"> </span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark"> </span>Friends</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(10)"><span class="SelectionMark"> </span>Macros</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(11)"><span class="SelectionMark"> </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-static-methods">Static Public Member Functions</a> | <a href="a00590.html">List of all members</a> </div> <div class="headertitle"> <div class="title">stdair::BomKeyManager Class Reference</div> </div> </div><!--header--> <div class="contents"> <p>Utility class to extract key structures from strings. <a href="a00046.html#details">More...</a></p> <p><code>#include <<a class="el" href="a00306_source.html">stdair/bom/BomKeyManager.hpp</a>></code></p> <table class="memberdecls"> <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a> Static Public Member Functions</h2></td></tr> <tr class="memitem:ab654115fc8ce531433533fab75f9bf2c"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="a00141.html">ParsedKey</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="a00046.html#ab654115fc8ce531433533fab75f9bf2c">extractKeys</a> (const std::string &iFullKeyStr)</td></tr> <tr class="separator:ab654115fc8ce531433533fab75f9bf2c"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a80e5a19855fb0f2dde4e269a493d19b6"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="a00113.html">InventoryKey</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="a00046.html#a80e5a19855fb0f2dde4e269a493d19b6">extractInventoryKey</a> (const std::string &iFullKeyStr)</td></tr> <tr class="separator:a80e5a19855fb0f2dde4e269a493d19b6"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a42eb199e2e4151340b0b9f94c150d049"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="a00104.html">FlightDateKey</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="a00046.html#a42eb199e2e4151340b0b9f94c150d049">extractFlightDateKey</a> (const std::string &iFullKeyStr)</td></tr> <tr class="separator:a42eb199e2e4151340b0b9f94c150d049"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a4b5b9b83bda511d71fdcb9736a3ad22f"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="a00164.html">SegmentDateKey</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="a00046.html#a4b5b9b83bda511d71fdcb9736a3ad22f">extractSegmentDateKey</a> (const std::string &iFullKeyStr)</td></tr> <tr class="separator:a4b5b9b83bda511d71fdcb9736a3ad22f"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:aba35583085656c502d3a2735cf77bc13"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="a00122.html">LegDateKey</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="a00046.html#aba35583085656c502d3a2735cf77bc13">extractLegDateKey</a> (const std::string &iFullKeyStr)</td></tr> <tr class="separator:aba35583085656c502d3a2735cf77bc13"><td class="memSeparator" colspan="2"> </td></tr> </table> <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2> <div class="textblock"><p>Utility class to extract key structures from strings. </p> <p>Definition at line <a class="el" href="a00306_source.html#l00029">29</a> of file <a class="el" href="a00306_source.html">BomKeyManager.hpp</a>.</p> </div><h2 class="groupheader">Member Function Documentation</h2> <a class="anchor" id="ab654115fc8ce531433533fab75f9bf2c"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname"><a class="el" href="a00141.html">ParsedKey</a> stdair::BomKeyManager::extractKeys </td> <td>(</td> <td class="paramtype">const std::string & </td> <td class="paramname"><em>iFullKeyStr</em></td><td>)</td> <td></td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">static</span></span> </td> </tr> </table> </div><div class="memdoc"> <p>Build a <a class="el" href="a00141.html">ParsedKey</a> structure from a full key string which includes an inventory key, flight-date key elements, segment-date key elements. </p> <p>Definition at line <a class="el" href="a00305_source.html#l00031">31</a> of file <a class="el" href="a00305_source.html">BomKeyManager.cpp</a>.</p> <p>References <a class="el" href="a00406_source.html#l00077">stdair::ParsedKey::_airlineCode</a>, <a class="el" href="a00406_source.html#l00080">stdair::ParsedKey::_boardingPoint</a>, <a class="el" href="a00406_source.html#l00082">stdair::ParsedKey::_boardingTime</a>, <a class="el" href="a00406_source.html#l00079">stdair::ParsedKey::_departureDate</a>, <a class="el" href="a00406_source.html#l00078">stdair::ParsedKey::_flightNumber</a>, <a class="el" href="a00406_source.html#l00076">stdair::ParsedKey::_fullKey</a>, <a class="el" href="a00406_source.html#l00081">stdair::ParsedKey::_offPoint</a>, and <a class="el" href="a00535.html#a3752a58317682060c84772c41102e09c">stdair::DEFAULT_KEY_TOKEN_DELIMITER</a>.</p> <p>Referenced by <a class="el" href="a00453_source.html#l00053">stdair::TravelSolutionStruct::describe()</a>, <a class="el" href="a00453_source.html#l00032">stdair::TravelSolutionStruct::describeSegmentPath()</a>, <a class="el" href="a00453_source.html#l00095">stdair::TravelSolutionStruct::display()</a>, <a class="el" href="a00305_source.html#l00087">extractFlightDateKey()</a>, <a class="el" href="a00305_source.html#l00079">extractInventoryKey()</a>, <a class="el" href="a00305_source.html#l00103">extractLegDateKey()</a>, <a class="el" href="a00305_source.html#l00095">extractSegmentDateKey()</a>, and <a class="el" href="a00308_source.html#l00219">stdair::BomRetriever::retrieveSegmentDateFromLongKey()</a>.</p> </div> </div> <a class="anchor" id="a80e5a19855fb0f2dde4e269a493d19b6"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname"><a class="el" href="a00113.html">InventoryKey</a> stdair::BomKeyManager::extractInventoryKey </td> <td>(</td> <td class="paramtype">const std::string & </td> <td class="paramname"><em>iFullKeyStr</em></td><td>)</td> <td></td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">static</span></span> </td> </tr> </table> </div><div class="memdoc"> <p>Build a <a class="el" href="a00113.html" title="Key of a given inventory, made of the airline code.">InventoryKey</a> structure from a (full) key string.</p> <p>The full key string gathers airline code, flight number, origin and destination, cabin and booking class. It corresponds to the output generated by the toString() methods of the XxxKey structures.</p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">const</td><td>std::string& The full key string. </td></tr> </table> </dd> </dl> <dl class="section return"><dt>Returns</dt><dd><a class="el" href="a00113.html" title="Key of a given inventory, made of the airline code.">InventoryKey</a> The just built <a class="el" href="a00113.html" title="Key of a given inventory, made of the airline code.">InventoryKey</a> structure. </dd></dl> <p>Definition at line <a class="el" href="a00305_source.html#l00079">79</a> of file <a class="el" href="a00305_source.html">BomKeyManager.cpp</a>.</p> <p>References <a class="el" href="a00305_source.html#l00031">extractKeys()</a>, and <a class="el" href="a00405_source.html#l00051">stdair::ParsedKey::getInventoryKey()</a>.</p> <p>Referenced by <a class="el" href="a00308_source.html#l00031">stdair::BomRetriever::retrieveInventoryFromLongKey()</a>, and <a class="el" href="a00308_source.html#l00281">stdair::BomRetriever::retrievePartnerSegmentDateFromLongKey()</a>.</p> </div> </div> <a class="anchor" id="a42eb199e2e4151340b0b9f94c150d049"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname"><a class="el" href="a00104.html">FlightDateKey</a> stdair::BomKeyManager::extractFlightDateKey </td> <td>(</td> <td class="paramtype">const std::string & </td> <td class="paramname"><em>iFullKeyStr</em></td><td>)</td> <td></td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">static</span></span> </td> </tr> </table> </div><div class="memdoc"> <p>Build a <a class="el" href="a00104.html" title="Key of a given flight-date, made of a flight number and a departure date.">FlightDateKey</a> structure from a (full) key string.</p> <p>The full key string gathers airline code, flight number, origin and destination, cabin and booking class. It corresponds to the output generated by the toString() methods of the XxxKey structures.</p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">const</td><td>std::string& The full key string. </td></tr> </table> </dd> </dl> <dl class="section return"><dt>Returns</dt><dd><a class="el" href="a00104.html" title="Key of a given flight-date, made of a flight number and a departure date.">FlightDateKey</a> The just built <a class="el" href="a00104.html" title="Key of a given flight-date, made of a flight number and a departure date.">FlightDateKey</a> structure. </dd></dl> <p>Definition at line <a class="el" href="a00305_source.html#l00087">87</a> of file <a class="el" href="a00305_source.html">BomKeyManager.cpp</a>.</p> <p>References <a class="el" href="a00305_source.html#l00031">extractKeys()</a>, and <a class="el" href="a00405_source.html#l00062">stdair::ParsedKey::getFlightDateKey()</a>.</p> <p>Referenced by <a class="el" href="a00399_source.html#l00047">stdair::OnDDateKey::getDate()</a>, and <a class="el" href="a00308_source.html#l00109">stdair::BomRetriever::retrieveFlightDateFromLongKey()</a>.</p> </div> </div> <a class="anchor" id="a4b5b9b83bda511d71fdcb9736a3ad22f"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname"><a class="el" href="a00164.html">SegmentDateKey</a> stdair::BomKeyManager::extractSegmentDateKey </td> <td>(</td> <td class="paramtype">const std::string & </td> <td class="paramname"><em>iFullKeyStr</em></td><td>)</td> <td></td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">static</span></span> </td> </tr> </table> </div><div class="memdoc"> <p>Build a <a class="el" href="a00164.html" title="Key of a given segment-date, made of an origin and a destination airports.">SegmentDateKey</a> structure from a (full) key string.</p> <p>The full key string gathers airline code, flight number, origin and destination, cabin and booking class. It corresponds to the output generated by the toString() methods of the XxxKey structures.</p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">const</td><td>std::string& The full key string. </td></tr> </table> </dd> </dl> <dl class="section return"><dt>Returns</dt><dd><a class="el" href="a00164.html" title="Key of a given segment-date, made of an origin and a destination airports.">SegmentDateKey</a> The just built <a class="el" href="a00164.html" title="Key of a given segment-date, made of an origin and a destination airports.">SegmentDateKey</a> structure. </dd></dl> <p>Definition at line <a class="el" href="a00305_source.html#l00095">95</a> of file <a class="el" href="a00305_source.html">BomKeyManager.cpp</a>.</p> <p>References <a class="el" href="a00305_source.html#l00031">extractKeys()</a>, and <a class="el" href="a00405_source.html#l00098">stdair::ParsedKey::getSegmentKey()</a>.</p> <p>Referenced by <a class="el" href="a00399_source.html#l00061">stdair::OnDDateKey::getDestination()</a>, <a class="el" href="a00399_source.html#l00054">stdair::OnDDateKey::getOrigin()</a>, and <a class="el" href="a00308_source.html#l00196">stdair::BomRetriever::retrieveSegmentDateFromLongKey()</a>.</p> </div> </div> <a class="anchor" id="aba35583085656c502d3a2735cf77bc13"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname"><a class="el" href="a00122.html">LegDateKey</a> stdair::BomKeyManager::extractLegDateKey </td> <td>(</td> <td class="paramtype">const std::string & </td> <td class="paramname"><em>iFullKeyStr</em></td><td>)</td> <td></td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">static</span></span> </td> </tr> </table> </div><div class="memdoc"> <p>Build a <a class="el" href="a00122.html">LegDateKey</a> structure from a (full) key string.</p> <p>The full key string gathers airline code, flight number, origin and destination, cabin and booking class. It corresponds to the output generated by the toString() methods of the XxxKey structures.</p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">const</td><td>std::string& The full key string. </td></tr> </table> </dd> </dl> <dl class="section return"><dt>Returns</dt><dd><a class="el" href="a00122.html">LegDateKey</a> The just built <a class="el" href="a00122.html">LegDateKey</a> structure. </dd></dl> <p>Definition at line <a class="el" href="a00305_source.html#l00103">103</a> of file <a class="el" href="a00305_source.html">BomKeyManager.cpp</a>.</p> <p>References <a class="el" href="a00305_source.html#l00031">extractKeys()</a>, and <a class="el" href="a00405_source.html#l00084">stdair::ParsedKey::getLegKey()</a>.</p> <p>Referenced by <a class="el" href="a00308_source.html#l00266">stdair::BomRetriever::retrieveOperatingLegDateFromLongKey()</a>.</p> </div> </div> <hr/>The documentation for this class was generated from the following files:<ul> <li>stdair/bom/<a class="el" href="a00306_source.html">BomKeyManager.hpp</a></li> <li>stdair/bom/<a class="el" href="a00305_source.html">BomKeyManager.cpp</a></li> </ul> </div><!-- contents --> </div><!-- doc-content --> <li class="footer">Generated on Wed May 22 2013 10:52:01 for StdAir 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/stdair"><img class="footer" src="http://sflogo.sourceforge.net/sflogo.php?group_id=267760&type=12&format=.png" alt="SourceForge Logo"></a> </li> </ul> </div> </body> </html>