mirror of
https://github.com/latentPrion/libspinscale.git
synced 2026-01-11 20:29:35 +00:00
Initial commit of libspinscale library
This commit is contained in:
41
include/spinscale/component.h
Normal file
41
include/spinscale/component.h
Normal file
@@ -0,0 +1,41 @@
|
||||
#ifndef COMPONENT_H
|
||||
#define COMPONENT_H
|
||||
|
||||
#include <config.h>
|
||||
#include <memory>
|
||||
#include <functional>
|
||||
#include <spinscale/callback.h>
|
||||
#include <spinscale/puppetApplication.h>
|
||||
|
||||
namespace sscl {
|
||||
|
||||
class ComponentThread;
|
||||
|
||||
class Component
|
||||
{
|
||||
public:
|
||||
Component(const std::shared_ptr<ComponentThread> &thread);
|
||||
~Component() = default;
|
||||
|
||||
public:
|
||||
std::shared_ptr<ComponentThread> thread;
|
||||
|
||||
public:
|
||||
};
|
||||
|
||||
class PuppetComponent
|
||||
: public Component
|
||||
{
|
||||
public:
|
||||
PuppetComponent(
|
||||
PuppetApplication &parent,
|
||||
const std::shared_ptr<ComponentThread> &thread);
|
||||
~PuppetComponent() = default;
|
||||
|
||||
public:
|
||||
PuppetApplication &parent;
|
||||
};
|
||||
|
||||
} // namespace sscl
|
||||
|
||||
#endif // COMPONENT_H
|
||||
Reference in New Issue
Block a user