FME Server C++ API 3.0
|
00001 #ifndef _IFMESERVERCONNECTIONINFO_H 00002 #define _IFMESERVERCONNECTIONINFO_H 00003 00058 #include <fmeservertypes.h> 00059 00060 class IFMEServerString; 00061 00062 00063 //=========================================================================== 00064 // Abstract Interface Class -- all methods are virtual and it has no data 00065 class IFMEServerConnectionInfo 00066 { 00067 public: 00068 00069 //------------------------------------------------------------------- 00072 virtual void getHost(IFMEServerString& host) const = 0; 00073 00074 //------------------------------------------------------------------- 00077 virtual FME_UInt16 getPort() const = 0; 00078 00079 //------------------------------------------------------------------- 00083 virtual void getUserID(IFMEServerString& userID) const = 0; 00084 00085 //------------------------------------------------------------------- 00089 virtual void getPassword(IFMEServerString& password) const = 0; 00090 00091 //------------------------------------------------------------------- 00095 virtual FMEServerConnectionType getType() const = 0; 00096 00097 //------------------------------------------------------------------- 00101 virtual void getURL(IFMEServerString& url) const = 0; 00102 00103 //------------------------------------------------------------------- 00107 virtual void getToken(IFMEServerString& token) const = 0; 00108 00109 //------------------------------------------------------------------- 00113 virtual FMEServerCredentialType getCredentialType() const = 0; 00114 00115 //------------------------------------------------------------------- 00122 virtual FME_Boolean getDirective(const IFMEServerString& key, 00123 IFMEServerString& value) const = 0; 00124 00125 protected: 00126 00127 // ----------------------------------------------------------------------- 00128 // No one should be creating an instance of this directly, so we 00129 // make the constructor protected. 00130 IFMEServerConnectionInfo() {} 00131 00132 // ----------------------------------------------------------------------- 00133 // No one should be destroying an instance of this directly, so we 00134 // make the destructor protected. 00135 virtual ~IFMEServerConnectionInfo() {} 00136 00137 private: 00138 00139 // ----------------------------------------------------------------------- 00140 // The copy constructor is not implemented. 00141 IFMEServerConnectionInfo(const IFMEServerConnectionInfo &other); 00142 00143 //--------------------------------------------------------------- 00144 // The assignment operator is not implemented. 00145 IFMEServerConnectionInfo &operator=(const IFMEServerConnectionInfo &other); 00146 }; 00147 00148 00149 #endif