Replacing committers
[ric-plt/xapp-frame-cpp.git] / src / json / jhash.hpp
index 2963610..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 );
@@ -55,7 +57,7 @@ class Jhash {
                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