ALBA
Public Member Functions | List of all members
albaProsthesesDBManager Class Reference

#include <albaProsthesesDBManager.h>

Inheritance diagram for albaProsthesesDBManager:
Inheritance graph
[legend]
Collaboration diagram for albaProsthesesDBManager:
Collaboration graph
[legend]

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)
 
albaProDBProsthesisGetProsthesis (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)
 

Detailed Description

Class Name: albaProsthesesDBManager.

Definition at line 189 of file albaProsthesesDBManager.h.

Constructor & Destructor Documentation

◆ albaProsthesesDBManager()

albaProsthesesDBManager::albaProsthesesDBManager ( )

Default constructor.

◆ ~albaProsthesesDBManager()

albaProsthesesDBManager::~albaProsthesesDBManager ( )

Default destructor.

Member Function Documentation

◆ LoadDB()

int albaProsthesesDBManager::LoadDB ( )

◆ SaveDB()

int albaProsthesesDBManager::SaveDB ( )

◆ Load()

virtual int albaProsthesesDBManager::Load ( XERCES_CPP_NAMESPACE_QUALIFIER DOMNode *  node)
overridevirtual

Implements ProStorable.

◆ Store()

virtual void albaProsthesesDBManager::Store ( XERCES_CPP_NAMESPACE_QUALIFIER DOMDocument *  doc,
XERCES_CPP_NAMESPACE_QUALIFIER DOMElement *  node 
)
overridevirtual

Implements ProStorable.

◆ Clear()

virtual void albaProsthesesDBManager::Clear ( )
overridevirtual

Implements ProStorable.

◆ AddComponentFile()

void albaProsthesesDBManager::AddComponentFile ( albaString  fileName)

◆ RemoveComponentFile()

void albaProsthesesDBManager::RemoveComponentFile ( albaString  fileName)

◆ GetComponentFileCount()

int albaProsthesesDBManager::GetComponentFileCount ( albaString  fileName)

returns the number of components that uses the file, zero if there are no components

◆ SearchProstheses()

std::vector< albaProDBProsthesis * > albaProsthesesDBManager::SearchProstheses ( albaString  producer,
albaString  type,
albaString  side 
)

◆ GetProstheses()

std::vector< albaProDBProsthesis * > & albaProsthesesDBManager::GetProstheses ( )
inline

Definition at line 218 of file albaProsthesesDBManager.h.

◆ HasProsthesis()

bool albaProsthesesDBManager::HasProsthesis ( albaString  prosthesis,
albaProDBProsthesis::PRO_SIDES  side 
)

◆ GetProsthesis()

albaProDBProsthesis * albaProsthesesDBManager::GetProsthesis ( albaString  prosthesis,
albaProDBProsthesis::PRO_SIDES  side 
)

◆ DeleteProsthesis()

void albaProsthesesDBManager::DeleteProsthesis ( albaString  prosthesis,
albaProDBProsthesis::PRO_SIDES  side 
)

◆ AddProsthesis()

void albaProsthesesDBManager::AddProsthesis ( albaProDBProsthesis prosthesis)

◆ GetProducers()

std::vector< albaProDBProducer * > & albaProsthesesDBManager::GetProducers ( )
inline

Definition at line 224 of file albaProsthesesDBManager.h.

◆ HasProducer()

bool albaProsthesesDBManager::HasProducer ( albaString  producer)

◆ AddProducer()

void albaProsthesesDBManager::AddProducer ( albaProDBProducer producer)

◆ GetTypes()

std::vector< albaProDBType * > & albaProsthesesDBManager::GetTypes ( )
inline

Definition at line 228 of file albaProsthesesDBManager.h.

◆ HasType()

bool albaProsthesesDBManager::HasType ( albaString  type)

◆ AddType()

void albaProsthesesDBManager::AddType ( albaProDBType type)

◆ LoadDBFromFile()

void albaProsthesesDBManager::LoadDBFromFile ( albaString  DBFile,
bool  append = true 
)
inline

Definition at line 236 of file albaProsthesesDBManager.h.

References ProStorable::Clear().

Here is the call graph for this function:

◆ SaveDBToFile()

void albaProsthesesDBManager::SaveDBToFile ( albaString  DBFile)
inline

Definition at line 237 of file albaProsthesesDBManager.h.

◆ GetDBDir()

albaString albaProsthesesDBManager::GetDBDir ( ) const
inline

Definition at line 239 of file albaProsthesesDBManager.h.

◆ SetDBDir()

void albaProsthesesDBManager::SetDBDir ( albaString  val)

◆ GetPassPhrase()

albaString albaProsthesesDBManager::GetPassPhrase ( ) const
inline

Definition at line 241 of file albaProsthesesDBManager.h.

◆ SetPassPhrase()

void albaProsthesesDBManager::SetPassPhrase ( albaString  val)
inline

Definition at line 242 of file albaProsthesesDBManager.h.


The documentation for this class was generated from the following file: