#include <u_retriever_bank.h>
Inheritance diagram for NLPACS::URetrieverBank:
Nevrax France
Definition at line 45 of file u_retriever_bank.h.
Static Public Member Functions | |
URetrieverBank * | createRetrieverBank (const char *retrieverBank, bool loadAll=true) |
void | deleteRetrieverBank (URetrieverBank *retrieverBank) |
|
Create a retriever bank.
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 } |
|
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 } |