COSMOS core  1.0.2 (beta)
Comprehensive Open-architecture Solution for Mission Operations Systems
agent_generic_device_neighbour.cpp File Reference
#include "configCosmos.h"
#include "agentlib.h"
#include <iostream>
#include <string>
Include dependency graph for agent_generic_device_neighbour.cpp:

Functions

int main (int argc, char *argv[])
 

Function Documentation

int main ( int  argc,
char *  argv[] 
)
40 {
41 
42  string agentname = "generic_device_neighbor";
43  string nodename = "telem";
44 
45  Agent agent;
46  agent.setupServer(nodename, agentname);
47 
48  cout << agentname << " is online now" << endl;
49 
50  // Start executing the agent
51  while(agent.isRunning())
52  {
53  COSMOS_SLEEP(1.00);
54  }
55 
56  return 0;
57 }
string agentname
Definition: agent_add_soh.cpp:53
static Agent * agent
ensure the Agent constructor creates only one instance per process
Definition: agent_001.cpp:45
Definition: agentclass.h:139
string nodename
Definition: agent_add_soh.cpp:54