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
10namespace libscratchcpp
11{
12
13class EntityPrivate;
14
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
Entity(const std::string &id)
Definition entity.cpp:10
Entity(const Entity &)=delete
virtual ~Entity()
Definition entity.h:22
#define LIBSCRATCHCPP_EXPORT
Definition global.h:17
The main namespace of the library.
Definition asset.h:10