databaseParameters.h
Go to the documentation of this file.
00001 /******************************************************************************
00002 ** Copyright (c) 1992-2010 VT MAK
00003 ** All rights reserved.
00004 ******************************************************************************/
00005 
00008 
00009 #ifndef databaseParameters_H_
00010 #define databaseParameters_H_
00011 
00012 #include "vlDatabase.h"
00013 
00014 class DtString;
00015 
00017 class DT_DLL_VLDB DtDatabaseParameters
00018 {
00019 public:
00020 
00022    DtDatabaseParameters();
00023 
00025    virtual ~DtDatabaseParameters();
00026 
00027 private:
00029    DtDatabaseParameters(const DtDatabaseParameters&);
00030    DtDatabaseParameters& operator=(const DtDatabaseParameters&);
00032 public:
00033    
00034    // Set/Get the Driver command
00035    virtual const DtString& driver() const = 0;
00036 
00037    // ! \brief Keywords
00039 
00040    // Set/Get the DSN keyword
00041    virtual const DtString& DSNKeyword() const = 0;
00042 
00043    // Set/Get the Database keyword   
00044    virtual const DtString& DBKeyword() const = 0;
00045 
00046    // Set/Get the Server keyword
00047    virtual const DtString& serverKeyword() const = 0;
00048 
00049    // Set/Get the User keyword
00050    virtual const DtString& userKeyword() const = 0;
00051 
00052    // Set/Get the Password keyword   
00053    virtual const DtString& passwordKeyword() const = 0;
00054 
00056 
00057    // Set/Get the DSN name
00058    virtual void setDataSourceName( const DtString& cmd ) = 0;
00059    virtual const DtString& dataSourceName() const = 0;
00060 
00061    // Set/Get the Master DSN name
00062    virtual void setMasterDataSourceName( const DtString& cmd ) = 0;
00063    virtual const DtString& masterDataSourceName() const = 0;
00064 
00065    // Set/Get the Database name
00066    virtual void setDatabaseName( const DtString& cmd ) = 0;
00067    virtual const DtString& databaseName() const = 0;
00068 
00069    // Set/Get the "Original" Database name
00070    virtual void setOrigDBName( const DtString& cmd ) = 0;
00071    virtual const DtString& origDBName() const = 0;
00072 
00073    // Set/Get the Master Database name
00074    virtual void setMasterDatabaseName( const DtString& cmd ) = 0;
00075    virtual const DtString& masterDatabaseName() const = 0;
00076 
00077 
00078    // Set/Get the Server name
00079    virtual void setServerName( const DtString& cmd ) = 0;
00080    virtual const DtString& serverName() const = 0;     
00081 
00082    // Set/Get the User ID
00083    virtual void setUserID( const DtString& cmd ) = 0;
00084    virtual const DtString& userID() const = 0;
00085 
00086    // Set/Get the Password string
00087    virtual void setPassword( const DtString& cmd ) = 0;
00088    virtual const DtString& password() const = 0;
00089 
00090    // Set/Get the Other arguments
00091    virtual void setOtherArgs( const DtString& cmd ) = 0;
00092    virtual const DtString& otherArgs() const = 0;
00093 
00094    // Set/Get the User-defined parameters string
00095    virtual void setUserParametersString( const DtString& cmd ) = 0;
00096    virtual const DtString& userParametersString() const = 0;
00097 
00098    // Set/Get the Map Datum string
00099    virtual void setMapDatumString( const DtString& cmd ) = 0;
00100    virtual const DtString& mapDatumString() const = 0;
00101 
00102 protected:
00103    virtual void setDriver( const DtString& cmd ) = 0;
00104    virtual void setDSNKeyword( const DtString& cmd ) = 0;
00105    virtual void setDBKeyword( const DtString& cmd ) = 0;
00106    virtual void setServerKeyword( const DtString& cmd ) = 0;
00107    virtual void setUserKeyword( const DtString& cmd ) = 0;
00108    virtual void setPasswdKeyword( const DtString& cmd ) = 0;
00109 
00110 };
00111 
00112 #endif

Document ID: Generated on Tue Oct 11 19:41:03 EDT 2011 from SVN revision 107422
Copyright © 2005-2011 VT MÄK Inc. All Rights Reserved (www.mak.com)