65 string request_name =
"identify_yourself";
69 string agent_target =
"agent_002";
74 cout<<
"A agent "<<agent_target<<
" beatstruc:"<<endl;
75 cout<<agent_target_heartbeat;
86 vector<vector<uint16_t>> vvuint16 {{1},{1,2},{1,2,3},{1,2,3,4},{1,2,3,4,5}};
94 uint32_t t_uint32 = 1;
102 cout<<
"double* = "<<arptrtest<<endl;
106 cout<<
"char * = "<<charptest<<endl;
109 cout<<
"char* == actual*"<<endl;
uint16_t debug_level
Flag for level of debugging, keep it public so that it can be controlled from the outside...
Definition: agentclass.h:362
string get_json(const string &s)
Gets a JSON-formatted string of the data associated with the provided name in Namespace 2...
Definition: jsondef.h:7281
string agent_name
Definition: agent_scoot.cpp:47
void add_name(const string &s, void *v, string t)
Adds a name, memory location, and datatype to Namespace 2.0.
Definition: jsondef.h:4611
string get_json_pretty(const string &s)
Definition: jsondef.h:7589
Definition: jsondef.h:923
string node_agent_name
Definition: agent_scoot.cpp:48
int32_t sample_agent_request_function(string &request, string &response, Agent *cdata)
Definition: agent_scoot.cpp:124
T * get_pointer(const string &s) const
Gets the pointer to the memory address associated with the provided name in Namespace 2...
Definition: jsondef.h:6779
nodestruc node
Structure for summary information in node.
Definition: jsondef.h:4220
string cosmos_error_string(int32_t cosmos_errno)
Definition: cosmos-errno.cpp:45
uint16_t running()
Check if we're supposed to be running.
Definition: agentclass.cpp:391
rvector s
Location.
Definition: convertdef.h:163
static Agent * agent
ensure the Agent constructor creates only one instance per process
Definition: agent_scoot.cpp:45
int32_t add_request(string token, external_request_function function, string synopsis="", string description="")
Add internal request to Agent request list with description and synopsis.
Definition: agentclass.cpp:312
char name[40+1]
Node Name.
Definition: jsondef.h:3556
Definition: agentclass.h:139
string node_name
Definition: agent_scoot.cpp:46
locstruc loc
Location structure.
Definition: jsondef.h:3596
posstruc pos
posstruc for this time.
Definition: convertdef.h:881
int32_t last_error()
Definition: agentclass.cpp:414
beatstruc find_agent(string node, string agent, double waitsec=0.)
Find agent.
Definition: agentclass.cpp:559
void set_json(const string &json)
Sets the data in Namespace 2.0 with a JSON-formatted string.
Definition: jsondef.h:6822
double col[3]
Definition: vector.h:55
cosmosstruc * cinfo
Definition: agentclass.h:346
void set_value(const string &s, const T &value) const
Sets the value of the data associated with the provided name in Namespace 2.0.
Definition: jsondef.h:6808
cartpos icrf
Definition: convertdef.h:736