NLPACS::URetrieverBank Class Reference

#include <u_retriever_bank.h>

Inheritance diagram for NLPACS::URetrieverBank:

NLPACS::CRetrieverBank

Detailed Description

Author:
Benjamin Legros

Nevrax France

Date:
2001

Definition at line 45 of file u_retriever_bank.h.

Static Public Member Functions

URetrieverBankcreateRetrieverBank (const char *retrieverBank, bool loadAll=true)
void deleteRetrieverBank (URetrieverBank *retrieverBank)


Member Function Documentation

NLPACS::URetrieverBank * NLPACS::URetrieverBank::createRetrieverBank const char *  retrieverBank,
bool  loadAll = true
[static]
 

Create a retriever bank.

Parameters:
retrieverBank is the global retriver bank path file name. This method use CPath to find the retriever
Returns:
the retriver bank interface or NULL if the bank was not found.

Definition at line 39 of file retriever_bank.cpp.

References NLPACS::CRetrieverBank::_AllLoaded, NLPACS::CRetrieverBank::_NamePrefix, and file.

00040 {
00041         NL_ALLOC_CONTEXT( Pacs )
00042 
00043         CIFile  file;
00044         if (file.open( CPath::lookup(retrieverBank) ))
00045         {
00046                 CRetrieverBank  *bank = new CRetrieverBank();
00047 
00048                 bank->_AllLoaded = loadAll;
00049                 bank->_NamePrefix = CFile::getFilenameWithoutExtension(retrieverBank);
00050 
00051                 file.serial(*bank);
00052 
00053                 return static_cast<URetrieverBank *>(bank);
00054         }
00055         else
00056                 return NULL;
00057 }

void NLPACS::URetrieverBank::deleteRetrieverBank URetrieverBank retrieverBank  )  [static]
 

Delete a retriever bank.

Definition at line 60 of file retriever_bank.cpp.

References r.

00061 {
00062         // Cast
00063 //      nlassert (dynamic_cast<NLPACS::CRetrieverBank*>(retrieverBank));
00064         NLPACS::CRetrieverBank* r=static_cast<NLPACS::CRetrieverBank*>(retrieverBank);
00065 
00066         // Delete
00067         delete r;
00068 }


The documentation for this class was generated from the following files:
Generated on Tue Mar 16 14:26:38 2004 for NeL by doxygen 1.3.6