17#ifndef __albaProsthesisDBManager_H__
18#define __albaProsthesisDBManager_H__
24#include <xercesc/util/XercesDefs.hpp>
25#include <xercesc/dom/DOM.hpp>
27#include "albaServiceClient.h"
40 virtual int Load(XERCES_CPP_NAMESPACE_QUALIFIER DOMNode *node) = 0;
41 virtual void Store(XERCES_CPP_NAMESPACE_QUALIFIER DOMDocument *doc, XERCES_CPP_NAMESPACE_QUALIFIER DOMElement *node) = 0;
45 bool CheckNodeElement(XERCES_CPP_NAMESPACE_QUALIFIER DOMNode *node,
const char *elementName);
64 virtual int Load(XERCES_CPP_NAMESPACE_QUALIFIER DOMNode *node)
override;
65 virtual void Store(XERCES_CPP_NAMESPACE_QUALIFIER DOMDocument *doc, XERCES_CPP_NAMESPACE_QUALIFIER DOMElement *node)
override;
84 virtual int Load(XERCES_CPP_NAMESPACE_QUALIFIER DOMNode *node)
override;
85 virtual void Store(XERCES_CPP_NAMESPACE_QUALIFIER DOMDocument *doc, XERCES_CPP_NAMESPACE_QUALIFIER DOMElement *node)
override;
104 virtual int Load(XERCES_CPP_NAMESPACE_QUALIFIER DOMNode *node)
override;
105 virtual void Store(XERCES_CPP_NAMESPACE_QUALIFIER DOMDocument *doc, XERCES_CPP_NAMESPACE_QUALIFIER DOMElement *node)
override;
124 virtual int Load(XERCES_CPP_NAMESPACE_QUALIFIER DOMNode *node)
override;
125 virtual void Store(XERCES_CPP_NAMESPACE_QUALIFIER DOMDocument *doc, XERCES_CPP_NAMESPACE_QUALIFIER DOMElement *node)
override;
164 virtual int Load(XERCES_CPP_NAMESPACE_QUALIFIER DOMNode *node)
override;
165 virtual void Store(XERCES_CPP_NAMESPACE_QUALIFIER DOMDocument *doc, XERCES_CPP_NAMESPACE_QUALIFIER DOMElement *node)
override;
204 virtual int Load(XERCES_CPP_NAMESPACE_QUALIFIER DOMNode *node)
override;
205 virtual void Store(XERCES_CPP_NAMESPACE_QUALIFIER DOMDocument *doc, XERCES_CPP_NAMESPACE_QUALIFIER DOMElement *node)
override;
218 std::vector<albaProDBProsthesis *>&
GetProstheses() {
return m_Prostheses; };
224 std::vector<albaProDBProducer *>&
GetProducers() {
return m_Producers; };
228 std::vector<albaProDBType *>&
GetTypes() {
return m_Types; };
248 std::vector<albaProDBProducer *> m_Producers;
249 std::vector<albaProDBType *> m_Types;
250 std::vector<albaProDBProsthesis *> m_Prostheses;
252 std::vector<albaString> m_ComponentsFiles;
253 std::vector<int> m_CompFilesNum;
albaString GetElementAttribute(XERCES_CPP_NAMESPACE_QUALIFIER DOMNode *node, const char *attributeName)
bool CheckNodeElement(XERCES_CPP_NAMESPACE_QUALIFIER DOMNode *node, const char *elementName)
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
class name: albaGUISettingsDialog.
albaMatrix - Time stamped 4x4 Matrix.
Class Name: albaProsthesisDBManager.
virtual void Clear() override
void SetName(albaString val)
virtual void Store(XERCES_CPP_NAMESPACE_QUALIFIER DOMDocument *doc, XERCES_CPP_NAMESPACE_QUALIFIER DOMElement *node) override
albaString GetName() const
virtual int Load(XERCES_CPP_NAMESPACE_QUALIFIER DOMNode *node) override
std::vector< albaProDBComponent * > * GetComponents()
Returns the components list.
void AddComponent(albaProDBComponent *component)
std::vector< albaProDBComponent * > m_Components
albaMatrix GetMatrix() const
albaString GetName() const
void SetName(albaString val)
virtual int Load(XERCES_CPP_NAMESPACE_QUALIFIER DOMNode *node) override
void SetMatrix(albaMatrix val)
vtkPolyData * GetVTKData()
albaString GetDataFileName() const
virtual void Clear() override
void SetVTKData(vtkPolyData *vtkData)
virtual void Store(XERCES_CPP_NAMESPACE_QUALIFIER DOMDocument *doc, XERCES_CPP_NAMESPACE_QUALIFIER DOMElement *node) override
albaString GetWebSite() const
void SetImgFileName(albaString val)
virtual void Clear() override
void SetName(albaString val)
albaString GetImgFileName() const
virtual void Store(XERCES_CPP_NAMESPACE_QUALIFIER DOMDocument *doc, XERCES_CPP_NAMESPACE_QUALIFIER DOMElement *node) override
void SetWebSite(albaString val)
virtual int Load(XERCES_CPP_NAMESPACE_QUALIFIER DOMNode *node) override
albaString GetName() const
static PRO_SIDES GetSideByString(albaString sideName)
void AddCompGroup(albaProDBCompGroup *group)
void SetBendingAngle(double val)
albaString GetType() const
virtual void Clear() override
void SetProducer(albaString val)
std::vector< albaProDBCompGroup * > m_CompGroups
std::vector< albaProDBCompGroup * > * GetCompGroups()
returns the vector of components
static char * GetSideAsStr(PRO_SIDES side)
void SetImgFileName(albaString val)
void SetName(albaString val)
virtual void Store(XERCES_CPP_NAMESPACE_QUALIFIER DOMDocument *doc, XERCES_CPP_NAMESPACE_QUALIFIER DOMElement *node) override
albaString GetImgFileName() const
double GetBendingAngle() const
void SetSide(albaProDBProsthesis::PRO_SIDES val)
albaString GetProducer() const
void SetType(albaString val)
albaString GetName() const
albaProDBProsthesis::PRO_SIDES GetSide() const
virtual int Load(XERCES_CPP_NAMESPACE_QUALIFIER DOMNode *node) override
virtual int Load(XERCES_CPP_NAMESPACE_QUALIFIER DOMNode *node) override
void SetName(albaString val)
albaString GetName() const
virtual void Store(XERCES_CPP_NAMESPACE_QUALIFIER DOMDocument *doc, XERCES_CPP_NAMESPACE_QUALIFIER DOMElement *node) override
virtual void Clear() override
Class Name: albaProsthesesDBManager.
albaString GetPassPhrase() const
virtual void Store(XERCES_CPP_NAMESPACE_QUALIFIER DOMDocument *doc, XERCES_CPP_NAMESPACE_QUALIFIER DOMElement *node) override
virtual void Clear() override
albaProsthesesDBManager()
Default constructor.
std::vector< albaProDBProsthesis * > & GetProstheses()
void SaveDBToFile(albaString DBFile)
albaString GetDBDir() const
void RemoveComponentFile(albaString fileName)
~albaProsthesesDBManager()
Default destructor.
int GetComponentFileCount(albaString fileName)
returns the number of components that uses the file, zero if there are no components
void AddProsthesis(albaProDBProsthesis *prosthesis)
void AddComponentFile(albaString fileName)
void SetPassPhrase(albaString val)
std::vector< albaProDBType * > & GetTypes()
bool HasProducer(albaString producer)
void LoadDBFromFile(albaString DBFile, bool append=true)
std::vector< albaProDBProducer * > & GetProducers()
void AddType(albaProDBType *type)
albaProDBProsthesis * GetProsthesis(albaString prosthesis, albaProDBProsthesis::PRO_SIDES side)
void DeleteProsthesis(albaString prosthesis, albaProDBProsthesis::PRO_SIDES side)
bool HasType(albaString type)
void AddProducer(albaProDBProducer *producer)
std::vector< albaProDBProsthesis * > SearchProstheses(albaString producer, albaString type, albaString side)
virtual int Load(XERCES_CPP_NAMESPACE_QUALIFIER DOMNode *node) override
void SetDBDir(albaString val)
bool HasProsthesis(albaString prosthesis, albaProDBProsthesis::PRO_SIDES side)
albaString - performs common string operations on c-strings.
class name: albaOpWizardWait Simple op with only an next-step button create to insert pause during wi...