34 lines
656 B
C++
34 lines
656 B
C++
#ifndef _BODY_COMPONENT_H
|
|
#define _BODY_COMPONENT_H
|
|
|
|
#include <spinscale/component.h>
|
|
#include <functional>
|
|
#include <spinscale/callback.h>
|
|
|
|
namespace smo {
|
|
|
|
class Mind;
|
|
class ComponentThread;
|
|
|
|
namespace body {
|
|
|
|
class Body
|
|
: public PuppetComponent
|
|
{
|
|
public:
|
|
Body(Mind &parent, const std::shared_ptr<ComponentThread> &thread);
|
|
~Body() = default;
|
|
|
|
typedef std::function<void(bool)> bodyLifetimeMgmtOpCbFn;
|
|
void initializeReq(Callback<bodyLifetimeMgmtOpCbFn> callback);
|
|
void finalizeReq(Callback<bodyLifetimeMgmtOpCbFn> callback);
|
|
|
|
private:
|
|
class InitializeReq;
|
|
class FinalizeReq;
|
|
};
|
|
|
|
} // namespace body
|
|
} // namespace smo
|
|
|
|
#endif // _BODY_COMPONENT_H
|