X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali-toolkit%2Finternal%2Fbuilder%2Fbuilder-impl-debug.h;h=14c1c1756fb9f05cb4d00dc59fdd94a9e17aa114;hb=c14e39b4db65670dcc6c17f03a95035f364c80e5;hp=8d30929cf0f8e003ec2cd492406bb410350a5d46;hpb=12b5da1b6e2e4b88f3cdb24b81d1b54b68b5f4f1;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/dali-toolkit/internal/builder/builder-impl-debug.h b/dali-toolkit/internal/builder/builder-impl-debug.h index 8d30929..14c1c17 100644 --- a/dali-toolkit/internal/builder/builder-impl-debug.h +++ b/dali-toolkit/internal/builder/builder-impl-debug.h @@ -2,7 +2,7 @@ #define DALI_TOOLKIT_INTERNAL_BUILDER_IMPL_DEBUG_H /* - * Copyright (c) 2016 Samsung Electronics Co., Ltd. + * Copyright (c) 2021 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. @@ -17,10 +17,10 @@ * limitations under the License. */ -#include #include +#include -#if defined( DEBUG_ENABLED ) +#if defined(DEBUG_ENABLED) namespace Dali { @@ -28,36 +28,33 @@ namespace Toolkit { namespace Internal { - -#define DUMP_PARSE_TREE(parser) LogTree(parser) -#define DUMP_TEST_MAPPINGS(parser) \ - OptionalChild mappings = IsChild( parser.GetRoot(), KEYNAME_MAPPINGS ); \ - if( mappings ) \ - { \ - std::ostringstream oss; \ - oss << "Mappings: {" << std::endl; \ - for( TreeNode::ConstIterator iter = (*mappings).CBegin(); iter != (*mappings).CEnd(); ++iter ) \ - { \ - Property::Value value; \ - bool converted = GetPropertyMap(*mappings, (*iter).first, Property::NONE, value ); \ - if( converted ) \ - { \ - oss << " " << (*iter).first << ":" << value << std::endl; \ - } \ - } \ - oss << "}" << std::endl; \ - DALI_LOG_INFO( gFilterScript, Debug::Verbose, oss.str().c_str() ); \ +#define DUMP_PARSE_TREE(parser) LogTree(parser) +#define DUMP_TEST_MAPPINGS(parser) \ + OptionalChild mappings = IsChild(parser.GetRoot(), KEYNAME_MAPPINGS); \ + if(mappings) \ + { \ + std::ostringstream oss; \ + oss << "Mappings: {" << std::endl; \ + for(TreeNode::ConstIterator iter = (*mappings).CBegin(); iter != (*mappings).CEnd(); ++iter) \ + { \ + Property::Value value; \ + bool converted = GetPropertyMap(*mappings, (*iter).first, Property::NONE, value); \ + if(converted) \ + { \ + oss << " " << (*iter).first << ":" << value << std::endl; \ + } \ + } \ + oss << "}" << std::endl; \ + DALI_LOG_INFO(gFilterScript, Debug::Verbose, oss.str().c_str()); \ } +void LogTree(const Toolkit::JsonParser& mParser); -void LogTree( const Toolkit::JsonParser& mParser ); - -std::string PropertyValueToString( const Property::Value& value ); - +std::string PropertyValueToString(const Property::Value& value); -} // Internal -} // Toolkit -} // Dali +} // namespace Internal +} // namespace Toolkit +} // namespace Dali #else