X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali-toolkit%2Fdevel-api%2Fbuilder%2Ftree-node.h;h=0bc10cb1a92d0e6360a23d1050f6e4fb782707b9;hb=b514a4671789bee2f03b0177393b9a21f62ac2c3;hp=893caee8302f636e6d7a550a51523d6a4bbe7e6b;hpb=f58b8383147de70affa1e3949cf1c6757d705d3c;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/dali-toolkit/devel-api/builder/tree-node.h b/dali-toolkit/devel-api/builder/tree-node.h index 893caee..0bc10cb 100644 --- a/dali-toolkit/devel-api/builder/tree-node.h +++ b/dali-toolkit/devel-api/builder/tree-node.h @@ -2,7 +2,7 @@ #define __DALI_SCRIPT_TREE_NODE_H__ /* - * Copyright (c) 2015 Samsung Electronics Co., Ltd. + * Copyright (c) 2018 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. @@ -21,7 +21,7 @@ // EXTERNAL INCLUDES #include // pair #include -#include +#include namespace Dali { @@ -42,7 +42,7 @@ class TreeNodeManipulator; * TreeNode does not own its string data which is held by a container eg JsonParser * Modification operations should be done through a container. */ -class DALI_IMPORT_API TreeNode +class DALI_TOOLKIT_API TreeNode { public: /* @@ -56,7 +56,7 @@ public: STRING, INTEGER, FLOAT, - BOOLEAN, + BOOLEAN }; /* @@ -105,11 +105,6 @@ public: * pointer semantics */ KeyNodePair operator*(); - - /* - * pointer semantics - */ - KeyNodePair operator->(); private: TreeNode* mNode; }; @@ -187,13 +182,20 @@ public: bool HasSubstitution() const; /* - * Gets a child of the node - * @param name The name of the child + * Gets a child of the node (using case sensitive matching) + * @param name The name of the child. * @return The child if found, else NULL */ const TreeNode* GetChild(const std::string& name) const; /* + * Gets a child of the node (using case insensitive matching) + * @param name The name of the child in lower case + * @return The child if found, else NULL + */ + const TreeNode* GetChildIgnoreCase(const std::string& name) const; + + /* * Recursively search for a child of the node * @param name The name of the child * @return The child if found, else NULL