00001 // mdClientBehavior.h - xmlrpc-c C++ proxy class 00002 // Auto-generated by xml-rpc-api2cpp. 00003 00004 #ifndef _mdClientBehavior_H_ 00005 #define _mdClientBehavior_H_ 1 00006 00007 #include <xmlrpc-c/oldcppwrapper.hpp> 00008 00009 class mdClientBehavior { 00010 XmlRpcClient mClient; 00011 00012 public: 00013 mdClientBehavior (const XmlRpcClient& client) 00014 : mClient(client) {} 00015 mdClientBehavior (const std::string& server_url) 00016 : mClient(XmlRpcClient(server_url)) {} 00017 mdClientBehavior (const mdClientBehavior& o) 00018 : mClient(o.mClient) {} 00019 00020 mdClientBehavior& operator= (const mdClientBehavior& o) { 00021 if (this != &o) mClient = o.mClient; 00022 return *this; 00023 } 00024 00025 /* Send handle, and the SCPI subsystem or subcommand. Use empty string to get the full subsystem list. Reply will be an array of the available command/subsystems */ 00026 XmlRpcValue /*array*/ getCommandList (XmlRpcValue::int32 const int1, std::string const string2); 00027 00028 /* Send the full text of a SCPI command and the device handle of the device to process it. If the command is valid MD answers OK and in that case the command will be sent to specified device, otherwise answers error text. Whether or not the OK indicates anything other than a valid command depends on the configured behavior of the device. */ 00029 std::string command (XmlRpcValue::int32 const int1, XmlRpcValue /*struct*/ struct2); 00030 }; 00031 00032 #endif /* _mdClientBehavior_H_ */ 00033
1.5.6