1 #ifndef __DALI_TOOLKIT_INTERNAL_SCRIPT_H__
2 #define __DALI_TOOLKIT_INTERNAL_SCRIPT_H__
5 * Copyright (c) 2014 Samsung Electronics Co., Ltd.
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
11 * http://www.apache.org/licenses/LICENSE-2.0
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
22 #include <dali-toolkit/public-api/scripting/script.h>
23 #include <dali-toolkit/public-api/scripting/script-plugin.h>
38 * @copydoc Toolkit::Script
40 class Script : public Dali::BaseObject
50 * @copydoc Toolkit::Script::ExecuteFile
52 void ExecuteFile( const std::string& filename );
57 * @brief virtual destructor
64 * @brief Undefined copy constructor
66 Script(const Script&);
69 * @brief Undefined assignment operator
71 Script& operator=(const Script& rhs);
75 ScriptPlugin* mPlugin; ///< plugin
79 } // namespace Internal
81 inline Internal::Script& GetImpl(Dali::Toolkit::Script& obj)
83 DALI_ASSERT_ALWAYS(obj);
85 Dali::BaseObject& handle = obj.GetBaseObject();
87 return static_cast<Internal::Script&>(handle);
90 inline const Internal::Script& GetImpl(const Dali::Toolkit::Script& obj)
92 DALI_ASSERT_ALWAYS(obj);
94 const Dali::BaseObject& handle = obj.GetBaseObject();
96 return static_cast<const Internal::Script&>(handle);
100 } // namespace Toolkit
104 #endif // __DALI_TOOLKIT_INTERNAL_SCRIPT_H__