PhoenixSwarm  6.1.0
Persistent processing programs exchanging data over sockets
Loading...
Searching...
No Matches
main.cpp File Reference
#include "AbstractDataFunction.h"
#include "FunctionCall.h"
#include "phoenix_assert.h"
Include dependency graph for main.cpp:

Go to the source code of this file.

Classes

class  TestDataFunction
 test function More...

Functions

int main (int argc, char **argv)

Function Documentation

◆ main()

int main ( int argc,
char ** argv )

Definition at line 21 of file main.cpp.

21 {
22 TestDataFunction function("initialName");
23 PLog log;
24 Data data;
25 function.call(log, data);
26 // Test the setName and getName methods
27 function.setName("testFunction");
28 phoenix_assert(function.getName() == "testFunction");
29 return 0;
30}
Basic Data exchanged in the swarm.
void setName(const PString &name)
Sets the name of the Data.
test function
Definition main.cpp:12

References TestDataFunction::call(), Swarm::AbstractDataFunction::getName(), main(), and Swarm::AbstractDataFunction::setName().

Referenced by main().

Here is the call graph for this function:
Here is the caller graph for this function: