-
Notifications
You must be signed in to change notification settings - Fork 30
noc tsv
JM Joseph edited this page Jan 29, 2018
·
1 revision
- void connect(string server, string port);
Connects to specified server
- void startRun(string name, string system_name, string data_name);
Registers a new run at the server
- int registerElement(string type, string name);
Registeres a new Element at the server
- void reportEvent(int element_id, string event, string data, int type, int time);
Used to report events
type accepts a combination of {COUT, CERR, LOGFILE, DB} and is defaulted to COUT
time is defaulted to sc_time_stamp().value();
EXAMPLE:
reportEvent(0, "TEST", "Successful", LOGFILE | CERR);
Would write "0@0ns: TEST -> Successful" to file and cerr
Note: DB can only be used if all above functions were performed
- void close();
Needs to be called after reporting is done. This ensures that all data is sent.