mirror of
https://github.com/VCMP-SqMod/SqMod.git
synced 2025-07-03 23:47:12 +02:00
Update POCO library.
This commit is contained in:
6
vendor/POCO/JSON/include/Poco/JSON/Array.h
vendored
6
vendor/POCO/JSON/include/Poco/JSON/Array.h
vendored
@ -46,7 +46,7 @@ class JSON_API Array
|
||||
/// Array::Ptr arr = result.extract<Array::Ptr>();
|
||||
/// Object::Ptr object = arr->getObject(0); // object == {\"test\" : 0}
|
||||
/// int i = object->getElement<int>("test"); // i == 0;
|
||||
/// Object::Ptr subObject = *arr->getObject(1); // subObject == {\"test\" : 0}
|
||||
/// Object::Ptr subObject = arr->getObject(1); // subObject == {\"test\" : 0}
|
||||
/// Array subArr::Ptr = subObject->getArray("test1"); // subArr == [1, 2, 3]
|
||||
/// i = result = subArr->get(0); // i == 1;
|
||||
///
|
||||
@ -379,7 +379,7 @@ public:
|
||||
void convert(std::string& s) const
|
||||
{
|
||||
std::ostringstream oss;
|
||||
_val->stringify(oss, 2);
|
||||
_val->stringify(oss);
|
||||
s = oss.str();
|
||||
}
|
||||
|
||||
@ -513,7 +513,7 @@ public:
|
||||
void convert(std::string& s) const
|
||||
{
|
||||
std::ostringstream oss;
|
||||
_val.stringify(oss, 2);
|
||||
_val.stringify(oss);
|
||||
s = oss.str();
|
||||
}
|
||||
|
||||
|
2
vendor/POCO/JSON/include/Poco/JSON/Handler.h
vendored
2
vendor/POCO/JSON/include/Poco/JSON/Handler.h
vendored
@ -40,7 +40,7 @@ public:
|
||||
|
||||
Handler();
|
||||
/// Creates an empty Handler.
|
||||
|
||||
|
||||
virtual ~Handler();
|
||||
/// Destroys the Handler.
|
||||
|
||||
|
4
vendor/POCO/JSON/include/Poco/JSON/Object.h
vendored
4
vendor/POCO/JSON/include/Poco/JSON/Object.h
vendored
@ -570,7 +570,7 @@ public:
|
||||
void convert(std::string& s) const
|
||||
{
|
||||
std::ostringstream oss;
|
||||
_val->stringify(oss, 2);
|
||||
_val->stringify(oss);
|
||||
s = oss.str();
|
||||
}
|
||||
|
||||
@ -712,7 +712,7 @@ public:
|
||||
void convert(std::string& s) const
|
||||
{
|
||||
std::ostringstream oss;
|
||||
_val.stringify(oss, 2);
|
||||
_val.stringify(oss);
|
||||
s = oss.str();
|
||||
}
|
||||
|
||||
|
@ -45,7 +45,7 @@ public:
|
||||
|
||||
virtual void reset();
|
||||
/// Resets the handler state.
|
||||
|
||||
|
||||
void startObject();
|
||||
/// Handles a '{'; a new object is started.
|
||||
|
||||
|
@ -78,7 +78,7 @@ public:
|
||||
void value(unsigned v);
|
||||
/// An unsigned value is read. This will only be triggered if the
|
||||
/// value cannot fit into a signed int.
|
||||
|
||||
|
||||
#if defined(POCO_HAVE_INT64)
|
||||
void value(Int64 v);
|
||||
/// A 64-bit integer value is read; it will be written to the output.
|
||||
|
24
vendor/POCO/JSON/include/Poco/JSON/Query.h
vendored
24
vendor/POCO/JSON/include/Poco/JSON/Query.h
vendored
@ -32,10 +32,10 @@ class JSON_API Query
|
||||
{
|
||||
public:
|
||||
Query(const Dynamic::Var& source);
|
||||
/// Creates a Query/
|
||||
/// Creates a Query.
|
||||
///
|
||||
/// Source must be JSON Object, Array, Object::Ptr,
|
||||
/// Array::Ptr or empty Var. Any other type will trigger throwing of
|
||||
/// Array::Ptr or empty Var. Any other type will trigger throwing of
|
||||
/// InvalidArgumentException.
|
||||
///
|
||||
/// Creating Query holding Ptr will typically result in faster
|
||||
@ -45,9 +45,9 @@ public:
|
||||
/// Destroys the Query.
|
||||
|
||||
Object::Ptr findObject(const std::string& path) const;
|
||||
/// Search for an object.
|
||||
/// Search for an object.
|
||||
///
|
||||
/// When the object can't be found, a zero Ptr is returned;
|
||||
/// When the object can't be found, a zero Ptr is returned;
|
||||
/// otherwise, a shared pointer to internally held object
|
||||
/// is returned.
|
||||
/// If object (as opposed to a pointer to object) is held
|
||||
@ -55,16 +55,16 @@ public:
|
||||
/// returned; this may be expensive operation.
|
||||
|
||||
Object& findObject(const std::string& path, Object& obj) const;
|
||||
/// Search for an object.
|
||||
/// Search for an object.
|
||||
///
|
||||
/// If object is found, it is assigned to the
|
||||
/// Object through the reference passed in. When the object can't be
|
||||
/// Object through the reference passed in. When the object can't be
|
||||
/// found, the provided Object is emptied and returned.
|
||||
|
||||
Array::Ptr findArray(const std::string& path) const;
|
||||
/// Search for an array.
|
||||
/// Search for an array.
|
||||
///
|
||||
/// When the array can't be found, a zero Ptr is returned;
|
||||
/// When the array can't be found, a zero Ptr is returned;
|
||||
/// otherwise, a shared pointer to internally held array
|
||||
/// is returned.
|
||||
/// If array (as opposed to a pointer to array) is held
|
||||
@ -72,10 +72,10 @@ public:
|
||||
/// returned; this may be expensive operation.
|
||||
|
||||
Array& findArray(const std::string& path, Array& obj) const;
|
||||
/// Search for an array.
|
||||
/// Search for an array.
|
||||
///
|
||||
/// If array is found, it is assigned to the
|
||||
/// Object through the reference passed in. When the array can't be
|
||||
/// Object through the reference passed in. When the array can't be
|
||||
/// found, the provided Object is emptied and returned.
|
||||
|
||||
Dynamic::Var find(const std::string& path) const;
|
||||
@ -99,8 +99,8 @@ public:
|
||||
{
|
||||
result = value.convert<T>();
|
||||
}
|
||||
catch (...)
|
||||
{
|
||||
catch (...)
|
||||
{
|
||||
}
|
||||
}
|
||||
return result;
|
||||
|
10
vendor/POCO/JSON/include/Poco/JSON/Template.h
vendored
10
vendor/POCO/JSON/include/Poco/JSON/Template.h
vendored
@ -44,19 +44,19 @@ class JSON_API Template
|
||||
/// conditional output, etc.
|
||||
///
|
||||
/// All text is send to the outputstream. A command is placed
|
||||
/// between
|
||||
/// between
|
||||
/// <?
|
||||
/// and
|
||||
/// and
|
||||
/// ?>
|
||||
/// ----
|
||||
///
|
||||
/// These are the available commands:
|
||||
///
|
||||
///
|
||||
/// <? echo query ?>
|
||||
/// ----
|
||||
/// The result of the query is send to the output stream
|
||||
/// This command can also be written as <?= query ?>
|
||||
///
|
||||
///
|
||||
/// <? if query ?> <? else ?> <? endif ?>
|
||||
/// ----
|
||||
/// When the result of query is true, all the text between
|
||||
@ -70,7 +70,7 @@ class JSON_API Template
|
||||
/// ----
|
||||
/// This can be used to check the existence of the value.
|
||||
/// Use this for example when a zero value is ok (which returns false for <? if ?>.
|
||||
///
|
||||
///
|
||||
/// <? for variable query ?> <? endfor ?>
|
||||
/// ----
|
||||
/// The result of the query must be an array. For each element
|
||||
|
@ -42,7 +42,7 @@ public:
|
||||
TemplateCache();
|
||||
/// Creates an empty TemplateCache.
|
||||
///
|
||||
/// The cache must be created and not destroyed
|
||||
/// The cache must be created and not destroyed
|
||||
/// as long as it is used.
|
||||
|
||||
virtual ~TemplateCache();
|
||||
|
Reference in New Issue
Block a user