src/Common/ODBC/MSSQLDatabaseFileSpec.h

Go to the documentation of this file.
00001 #pragma once
00002 
00003 namespace AppSecInc
00004 {
00005         namespace Databases
00006         {
00007                 namespace MSSQL
00008                 {
00010             class MSSQLDatabaseFileSpec
00011                         {
00012             private:
00013                 std::wstring _type;
00014                 std::wstring _filename;
00015                 std::wstring _name;
00016                 std::wstring _growthsize;
00017                 std::wstring _maxsize;
00018                 std::wstring _size;
00019             public:
00021                 const std::wstring& GetType() const { return _type; }
00022                 void SetType(const std::wstring& value) { _type = value; }
00024                 const std::wstring& GetFilename() const { return _filename; }
00025                 void SetFilename(const std::wstring& value) { _filename = value; }
00027                 const std::wstring& GetName() const { return _name; }
00028                 void SetName(const std::wstring& value) { _name = value; }
00030                 const std::wstring& GetSize() const { return _size; }
00031                 void SetSize(std::wstring value) { _size = value; }
00033                 const std::wstring& GetMaxSize() const { return _maxsize; }
00034                 void SetMaxSize(std::wstring value) { _maxsize = value; }
00036                 const std::wstring& GetGrowthSize() const { return _growthsize; }
00037                 void SetGrowthSize(std::wstring value) { _growthsize = value; }
00038                         public:
00039                 std::wstring GetCreateQuery() const;
00040                 friend std::wostream& operator<<(std::wostream&, const MSSQLDatabaseFileSpec&);
00042                 MSSQLDatabaseFileSpec& operator=(const MSSQLDatabaseFileSpec&);
00044                 MSSQLDatabaseFileSpec();
00045                 MSSQLDatabaseFileSpec(const MSSQLDatabaseFileSpec& connectioninfo);
00046                                 ~MSSQLDatabaseFileSpec();
00048                 MSXML2::IXMLDOMNodePtr Save(AppSecInc::Xml::XmlDocument& xmldoc, MSXML2::IXMLDOMNodePtr parent) const;
00050                 void Load(AppSecInc::Xml::XmlDocument& xmldoc, MSXML2::IXMLDOMNodePtr root);
00051                         };
00052                 }
00053         }
00054 }


© Application Security Inc. - All Rights Reserved http://msiext.codeplex.com