Added istream/ostream funcs/operators

This commit is contained in:
Christopher Dunn
2007-03-23 09:57:01 +00:00
parent 2370789d67
commit 56a1d6cbf5
5 changed files with 82 additions and 1 deletions

View File

@@ -4,6 +4,7 @@
# include "value.h"
# include <vector>
# include <string>
# include <ostream>
namespace Json {
@@ -68,7 +69,7 @@ namespace Json {
public: // overridden from Writer
/** \brief Serialize a Value in <a HREF="http://www.json.org">JSON</a> format.
* \param root Value to serialize.
* \return String containing the JSON document that represent the root value.
* \return String containing the JSON document that represents the root value.
*/
virtual std::string write( const Value &root );
@@ -102,6 +103,10 @@ namespace Json {
std::string JSON_API valueToString( bool value );
std::string JSON_API valueToQuotedString( const char *value );
/// \brief Output using the StyledWriter.
/// \see Json::operator>>()
std::ostream& operator<<( std::ostream&, const Value &root );
} // namespace Json