MSSQLDatabaseFileSpec.h
Go to the documentation of this file.
1 #pragma once
2 
3 namespace AppSecInc
4 {
5  namespace Databases
6  {
7  namespace MSSQL
8  {
11  {
12  private:
13  std::wstring _type;
14  std::wstring _filename;
15  std::wstring _name;
16  std::wstring _growthsize;
17  std::wstring _maxsize;
18  std::wstring _size;
19  public:
21  const std::wstring& GetType() const { return _type; }
22  void SetType(const std::wstring& value) { _type = value; }
24  const std::wstring& GetFilename() const { return _filename; }
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; }
36  const std::wstring& GetGrowthSize() const { return _growthsize; }
37  void SetGrowthSize(std::wstring value) { _growthsize = value; }
38  public:
39  std::wstring GetCreateQuery() const;
40  friend std::wostream& operator<<(std::wostream&, const MSSQLDatabaseFileSpec&);
45  MSSQLDatabaseFileSpec(const MSSQLDatabaseFileSpec& connectioninfo);
48  MSXML2::IXMLDOMNodePtr Save(AppSecInc::Xml::XmlDocument& xmldoc, MSXML2::IXMLDOMNodePtr parent) const;
50  void Load(AppSecInc::Xml::XmlDocument& xmldoc, MSXML2::IXMLDOMNodePtr root);
51  };
52  }
53  }
54 }
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


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