Sophie

Sophie

distrib > Fedora > 13 > i386 > by-pkgid > eebc325dc36bd6e3b09b9b45133e42f8 > files > 2108

HippoDraw-devel-docs-1.21.1-10.fc13.i686.rpm

<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>HippoDraw Class Library</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
<link rel="shortcut icon" href="hippoApp.ico">
</head><body>
<!-- Generated by Doxygen 1.6.2 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
      <li><a href="pages.html"><span>Related&nbsp;Pages</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li><a href="dirs.html"><span>Directories</span></a></li>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="files.html"><span>File&nbsp;List</span></a></li>
      <li><a href="globals.html"><span>File&nbsp;Members</span></a></li>
    </ul>
  </div>
  <div class="navpath"><a class="el" href="dir_6dcc65b7c74f97460af44109581e51d3.html">reps</a>
  </div>
</div>
<div class="contents">
<h1>TextRepFactory.cxx</h1><a href="TextRepFactory_8cxx.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 
<a name="l00012"></a>00012 <span class="preprocessor">#ifdef _MSC_VER</span>
<a name="l00013"></a>00013 <span class="preprocessor"></span><span class="comment">// A long identifier warning.</span>
<a name="l00014"></a>00014 <span class="preprocessor">#include &quot;msdevstudio/MSconfig.h&quot;</span>
<a name="l00015"></a>00015 <span class="preprocessor">#endif</span>
<a name="l00016"></a>00016 <span class="preprocessor"></span>
<a name="l00017"></a>00017 <span class="preprocessor">#include &quot;<a class="code" href="TextRepFactory_8h.html" title="hippodraw::TextRepFactory class interface">reps/TextRepFactory.h</a>&quot;</span>
<a name="l00018"></a>00018 
<a name="l00019"></a>00019 <span class="comment">// A list of default TextReps.</span>
<a name="l00020"></a>00020 <span class="preprocessor">#include &quot;<a class="code" href="TotalTextRep_8h.html" title="TotalTextRep class interface.">reps/TotalTextRep.h</a>&quot;</span>
<a name="l00021"></a>00021 <span class="preprocessor">#include &quot;<a class="code" href="FuncChiRep_8h.html" title="FuncChiRep class interface.">reps/FuncChiRep.h</a>&quot;</span>
<a name="l00022"></a>00022 <span class="preprocessor">#include &quot;<a class="code" href="FuncParmRep_8h.html" title="FuncParmRep class interface.">reps/FuncParmRep.h</a>&quot;</span>
<a name="l00023"></a>00023 <span class="preprocessor">#include &quot;<a class="code" href="AverageTextRep_8h.html" title="hippodraw::AverageTextRep class interface">reps/AverageTextRep.h</a>&quot;</span>
<a name="l00024"></a>00024 <span class="preprocessor">#include &quot;<a class="code" href="BoxTextRep_8h.html" title="hippodraw::BoxTextRep class interface">reps/BoxTextRep.h</a>&quot;</span>
<a name="l00025"></a>00025 <span class="preprocessor">#include &quot;<a class="code" href="UnderflowTextRep_8h.html" title="UnderflowTextRep class interface.">reps/UnderflowTextRep.h</a>&quot;</span>
<a name="l00026"></a>00026 <span class="preprocessor">#include &quot;<a class="code" href="OverflowTextRep_8h.html" title="OverflowTextRep class interface.">reps/OverflowTextRep.h</a>&quot;</span>
<a name="l00027"></a>00027 
<a name="l00028"></a>00028 <span class="keyword">namespace </span>hippodraw {
<a name="l00029"></a>00029 
<a name="l00030"></a>00030 TextRepFactory * <a class="code" href="classhippodraw_1_1TextRepFactory.html#adecef9f8c985a62c48d5671f0853ca07" title="A pointer to the singleton object.">TextRepFactory::s_instance</a> = 0;
<a name="l00031"></a>00031 
<a name="l00032"></a><a class="code" href="classhippodraw_1_1TextRepFactory.html#ab67f51ad5f853b3a3065f96935beba05">00032</a> <a class="code" href="classhippodraw_1_1TextRepFactory.html#ab67f51ad5f853b3a3065f96935beba05" title="A default constructor for avoiding creation except by itself or derived classes.">TextRepFactory::TextRepFactory</a> ()
<a name="l00033"></a>00033 {
<a name="l00034"></a>00034 }
<a name="l00035"></a>00035 
<a name="l00036"></a><a class="code" href="classhippodraw_1_1TextRepFactory.html#a661b2cf5b09724b6c4c36ad4f47019b2">00036</a> <a class="code" href="classhippodraw_1_1TextRepFactory.html" title="A factory for textual representations.">TextRepFactory</a> * <a class="code" href="classhippodraw_1_1TextRepFactory.html#a661b2cf5b09724b6c4c36ad4f47019b2" title="Returns a pointer to the singleton instance.">TextRepFactory::instance</a> ()
<a name="l00037"></a>00037 {
<a name="l00038"></a>00038   <span class="keywordflow">if</span> ( <a class="code" href="classhippodraw_1_1TextRepFactory.html#adecef9f8c985a62c48d5671f0853ca07" title="A pointer to the singleton object.">s_instance</a> == 0 ) {
<a name="l00039"></a>00039     <a class="code" href="classhippodraw_1_1TextRepFactory.html#adecef9f8c985a62c48d5671f0853ca07" title="A pointer to the singleton object.">s_instance</a> = <span class="keyword">new</span> <a class="code" href="classhippodraw_1_1TextRepFactory.html#ab67f51ad5f853b3a3065f96935beba05" title="A default constructor for avoiding creation except by itself or derived classes.">TextRepFactory</a> ();
<a name="l00040"></a>00040     <a class="code" href="classhippodraw_1_1TextRepFactory.html#adecef9f8c985a62c48d5671f0853ca07" title="A pointer to the singleton object.">s_instance</a>-&gt;<a class="code" href="classhippodraw_1_1TextRepFactory.html#a25a40b6614565f755233080a384c35f1" title="Initializes the factory with a set of default TextReps.">initialize</a> ();
<a name="l00041"></a>00041   }
<a name="l00042"></a>00042 
<a name="l00043"></a>00043   <span class="keywordflow">return</span> <a class="code" href="classhippodraw_1_1TextRepFactory.html#adecef9f8c985a62c48d5671f0853ca07" title="A pointer to the singleton object.">s_instance</a>;
<a name="l00044"></a>00044 }
<a name="l00045"></a>00045 
<a name="l00046"></a><a class="code" href="classhippodraw_1_1TextRepFactory.html#a25a40b6614565f755233080a384c35f1">00046</a> <span class="keywordtype">void</span> <a class="code" href="classhippodraw_1_1TextRepFactory.html#a25a40b6614565f755233080a384c35f1" title="Initializes the factory with a set of default TextReps.">TextRepFactory::initialize</a> ()
<a name="l00047"></a>00047 {
<a name="l00048"></a>00048   <a class="code" href="classhippodraw_1_1Factory.html#a8aee137075d50e6fca916a1dbfd388c3" title="Adds a prototype object to the list of prototypes.">add</a> ( <span class="keyword">new</span> <a class="code" href="classhippodraw_1_1TotalTextRep.html" title="A TextRepBase class that draws projected values as a total.">TotalTextRep</a> () );
<a name="l00049"></a>00049   <a class="code" href="classhippodraw_1_1Factory.html#a8aee137075d50e6fca916a1dbfd388c3" title="Adds a prototype object to the list of prototypes.">add</a> ( <span class="keyword">new</span> <a class="code" href="classhippodraw_1_1FuncChiRep.html" title="A PointRep that draws the Chi-squared of a function on a display.">FuncChiRep</a> () );
<a name="l00050"></a>00050   <a class="code" href="classhippodraw_1_1Factory.html#a8aee137075d50e6fca916a1dbfd388c3" title="Adds a prototype object to the list of prototypes.">add</a> ( <span class="keyword">new</span> <a class="code" href="classhippodraw_1_1FuncParmRep.html" title="A Representation that draws the values of function parameters.">FuncParmRep</a> () );
<a name="l00051"></a>00051   <a class="code" href="classhippodraw_1_1Factory.html#a8aee137075d50e6fca916a1dbfd388c3" title="Adds a prototype object to the list of prototypes.">add</a> ( <span class="keyword">new</span> <a class="code" href="classhippodraw_1_1AverageTextRep.html" title="A TextRepBase class that draws the projected values as a calculated average.">AverageTextRep</a> ( <a class="code" href="namespacehippodraw_1_1Axes.html#a1d1cfd8ffb84e947f82999c682b666a7a58833a3110c570fb05130d40c365d1e4" title="X axis.">Axes::X</a> ) );
<a name="l00052"></a>00052   <a class="code" href="classhippodraw_1_1Factory.html#a8aee137075d50e6fca916a1dbfd388c3" title="Adds a prototype object to the list of prototypes.">add</a> ( <span class="keyword">new</span> <a class="code" href="classhippodraw_1_1AverageTextRep.html" title="A TextRepBase class that draws the projected values as a calculated average.">AverageTextRep</a> ( <a class="code" href="namespacehippodraw_1_1Axes.html#a1d1cfd8ffb84e947f82999c682b666a7a5596231eabd6cf29050967d5ac83ad84" title="Y axis.">Axes::Y</a> ) );
<a name="l00053"></a>00053   <a class="code" href="classhippodraw_1_1Factory.html#a8aee137075d50e6fca916a1dbfd388c3" title="Adds a prototype object to the list of prototypes.">add</a> ( <span class="keyword">new</span> <a class="code" href="classhippodraw_1_1BoxTextRep.html" title="A TextRepBase class that draws a user defined string.">BoxTextRep</a> () );
<a name="l00054"></a>00054   <a class="code" href="classhippodraw_1_1Factory.html#a8aee137075d50e6fca916a1dbfd388c3" title="Adds a prototype object to the list of prototypes.">add</a> ( <span class="keyword">new</span> <a class="code" href="classhippodraw_1_1UnderflowTextRep.html" title="A TextRepBase class that draws the number of underflow entries.">UnderflowTextRep</a> () );
<a name="l00055"></a>00055   <a class="code" href="classhippodraw_1_1Factory.html#a8aee137075d50e6fca916a1dbfd388c3" title="Adds a prototype object to the list of prototypes.">add</a> ( <span class="keyword">new</span> <a class="code" href="classhippodraw_1_1OverflowTextRep.html" title="A TextRepBase class that draws the number of overflow entries.">OverflowTextRep</a> () );
<a name="l00056"></a>00056 }
<a name="l00057"></a>00057 
<a name="l00058"></a>00058 } <span class="comment">// namespace hippodraw</span>
</pre></div></div>
<hr size="1"><address style="align: right;"><small>
Generated for HippoDraw Class Library by <a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border=0>
</a> </small></address>
</body>
</html>