MAK Data Logger API Documentation for HLA
sqlIfParams.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 1992-2010 VT MAK
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
9 #pragma once
10 
11 #include "databaseParameters.h"
12 #include <vlutil/vlString.h>
13 
14 //
15 // class DtSqlIfParameters:
16 //
17 // To make most ODBC interface calls, it is necessary to first allocation an SQL
18 // environment object. This class allocates an environment, and uses
19 // DtSqlIfErrorHandler to process any errors.
20 //
22 {
23 public:
24  // Default constructor
26  // Destructor
27  virtual ~DtSqlDatabaseParameters();
28 
29 private:
34 public:
35 
36  // Set/Get the Driver command
37  virtual const DtString& driver() const;
38 
39  // ! \brief Keywords
41 
42  // Set/Get the DSN keyword
43  virtual const DtString& DSNKeyword() const;
44 
45  // Set/Get the Database keyword
46  virtual const DtString& DBKeyword() const;
47 
48  // Set/Get the Server keyword
49  virtual const DtString& serverKeyword() const;
50 
51  // Set/Get the User keyword
52  virtual const DtString& userKeyword() const;
53 
54  // Set/Get the Password keyword
55  virtual const DtString& passwordKeyword() const;
56 
58 
59  // Set/Get the DSN name
60  virtual void setDataSourceName( const DtString& cmd );
61  virtual const DtString& dataSourceName() const;
62 
63  // Set/Get the Master DSN name
64  virtual void setMasterDataSourceName( const DtString& cmd );
65  virtual const DtString& masterDataSourceName() const;
66 
67  // Set/Get the Database name
68  virtual void setDatabaseName( const DtString& cmd );
69  virtual const DtString& databaseName() const;
70 
71  // Set/Get the "Original" Database name
72  virtual void setOrigDBName( const DtString& cmd );
73  virtual const DtString& origDBName() const;
74 
75  // Set/Get the Master Database name
76  virtual void setMasterDatabaseName( const DtString& cmd );
77  virtual const DtString& masterDatabaseName() const;
78 
79  // Set/Get the Server name
80  virtual void setServerName( const DtString& cmd );
81  virtual const DtString& serverName() const;
82 
83  // Set/Get the User ID
84  virtual void setUserID( const DtString& cmd );
85  virtual const DtString& userID() const;
86 
87  // Set/Get the Password string
88  virtual void setPassword( const DtString& cmd );
89  virtual const DtString& password() const;
90 
91  // Set/Get the Other arguments
92  virtual void setOtherArgs( const DtString& cmd );
93  virtual const DtString& otherArgs() const;
94 
95  // Set/Get the User-defined parameters string
96  virtual void setUserParametersString( const DtString& cmd );
97  virtual const DtString& userParametersString() const;
98 
99  // Set/Get the Map Datum string
100  virtual void setMapDatumString( const DtString& cmd );
101  virtual const DtString& mapDatumString() const;
102 
103  static void initValue( const DtString& srcStr, DtString& valStr );
104 
105 protected:
106  virtual void setDriver( const DtString& cmd );
107  virtual void setDSNKeyword( const DtString& cmd );
108  virtual void setDBKeyword( const DtString& cmd );
109  virtual void setServerKeyword( const DtString& cmd );
110  virtual void setUserKeyword( const DtString& cmd );
111  virtual void setPasswdKeyword( const DtString& cmd );
112 
130 };

Document ID: Generated on Sun Dec 15 18:04:30 EST 2013 from SVN revision 134418
Copyright © 2005-2012 VT MÄK. All Rights Reserved (www.mak.com)