Hi, Mikko.
Could you please guide me to a solution how to add a list of methods for my own interface data class and a list of data names and a list of method names in c++ libraries.
I believe that the easier way to do it is if you take the CGXDLMSData object and modify it for your needs.
Implementing the methods you can look for the CGXDLMSRegister object and implement the Invoke-method and do what you need to do.
Thanks for the quick reply,
I have already created the class with the main methods by inheriting from the CGXDLMSObject class.
As I understand the Invoke method adds a list of methods, but what about the analogue of methods from NET libraries?
GetNames and GetMethodNames methods are not implemented for C++. The purpose of those methods is only to give a list of attributes and method names for developing purposes.
For client-side, you can add your methods like CGXDLMSRegister::Reset. On the server-side Invoke is called and you do what you want to do.
Hi,
Hi,
I believe that the easier way to do it is if you take the CGXDLMSData object and modify it for your needs.
Implementing the methods you can look for the CGXDLMSRegister object and implement the Invoke-method and do what you need to do.
BR,
Mikko
Thanks for the quick reply,
Thanks for the quick reply,
I have already created the class with the main methods by inheriting from the CGXDLMSObject class.
As I understand the Invoke method adds a list of methods, but what about the analogue of methods from NET libraries?
/// <inheritdoc cref = "IGXDLMSBase.GetNames" />
string [] IGXDLMSBase.GetNames ()
{
return new string [] {Internal.GXCommon.GetLogicalNameString (),
"Time",
"Time Zone",
"Status",
"Begin",
"End",
"Deviation",
"Enabled",
"Clock Base"
};
}
/// <inheritdoc cref = "IGXDLMSBase.GetMethodNames" />
string [] IGXDLMSBase.GetMethodNames ()
{
return new string [] {"Adjust to quarter", "Adjust to measuring period",
"Adjust to minute", "Adjust to preset time", "Preset adjusting time", "Shift time"};
}
Hi,
Hi,
GetNames and GetMethodNames methods are not implemented for C++. The purpose of those methods is only to give a list of attributes and method names for developing purposes.
For client-side, you can add your methods like CGXDLMSRegister::Reset. On the server-side Invoke is called and you do what you want to do.
BR,
Mikko