Photon 1.0.0
Loading...
Searching...
No Matches
IScriptObject.hpp
Go to the documentation of this file.
1/*
2 * =====================================================================
3 *
4 * Photon
5 * Copyright Amlal EL Mahrouss, all rights reserved.
6 *
7 * =====================================================================
8 */
9
10#pragma once
11
14
15#include <dom/IDOMObject.hpp>
17
18#define PHOTON_SCRIPT_OBJECT (1)
19
20namespace Photon
21{
22 class IScriptObject;
23
24 class IScriptObject final : public IDOMObject
25 {
26 std::unique_ptr<ECMAVirtualMachine> m_vm;
27
29
30 public:
31 ~IScriptObject() override = default;
32
33 Int32 node_type() override;
35
36 Bool execute();
37 };
38} // namespace Photon
Definition IDOMObject.hpp:28
Definition IScriptObject.hpp:25
Int32 node_type() override
Definition IScriptObject.mm:19
std::unique_ptr< ECMAVirtualMachine > m_vm
Definition IScriptObject.hpp:26
static IScriptObject * make_script_object(String data)
Definition IScriptObject.mm:32
Bool execute()
Definition IScriptObject.mm:24
~IScriptObject() override=default
Definition rapidxml.hpp:882
This file is also about defining core js concepts.
Definition BasePhotonWindow.hpp:22
bool Bool
Definition Config.hpp:101
std::string String
Definition Core.hpp:37
std::int32_t Int32
Definition Config.hpp:95
Definition format.h:1901