mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-30 21:50:47 +01:00
- VS2012: build/tests
- JSON: style and exceptions catch by ref fix - NumberParser: case-insensitive hex parsing - Dynamic::Var: const std::string& cast operator specialization (coaxing std::string ctor) - LocalDateTime: strftime fix (buffer too small for full tz string, use %Z instead of %z - makes no difference on windows but is more portable) - small buildwin.cmd vsvars32.bat call fix
This commit is contained in:
@@ -43,21 +43,22 @@
|
||||
#include <stack>
|
||||
|
||||
#include "Poco/JSON/JSON.h"
|
||||
#include "Poco/DynamicAny.h"
|
||||
#include "Poco/Dynamic/Var.h"
|
||||
#include "Poco/SharedPtr.h"
|
||||
#include "Poco/Path.h"
|
||||
#include "Poco/Timestamp.h"
|
||||
|
||||
|
||||
namespace Poco
|
||||
{
|
||||
namespace JSON
|
||||
{
|
||||
namespace Poco {
|
||||
namespace JSON {
|
||||
|
||||
|
||||
class MultiPart;
|
||||
|
||||
|
||||
POCO_DECLARE_EXCEPTION(JSON_API, JSONTemplateException, Poco::Exception)
|
||||
|
||||
|
||||
class JSON_API Template
|
||||
/// Template is a template engine which uses JSON as input
|
||||
/// for generating output. There are commands for
|
||||
@@ -125,7 +126,7 @@ public:
|
||||
/// Returns the time when the template was parsed
|
||||
|
||||
|
||||
void render(const DynamicAny& data, std::ostream& out) const;
|
||||
void render(const Dynamic::Var& data, std::ostream& out) const;
|
||||
/// Renders the template and send the output to the stream
|
||||
|
||||
|
||||
@@ -177,6 +178,6 @@ inline Timestamp Template::parseTime() const
|
||||
return _parseTime;
|
||||
}
|
||||
|
||||
}} // Namespace Poco::JSON
|
||||
}} // namespace Poco::JSON
|
||||
|
||||
#endif // JSON_JSONTemplate_INCLUDED
|
||||
|
||||
Reference in New Issue
Block a user