aboutsummaryrefslogtreecommitdiff
path: root/docs/doxygen/nel/a03332.html
blob: 0a029d3ff212188505174501e5de764b9b7830bd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>NeL: NLPACS::URetrieverBank class Reference</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.3.6 -->
<div class="qindex">  <form class="search" action="search.php" method="get">
<a class="qindex" href="main.html">Main&nbsp;Page</a> | <a class="qindex" href="namespaces.html">Namespace List</a> | <a class="qindex" href="hierarchy.html">Class&nbsp;Hierarchy</a> | <a class="qindex" href="classes.html">Alphabetical&nbsp;List</a> | <a class="qindex" href="annotated.html">Data&nbsp;Structures</a> | <a class="qindex" href="files.html">File&nbsp;List</a> | <a class="qindex" href="namespacemembers.html">Namespace&nbsp;Members</a> | <a class="qindex" href="functions.html">Data&nbsp;Fields</a> | <a class="qindex" href="globals.html">Globals</a> | <a class="qindex" href="pages.html">Related&nbsp;Pages</a>  | <span class="search"><u>S</u>earch&nbsp;for&nbsp;<input class="search" type="text" name="query" value="" size="20" accesskey="s"/></span></form></div>
<h1>NLPACS::URetrieverBank Class Reference</h1><code>#include &lt;<a class="el" href="a06624.html">u_retriever_bank.h</a>&gt;</code>
<p>
<p>Inheritance diagram for NLPACS::URetrieverBank:
<p><center><img src="a03332.png" usemap="#NLPACS::URetrieverBank_map" border="0" alt=""></center>
<map name="NLPACS::URetrieverBank_map">
<area href="a03331.html" alt="NLPACS::CRetrieverBank" shape="rect" coords="0,56,157,80">
</map>
<hr><a name="_details"></a><h2>Detailed Description</h2>
<dl compact><dt><b>Author:</b></dt><dd>Benjamin Legros <p>
Nevrax France </dd></dl>
<dl compact><dt><b>Date:</b></dt><dd>2001 </dd></dl>

<p>

<p>
Definition at line <a class="el" href="a06624.html#l00045">45</a> of file <a class="el" href="a06624.html">u_retriever_bank.h</a>.<table border=0 cellpadding=0 cellspacing=0>
<tr><td></td></tr>
<tr><td colspan=2><br><h2>Static Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a03332.html">URetrieverBank</a> *&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03332.html#NLPACS_1_1URetrieverBanke0">createRetrieverBank</a> (const char *retrieverBank, bool loadAll=true)</td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03332.html#NLPACS_1_1URetrieverBanke1">deleteRetrieverBank</a> (<a class="el" href="a03332.html">URetrieverBank</a> *retrieverBank)</td></tr>

</table>
<hr><h2>Member Function Documentation</h2>
<a class="anchor" name="NLPACS_1_1URetrieverBanke0" doxytag="NLPACS::URetrieverBank::createRetrieverBank" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> <a class="el" href="a03332.html">NLPACS::URetrieverBank</a> * NLPACS::URetrieverBank::createRetrieverBank </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">const char *&nbsp;</td>
          <td class="mdname" nowrap> <em>retrieverBank</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td></td>
          <td class="md" nowrap>bool&nbsp;</td>
          <td class="mdname" nowrap> <em>loadAll</em> = true</td>
        </tr>
        <tr>
          <td></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"><code> [static]</code></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Create a retriever bank.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign=top><em>retrieverBank</em>&nbsp;</td><td>is the global retriver bank path file name. This method use CPath to find the retriever </td></tr>
  </table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>the retriver bank interface or NULL if the bank was not found.</dd></dl>

<p>
Definition at line <a class="el" href="a06335.html#l00039">39</a> of file <a class="el" href="a06335.html">retriever_bank.cpp</a>.
<p>
References <a class="el" href="a06336.html#l00060">NLPACS::CRetrieverBank::_AllLoaded</a>, <a class="el" href="a06336.html#l00063">NLPACS::CRetrieverBank::_NamePrefix</a>, and <a class="el" href="a05538.html#l02654">file</a>.
<p>
<div class="fragment"><pre>00040 {
00041         NL_ALLOC_CONTEXT( Pacs )
00042 
00043         <a class="code" href="a02653.html">CIFile</a>  <a class="code" href="a04115.html#a95">file</a>;
00044         <span class="keywordflow">if</span> (<a class="code" href="a04115.html#a95">file</a>.open( CPath::lookup(retrieverBank) ))
00045         {
00046                 CRetrieverBank  *bank = <span class="keyword">new</span> CRetrieverBank();
00047 
00048                 bank-&gt;_AllLoaded = loadAll;
00049                 bank-&gt;_NamePrefix = CFile::getFilenameWithoutExtension(retrieverBank);
00050 
00051                 <a class="code" href="a04115.html#a95">file</a>.serial(*bank);
00052 
00053                 <span class="keywordflow">return</span> static_cast&lt;URetrieverBank *&gt;(bank);
00054         }
00055         <span class="keywordflow">else</span>
00056                 <span class="keywordflow">return</span> NULL;
00057 }
</pre></div>    </td>
  </tr>
</table>
<a class="anchor" name="NLPACS_1_1URetrieverBanke1" doxytag="NLPACS::URetrieverBank::deleteRetrieverBank" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> void NLPACS::URetrieverBank::deleteRetrieverBank </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top"><a class="el" href="a03332.html">URetrieverBank</a> *&nbsp;</td>
          <td class="mdname1" valign="top" nowrap> <em>retrieverBank</em>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap><code> [static]</code></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Delete a retriever bank.
<p>
Definition at line <a class="el" href="a06335.html#l00060">60</a> of file <a class="el" href="a06335.html">retriever_bank.cpp</a>.
<p>
References <a class="el" href="a05646.html#l00993">r</a>.
<p>
<div class="fragment"><pre>00061 {
00062         <span class="comment">// Cast</span>
00063 <span class="comment">//      nlassert (dynamic_cast&lt;NLPACS::CRetrieverBank*&gt;(retrieverBank));</span>
00064         <a class="code" href="a03331.html">NLPACS::CRetrieverBank</a>* <a class="code" href="a04223.html#a628">r</a>=static_cast&lt;NLPACS::CRetrieverBank*&gt;(retrieverBank);
00065 
00066         <span class="comment">// Delete</span>
00067         <span class="keyword">delete</span> <a class="code" href="a04223.html#a628">r</a>;
00068 }
</pre></div>    </td>
  </tr>
</table>
<hr>The documentation for this class was generated from the following files:<ul>
<li><a class="el" href="a06624.html">u_retriever_bank.h</a><li><a class="el" href="a06335.html">retriever_bank.cpp</a></ul>
<hr size="1"><address style="align: right;"><small>Generated on Tue Mar 16 14:26:38 2004 for NeL by
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border=0 > 
</a>1.3.6 </small></address>
</body>
</html>