libscratchcpp
A library for C++ based Scratch project players
Loading...
Searching...
No Matches
entity.h
Go to the documentation of this file.
1
// SPDX-License-Identifier: Apache-2.0
2
3
#pragma once
4
5
#include <string>
6
7
#include "
global.h
"
8
#include "spimpl.h"
9
10
namespace
libscratchcpp
11
{
12
13
class
EntityPrivate;
14
16
class
LIBSCRATCHCPP_EXPORT
Entity
17
{
18
public
:
19
Entity
(
const
std::string &
id
);
20
Entity
(
const
Entity
&) =
delete
;
21
22
virtual
~Entity
() { }
23
24
const
std::string &id()
const
;
25
26
void
setId(
const
std::string &newId);
27
28
private
:
29
spimpl::unique_impl_ptr<EntityPrivate> impl;
30
};
31
32
}
// namespace libscratchcpp
libscratchcpp::Entity::Entity
Entity(const std::string &id)
Definition
entity.cpp:10
libscratchcpp::Entity::Entity
Entity(const Entity &)=delete
libscratchcpp::Entity::~Entity
virtual ~Entity()
Definition
entity.h:22
global.h
LIBSCRATCHCPP_EXPORT
#define LIBSCRATCHCPP_EXPORT
Definition
global.h:17
libscratchcpp
The main namespace of the library.
Definition
asset.h:10
include
scratchcpp
entity.h
Generated by
1.13.2