00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 #ifndef SMBIOSXMLIMPL_H
00020 #define SMBIOSXMLIMPL_H
00021
00022
00023 #include "smbios/compat.h"
00024
00025 #include "XmlUtils.h"
00026 #include "smbios/ISmbiosXml.h"
00027 #include "SmbiosImpl.h"
00028
00029 namespace smbios
00030 {
00031 class SmbiosTableXml : public virtual SmbiosTable
00032 {
00033 public:
00034
00035 using SmbiosTable::operator[];
00036 virtual iterator operator[]( const std::string & );
00037 virtual const_iterator operator[]( const std::string & ) const;
00038
00039 virtual std::ostream & streamify(std::ostream & cout ) const;
00040
00041
00042 virtual ~SmbiosTableXml();
00043 explicit SmbiosTableXml(std::vector<SmbiosStrategy *> initStrategyList, bool strictValidation = 0);
00044
00045 void setXmlFilePath( std::string );
00046 int getTypeForString( const std::string )const;
00047 const std::string getStringForType( const int )const;
00048
00049 const XML_NAMESPACE DOMDocument *getXmlDoc() const;
00050
00051 protected:
00052
00053 SmbiosTableXml ();
00054
00055
00056 protected:
00057 std::string xmlFile;
00058
00059
00060
00061 XML_NAMESPACE DOMBuilder *parser;
00062
00063
00064
00065
00066 XML_NAMESPACE DOMDocument *doc;
00067
00068
00069
00070 bool xmlInitialized;
00071
00072 private:
00073 SmbiosTableXml (const SmbiosTableXml & source);
00074 SmbiosTableXml & operator = (const SmbiosTableXml & source);
00075 };
00076 }
00077
00078 #endif
00079