Fawkes API
Fawkes Development Version
|
23 #ifndef _LUA_INTERFACEIMPORTER_H_
24 #define _LUA_INTERFACEIMPORTER_H_
26 #include <blackboard/interface_observer.h>
27 #include <core/utils/lock_map.h>
28 #include <lua/context_watcher.h>
49 const char * id_pattern);
51 virtual void bb_interface_created(
const char *type,
const char *
id)
throw();
100 void add_observed_interface(std::string varname,
const char *type,
const char *
id);
118 bool interfaces_pushed_;
LuaInterfaceImporter::InterfaceMap & writing_interfaces()
Get interface map of writing interfaces.
void write()
Write all writing interfaces.
void add_interface(std::string varname, Interface *interface)
Add a single interface to be pushed to the context.
LuaInterfaceImporter::InterfaceMap & reading_interfaces()
Get interface map of reading interfaces.
void open_reading_interfaces(std::string &prefix)
Open interfaces for reading.
The BlackBoard abstract class.
void read_to_buffer()
Read from all reading interfaces into a buffer.
void read()
Read from all reading interfaces.
Interface for configuration handling.
void close_writing_interfaces()
Close interfaces for writing.
Fawkes library namespace.
fawkes::LockMap< std::string, fawkes::Interface * > InterfaceMap
Map of varname to interface instance.
LuaInterfaceImporter(LuaContext *context_, BlackBoard *blackboard, Configuration *config, Logger *logger)
Constructor.
BlackBoard interface observer.
Base class for all Fawkes BlackBoard interfaces.
~LuaInterfaceImporter()
Destructor.
void open_writing_interfaces(std::string &prefix)
Open interfaces for writing.
void close_reading_interfaces()
Close interfaces for reading.
void read_from_buffer()
Update interfaces from internal buffers.
void push_interfaces()
Push interfaces to Lua environment.
fawkes::LockMap< std::string, std::list< fawkes::Interface * > > InterfaceListMap
Map of varname to list of interfaces.
void lua_restarted(LuaContext *context)
Lua restart event.