]> pilppa.org Git - libplpbus.git/blobdiff - src/plpbus/BusMessage.hh
memory leak fixes
[libplpbus.git] / src / plpbus / BusMessage.hh
index 2ebd63581dd296a5e6b78edc5c43db591795298d..3a2cd093cd083118a3845fe5d7ef4fada2459ea3 100644 (file)
 
 #include <string>
 
+#include "RequestResponseBus.hh"
+
+using namespace plpbus_orb;
+
 namespace plpbus {
        class BusMessage
        {
                public:
-                       void    *_dataItemSeq;
+                       DataItemSequence        *_dataItemSeq;
 
                        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 +35,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();