X-Git-Url: http://pilppa.org/gitweb/?a=blobdiff_plain;f=src%2Fplpbus%2FBusMessage.hh;h=05fba365c5ad78ae1aee095de9e2d5c8421b2773;hb=a25ed5045dab6becd0337ce3ae3faa2f1c95f562;hp=2ebd63581dd296a5e6b78edc5c43db591795298d;hpb=ec1f31e442d43a1e500a3ba7d23ab881bd8874be;p=libplpbus.git diff --git a/src/plpbus/BusMessage.hh b/src/plpbus/BusMessage.hh index 2ebd635..05fba36 100644 --- a/src/plpbus/BusMessage.hh +++ b/src/plpbus/BusMessage.hh @@ -19,7 +19,8 @@ namespace plpbus { BusMessage(long type_param); BusMessage(long type_param, const char *arg_name_param, const char *arg_string_value_param); virtual ~BusMessage(); - int add_string_parameter(std::string arg_name_param, std::string string_value_param); + int add_cstring_parameter(const char *arg_name_param, const char *value_param); + int add_string_parameter(std::string arg_name_param, std::string value_param); int add_long_parameter(std::string arg_name_param, long value_param); int add_int_parameter(std::string arg_name_param, int value_param); int add_double_parameter(std::string arg_name_param, double value_param); @@ -30,6 +31,7 @@ namespace plpbus { int get_int_parameter(std::string arg_name_param, int *err_flg); double get_double_parameter(std::string arg_name_param, int *err_flg); float get_float_parameter(std::string arg_name_param, int *err_flg); + unsigned long get_parameter_count(); void printout(); protected: BusMessage();