17#ifndef __ROGUE_INTERFACE_API_BSP_H__
18#define __ROGUE_INTERFACE_API_BSP_H__
20#include <boost/python.hpp>
46 boost::python::object
_obj;
64 static std::shared_ptr<rogue::interfaces::api::Bsp>
create(boost::python::object obj);
80 static std::shared_ptr<rogue::interfaces::api::Bsp>
create(std::string modName, std::string rootClass);
91 explicit Bsp(boost::python::object obj);
105 Bsp(std::string modName, std::string rootClass);
119 void addVarListener(
void (*func)(std::string, std::string),
void (*done)());
143 std::shared_ptr<rogue::interfaces::api::Bsp>
getNode(std::string name);
166 std::string
execute(std::string arg);
180 void set(std::string value);
205typedef std::shared_ptr<rogue::interfaces::api::Bsp>
BspPtr;
C++ convenience wrapper around a PyRogue node object.
std::string execute()
Executes wrapped command node without argument.
std::string getAttribute(std::string attribute)
Returns string form of named attribute from wrapped object.
boost::python::object _obj
~Bsp()
Destroys wrapper (stops root when wrapper owns root instance).
std::shared_ptr< rogue::interfaces::api::Bsp > getNode(std::string name)
Returns shared wrapper for child node using getNode(name).
static std::shared_ptr< rogue::interfaces::api::Bsp > create(boost::python::object obj)
Creates a wrapper from an existing Python object.
rogue::interfaces::api::Bsp operator[](std::string name)
Returns wrapper for child node using node(name) lookup.
void setWrite(std::string value)
Sets wrapped variable value and forces write transaction.
void addVarListener(void(*func)(std::string, std::string), void(*done)())
Registers variable listener callbacks on wrapped root.
std::string readGet()
Performs read transaction then gets wrapped variable value.
std::string get()
Gets wrapped variable value without forcing read transaction.
std::string operator()()
Executes wrapped command node without argument.
void set(std::string value)
Sets wrapped variable value without forcing write transaction.
std::shared_ptr< rogue::interfaces::api::Bsp > BspPtr
Shared pointer alias for Bsp.