src/Common/ODBC/MSSQLDataFile.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 MSSQLDataFile
00011                         {
00012             private:
00013                 std::wstring _database;
00014                 std::wstring _schema;
00015                 std::wstring _table;
00016                 std::wstring _filename;
00017                 std::list<std::wstring> _parameters;
00018             public:
00020                 const std::wstring& GetDatabase() const { return _database; }
00021                 void SetDatabase(const std::wstring& value) { _database = value; }
00023                 const std::wstring& GetSchema() const { return _schema; }
00024                 void SetSchema(const std::wstring& value) { _schema = value; }
00026                 const std::wstring& GetTable() const { return _table; }
00027                 void SetTable(const std::wstring& value) { _table = value; }
00029                 const std::wstring& GetFilename() const { return _filename; }
00030                 void SetFilename(const std::wstring& value) { _filename = value; }
00032                 const std::list<std::wstring>& GetParameters() const { return _parameters; }
00034                 void AddParameter(const std::wstring& value) { _parameters.push_back(value); }
00035                 void AddParameter(const std::wstring& name, const std::wstring& value);
00036                         public:
00037                 std::wstring GetInsertQuery() const;
00038                 friend std::wostream& operator<<(std::wostream&, const MSSQLDataFile&);
00040                 MSSQLDataFile& operator=(const MSSQLDataFile&);
00042                 MSSQLDataFile();
00043                 MSSQLDataFile(const MSSQLDataFile&);
00044                                 ~MSSQLDataFile();
00046                 MSXML2::IXMLDOMNodePtr Save(AppSecInc::Xml::XmlDocument& xmldoc, MSXML2::IXMLDOMNodePtr parent) const;
00048                 void Load(AppSecInc::Xml::XmlDocument& xmldoc, MSXML2::IXMLDOMNodePtr root);
00049                         };
00050                 }
00051         }
00052 }


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