33 #ifndef NATIVEDAEMON_H_
34 #define NATIVEDAEMON_H_
62 virtual void eventRaised(
const std::string &event,
const std::string &action,
const std::vector<std::string> &data)
throw () = 0;
122 void addData(
const std::string &tag,
const std::string &data) {
123 _tags.push_back(tag);
124 _data.push_back(data);
128 std::vector<std::string> _tags;
129 std::vector<std::string> _data;
140 class NativeEventLoop;
144 static const std::string TAG;
185 void setLogging(
const std::string &defaultTag,
int logLevel)
const throw ();
190 void setLogFile(
const std::string &path,
int logLevel)
const throw ();
222 void addConnection(std::string eid, std::string protocol, std::string address, std::string service,
bool local =
false)
const throw ();
227 void removeConnection(std::string eid, std::string protocol, std::string address, std::string service,
bool local =
false)
const throw ();
242 std::vector<std::string>
getVersion()
const throw ();
263 void addEventData(
const dtn::data::Bundle &b, std::vector<std::string> &data)
const;
315 typedef std::list< dtn::daemon::Component* > component_list;
316 typedef std::map<DaemonRunLevel, component_list > component_map;
317 component_map _components;
320 typedef std::list< dtn::core::AbstractWorker* > app_list;
332 virtual void run(
void)
throw ();