Worked on ZString, MString and JString

This commit is contained in:
Brad Arant committed 2023-10-05 17:57:01 -07:00
1 parent b873bbf164
commit 8a9c1c3bd7
14 files changed
+146 -42

No files matched your search

+14 -1
View File
@@ -13,6 +13,20 @@ namespace coreutils {
/// The [] operator is overriden from the ZString and provides a method to
/// access the objects elements using a named path as the index to the items.
///
/// JString default constructor will create an empty JString object pointing
/// to an empty string.
///
/// Use a constructor or assignment operator to initialize a JString to an
/// initial JSON string.
///
/// Several constructors are available including a handle to a std::FILE
/// object to initialize the JSON string. On destruction the file is saved back.
///
/// The [] operator can be used to access elements within the JSON string.
/// Use:
/// jstring["key"] = "value";
/// std::cout << jstring["key"];
///
class JString : public MString {
@@ -34,7 +48,6 @@ namespace coreutils {
void operator=(ZString &value);
JString& operator=(const char *value);
// ZString operator[](const char *path);
JString& operator[](const char *path);
// operator const ZString () const {
// return *this;