#include <stdio.h>
#include <signal.h>
#include <assert.h>
#include <stdlib.h>
#include "midas.h"
#include "tmfe.h"
Go to the source code of this file.
|
| static void | usage () |
| |
| int | main (int argc, char *argv[]) |
| |
◆ main()
| int main |
( |
int |
argc, |
|
|
char * |
argv[] |
|
) |
| |
Definition at line 104 of file fetest_tmfe.cxx.
105{
106 setbuf(stdout, NULL);
107 setbuf(stderr, NULL);
108
109 signal(SIGPIPE, SIG_IGN);
110
111 std::string
name =
"";
112
113 if (argc == 2) {
115 } else {
117 }
118
120
123 printf("Cannot connect, bye.\n");
124 return 1;
125 }
126
127
128
132
133
136 eq->SetStatus(
"Starting...",
"white");
137 eq->ZeroStatistics();
138 eq->WriteStatistics();
139
141
143
145
146
147
148
149
150
151
153
155
156 eq->SetStatus(
"Started...",
"white");
157
160 }
161
163
164 return 0;
165}
void RegisterRpcHandler(TMFeRpcHandlerInterface *handler)
RPC handlers are executed from the RPC thread, if started.
TMFeResult Connect(const char *progname=NULL, const char *hostname=NULL, const char *exptname=NULL)
std::atomic_bool fShutdownRequested
shutdown was requested by Ctrl-C or by RPC command
void RegisterPeriodicHandler(TMFeEquipment *eq, TMFePeriodicHandlerInterface *handler)
periodic handlers are executed from the periodic thread, if started
TMFeError RegisterEquipment(TMFeEquipment *eq)
void PollMidas(int millisec)
◆ usage()
Definition at line 98 of file fetest_tmfe.cxx.
99{
100 fprintf(stderr, "Usage: fetest_tmfe ...\n");
101 exit(1);
102}