Replacing committers
[ric-plt/xapp-frame-cpp.git] / src / json / jhash.hpp
index 3ff6498..8394acf 100644 (file)
 
 #include <string>
 
+namespace xapp {
+
 // ------------------------------------------------------------------------
 
 class Jhash {
        private:
-               void*   st;                                                     // the resulting symbol table generated by parse
-               void*   master_st;                                      // if user switches to a sub-blob; this tracks the original root st
+               void*   st = NULL;                                                      // the resulting symbol table generated by parse
+               void*   master_st = NULL;                                       // if user switches to a sub-blob; this tracks the original root st
 
                Jhash& operator=( const Jhash& soi );   // jhashes cannot be copied because of underlying symbol table goo
                Jhash( const Jhash& soi );
@@ -47,15 +49,15 @@ class Jhash {
        public:
 
                Jhash( const char* jblob );                                     // builder
-               //Jhash( Message&& soi );                                               // mover
-               //Jhash& operator=( Message&& soi );                    // move operator
+               Jhash( Jhash&& soi );                                           // mover
+               Jhash& operator=( Jhash&& soi );                        // move operator
                ~Jhash();                                                                       // destruction
 
                bool Set_blob( const char* name );                                      // blob/root selection
                void Unset_blob( );
                bool Set_blob_ele( const char* name, int eidx );        // set from an array element
 
-               bool Parse_errors( );
+               const bool Parse_errors( );
                void Dump();
 
                std::string String( const char* name );                         // value fetching
@@ -83,4 +85,6 @@ class Jhash {
 };
 
 
+
+} // namespace
 #endif