X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali-toolkit%2Finternal%2Fbuilder%2Ftree-node-manipulator.h;h=cc9e98b6dc63d7d5c166af6adadebd442a4b8707;hb=ec1db95268e1cf8e8bd893027d45a19c64b32848;hp=838c2cb4f7432bd2bcbd31ea9a8904b77b80581b;hpb=820c66e71516e7a25600b8b5de2e84b5d44d8ff3;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/dali-toolkit/internal/builder/tree-node-manipulator.h b/dali-toolkit/internal/builder/tree-node-manipulator.h index 838c2cb..cc9e98b 100644 --- a/dali-toolkit/internal/builder/tree-node-manipulator.h +++ b/dali-toolkit/internal/builder/tree-node-manipulator.h @@ -1,8 +1,8 @@ -#ifndef __DALI_SCRIPT_TREE_NODE_MANIPULATOR_H__ -#define __DALI_SCRIPT_TREE_NODE_MANIPULATOR_H__ +#ifndef DALI_SCRIPT_TREE_NODE_MANIPULATOR_H +#define DALI_SCRIPT_TREE_NODE_MANIPULATOR_H /* - * Copyright (c) 2014 Samsung Electronics Co., Ltd. + * Copyright (c) 2019 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. @@ -23,7 +23,7 @@ #include #include -#include +#include #include // INTERNAL INCLUDES @@ -191,21 +191,21 @@ private: /* * Do write to string stream */ - void DoWrite(const TreeNode *value, std::ostream& output, int ident) const; + void DoWrite(const TreeNode *value, std::ostream& output, int level, int ident, bool groupChildren) const; }; /* * Collect nodes */ -struct CollectNodes : public std::unary_function +struct CollectNodes { CollectNodes() {}; /* * Call operator to add nodes to the list */ - result_type operator()(argument_type& n) + void operator()(TreeNode*& n) { DALI_ASSERT_DEBUG(n && "Operation on NULL JSON node"); nodes.push_back(n); @@ -241,7 +241,7 @@ void DepthFirst( TreeNode* node, Operation& operation) * @param tree The tree to search * @return the TreeNode if found, else NULL */ -const TreeNode* FindIt(const std::string& childName, const TreeNode* tree); +const TreeNode* FindIt(std::string_view childName, const TreeNode* tree); /* * Copy string to a buffer @@ -260,4 +260,4 @@ char *CopyString( const char *fromString, VectorCharIter& iter, const VectorChar } // namespace Dali -#endif // __DALI_SCRIPT_TREE_NODE_MANIPULATOR_H__ +#endif // DALI_SCRIPT_TREE_NODE_MANIPULATOR_H