14 std::wstring _filename;
16 std::wstring _growthsize;
17 std::wstring _maxsize;
21 const std::wstring&
GetType()
const {
return _type; }
22 void SetType(
const std::wstring& value) { _type = value; }
25 void SetFilename(
const std::wstring& value) { _filename = value; }
27 const std::wstring&
GetName()
const {
return _name; }
28 void SetName(
const std::wstring& value) { _name = value; }
30 const std::wstring&
GetSize()
const {
return _size; }
31 void SetSize(std::wstring value) { _size = value; }
33 const std::wstring&
GetMaxSize()
const {
return _maxsize; }
34 void SetMaxSize(std::wstring value) { _maxsize = value; }
std::wstring GetCreateQuery() const
Definition: MSSQLDatabaseFileSpec.cpp:38
const std::wstring & GetType() const
the file spec type, eg. PRIMARY, LOG ON or FILEGROUP Group1
Definition: MSSQLDatabaseFileSpec.h:21
void SetName(const std::wstring &value)
Definition: MSSQLDatabaseFileSpec.h:28
MSXML2::IXMLDOMNodePtr Save(AppSecInc::Xml::XmlDocument &xmldoc, MSXML2::IXMLDOMNodePtr parent) const
serialize the file spec to xml
Definition: MSSQLDatabaseFileSpec.cpp:55
const std::wstring & GetMaxSize() const
maximum size to which the database file can grow
Definition: MSSQLDatabaseFileSpec.h:33
A Microsoft SQL Server database file specification.
Definition: MSSQLDatabaseFileSpec.h:10
const std::wstring & GetName() const
the logical name for the database file
Definition: MSSQLDatabaseFileSpec.h:27
An MSXML document.
Definition: XmlDocument.h:8
const std::wstring & GetGrowthSize() const
growth increment of the database file
Definition: MSSQLDatabaseFileSpec.h:36
const std::wstring & GetFilename() const
the operating-system file name for the database file
Definition: MSSQLDatabaseFileSpec.h:24
friend std::wostream & operator<<(std::wostream &, const MSSQLDatabaseFileSpec &)
const std::wstring & GetSize() const
the size of the database file, eg. 10MB
Definition: MSSQLDatabaseFileSpec.h:30
void SetSize(std::wstring value)
Definition: MSSQLDatabaseFileSpec.h:31
~MSSQLDatabaseFileSpec()
Definition: MSSQLDatabaseFileSpec.cpp:7
void SetMaxSize(std::wstring value)
Definition: MSSQLDatabaseFileSpec.h:34
void SetFilename(const std::wstring &value)
Definition: MSSQLDatabaseFileSpec.h:25
void Load(AppSecInc::Xml::XmlDocument &xmldoc, MSXML2::IXMLDOMNodePtr root)
deserialize the file spec from xml
Definition: MSSQLDatabaseFileSpec.cpp:67
MSSQLDatabaseFileSpec()
constructors/destructors
Definition: MSSQLDatabaseFileSpec.cpp:27
void SetGrowthSize(std::wstring value)
Definition: MSSQLDatabaseFileSpec.h:37
MSSQLDatabaseFileSpec & operator=(const MSSQLDatabaseFileSpec &)
copy constructor and operator=
Definition: MSSQLDatabaseFileSpec.cpp:11
void SetType(const std::wstring &value)
Definition: MSSQLDatabaseFileSpec.h:22