Class CClient#
Defined in File client.h
Inheritance Relationships#
Base Types#
public sdv::CSdvObject
(Class CSdvObject)public sdv::IObjectControl
(Struct IObjectControl)public sdv::com::IClientConnect
(Struct IClientConnect)
Class Documentation#
-
class CClient : public sdv::CSdvObject, public sdv::IObjectControl, public sdv::com::IClientConnect#
Client object.
Public Functions
-
virtual void Initialize(const sdv::u8string &ssObjectConfig) override#
Initialize the object. Overload of sdv::IObjectControl::Initialize.
- Parameters:
ssObjectConfig – [in] Optional configuration string.
-
virtual sdv::EObjectStatus GetStatus() const override#
Get the current status of the object. Overload of sdv::IObjectControl::GetStatus.
- Returns:
Return the current status of the object.
-
virtual void SetOperationMode(sdv::EOperationMode eMode) override#
Set the component operation mode. Overload of sdv::IObjectControl::SetOperationMode.
- Parameters:
eMode – [in] The operation mode, the component should run in.
-
virtual void Shutdown() override#
Shutdown called before the object is destroyed. Overload of sdv::IObjectControl::Shutdown.
-
virtual sdv::IInterfaceAccess *Connect(const sdv::u8string &ssConnectString) override#
Connect to a remote system using the connection string to contact the system. Overload of sdv::com::IClientConnect::Connect.
Remark
After a successful connection, the ConnectClient utility is not needed any more.
- Parameters:
ssConnectString – [in] Optional connection string to use for connection. If not provided, the connection will automatically get the connection ID from the app-control service (default). The connection string for a local connection can be of the form:
And the following can be used for a remote connection:[Client] Type = "Local" Instance = 1234 # Optional: only use when connecting to a system with a different instance ID.
[Client] Type = "Remote" Interface = "127.0.0.1" Port = 2000
- Returns:
Returns an interface to the repository of the remote system or a NULL pointer if not found.
-
void Disconnect(sdv::com::TConnectionID tConnectionID)#
Disconnect and remove the remote repository object.
- Parameters:
tConnectionID – [in] The ID of the connection.
-
virtual void Initialize(const sdv::u8string &ssObjectConfig) override#