-#ifndef __DALI_JSON_PARSER_H__
-#define __DALI_JSON_PARSER_H__
+#ifndef DALI_JSON_PARSER_H
+#define DALI_JSON_PARSER_H
/*
- * Copyright (c) 2015 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2020 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
*/
// EXTERNAL INCLUDES
-#include <string>
+#include <dali/public-api/object/base-handle.h>
#include <list>
#include <ostream>
-#include <dali/public-api/object/base-handle.h>
+#include <string>
// INTERNAL INCLUDES
#include <dali-toolkit/devel-api/builder/tree-node.h>
namespace Dali
{
-
namespace Toolkit
{
-
namespace Internal DALI_INTERNAL
{
class JsonParser;
/*
* Parses JSON
*/
-class DALI_IMPORT_API JsonParser : public BaseHandle
+class DALI_TOOLKIT_API JsonParser : public BaseHandle
{
public:
-
/*
* Create new parser
* @return JsonParser
* @param[in] handle Handle to an object
* @return A handle to a JsonParser or an uninitialized handle
*/
- static JsonParser DownCast( BaseHandle handle );
+ static JsonParser DownCast(BaseHandle handle);
/*
* Parse the source and construct a node tree.
* Subsequent calls to this function will merge the trees.
* @param source The json source to parse
- * @return zero if parsed okay, otherwise an error.
+ * @return true if parsed okay, otherwise an error.
*/
- int Parse(const std::string& source);
+ bool Parse(const std::string& source);
/*
* Optimize memory usage by packing strings
void Write(std::ostream& output, int indent) const;
public: // Not intended for application developers
-
/**
* This constructor is used by Dali New() methods
* @param [in] parser A pointer to a newly allocated Dali resource
} // namespace Dali
-
-#endif // __DALI_JSON_PARSER_H__
+#endif // DALI_JSON_PARSER_H