Changes to MString to add insert and remove methods.
This commit is contained in:
1 parent
88d51cb598
commit
8f8c14d7b2
6 files changed
+103
-1
No files matched your search
@@ -0,0 +1,31 @@
|
||||
#ifndef __JString_h__
|
||||
#define __JString_h__
|
||||
|
||||
#include "MString.h"
|
||||
#include <iostream>
|
||||
#include <sstream>
|
||||
|
||||
namespace coreutils {
|
||||
|
||||
///
|
||||
/// Use the JString object when you need a JSON interface to C++. JString uses
|
||||
/// an MString to store a JSON string representing the object(s) contained.
|
||||
/// 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.
|
||||
///
|
||||
|
||||
class JString : public MString {
|
||||
|
||||
public:
|
||||
|
||||
MString & operator[](char *key);
|
||||
|
||||
MString & operator[](ZString &key);
|
||||
|
||||
MString & operator[](std::string key);
|
||||
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
Reference in new issue
Block a user