ALBA
|
#include <albaProsthesesDBManager.h>
Public Member Functions | |
albaProsthesesDBManager () | |
~albaProsthesesDBManager () | |
int | LoadDB () |
int | SaveDB () |
virtual int | Load (XERCES_CPP_NAMESPACE_QUALIFIER DOMNode *node) override |
virtual void | Store (XERCES_CPP_NAMESPACE_QUALIFIER DOMDocument *doc, XERCES_CPP_NAMESPACE_QUALIFIER DOMElement *node) override |
virtual void | Clear () override |
void | AddComponentFile (albaString fileName) |
void | RemoveComponentFile (albaString fileName) |
int | GetComponentFileCount (albaString fileName) |
std::vector< albaProDBProsthesis * > | SearchProstheses (albaString producer, albaString type, albaString side) |
std::vector< albaProDBProsthesis * > & | GetProstheses () |
bool | HasProsthesis (albaString prosthesis, albaProDBProsthesis::PRO_SIDES side) |
albaProDBProsthesis * | GetProsthesis (albaString prosthesis, albaProDBProsthesis::PRO_SIDES side) |
void | DeleteProsthesis (albaString prosthesis, albaProDBProsthesis::PRO_SIDES side) |
void | AddProsthesis (albaProDBProsthesis *prosthesis) |
std::vector< albaProDBProducer * > & | GetProducers () |
bool | HasProducer (albaString producer) |
void | AddProducer (albaProDBProducer *producer) |
std::vector< albaProDBType * > & | GetTypes () |
bool | HasType (albaString type) |
void | AddType (albaProDBType *type) |
void | LoadDBFromFile (albaString DBFile, bool append=true) |
void | SaveDBToFile (albaString DBFile) |
albaString | GetDBDir () const |
void | SetDBDir (albaString val) |
albaString | GetPassPhrase () const |
void | SetPassPhrase (albaString val) |
virtual int | Load (XERCES_CPP_NAMESPACE_QUALIFIER DOMNode *node)=0 |
virtual void | Store (XERCES_CPP_NAMESPACE_QUALIFIER DOMDocument *doc, XERCES_CPP_NAMESPACE_QUALIFIER DOMElement *node)=0 |
virtual void | Clear ()=0 |
Additional Inherited Members | |
Protected Member Functions inherited from ProStorable | |
bool | CheckNodeElement (XERCES_CPP_NAMESPACE_QUALIFIER DOMNode *node, const char *elementName) |
albaString | GetElementAttribute (XERCES_CPP_NAMESPACE_QUALIFIER DOMNode *node, const char *attributeName) |
Class Name: albaProsthesesDBManager.
Definition at line 189 of file albaProsthesesDBManager.h.
albaProsthesesDBManager::albaProsthesesDBManager | ( | ) |
Default constructor.
albaProsthesesDBManager::~albaProsthesesDBManager | ( | ) |
Default destructor.
int albaProsthesesDBManager::LoadDB | ( | ) |
int albaProsthesesDBManager::SaveDB | ( | ) |
|
overridevirtual |
Implements ProStorable.
|
overridevirtual |
Implements ProStorable.
|
overridevirtual |
Implements ProStorable.
void albaProsthesesDBManager::AddComponentFile | ( | albaString | fileName | ) |
void albaProsthesesDBManager::RemoveComponentFile | ( | albaString | fileName | ) |
int albaProsthesesDBManager::GetComponentFileCount | ( | albaString | fileName | ) |
returns the number of components that uses the file, zero if there are no components
std::vector< albaProDBProsthesis * > albaProsthesesDBManager::SearchProstheses | ( | albaString | producer, |
albaString | type, | ||
albaString | side | ||
) |
|
inline |
Definition at line 218 of file albaProsthesesDBManager.h.
bool albaProsthesesDBManager::HasProsthesis | ( | albaString | prosthesis, |
albaProDBProsthesis::PRO_SIDES | side | ||
) |
albaProDBProsthesis * albaProsthesesDBManager::GetProsthesis | ( | albaString | prosthesis, |
albaProDBProsthesis::PRO_SIDES | side | ||
) |
void albaProsthesesDBManager::DeleteProsthesis | ( | albaString | prosthesis, |
albaProDBProsthesis::PRO_SIDES | side | ||
) |
void albaProsthesesDBManager::AddProsthesis | ( | albaProDBProsthesis * | prosthesis | ) |
|
inline |
Definition at line 224 of file albaProsthesesDBManager.h.
bool albaProsthesesDBManager::HasProducer | ( | albaString | producer | ) |
void albaProsthesesDBManager::AddProducer | ( | albaProDBProducer * | producer | ) |
|
inline |
Definition at line 228 of file albaProsthesesDBManager.h.
bool albaProsthesesDBManager::HasType | ( | albaString | type | ) |
void albaProsthesesDBManager::AddType | ( | albaProDBType * | type | ) |
|
inline |
Definition at line 236 of file albaProsthesesDBManager.h.
References ProStorable::Clear().
|
inline |
Definition at line 237 of file albaProsthesesDBManager.h.
|
inline |
Definition at line 239 of file albaProsthesesDBManager.h.
void albaProsthesesDBManager::SetDBDir | ( | albaString | val | ) |
|
inline |
Definition at line 241 of file albaProsthesesDBManager.h.
|
inline |
Definition at line 242 of file albaProsthesesDBManager.h.