#include <iostream>
#include <pva/client.h>
#include <pv/caProvider.h>
#include <stdio.h>
#include <epicsStdlib.h>
#include <epicsGetopt.h>
#include <epicsThread.h>
#include <pv/logger.h>
#include <pv/lock.h>
#include <vector>
#include <string>
#include <sstream>
#include <pv/event.h>
#include <epicsExit.h>
#include "pvutils.h"
Go to the source code of this file.
|
int | main (int argc, char *argv[]) |
|
int main |
( |
int |
argc, |
|
|
char * |
argv[] |
|
) |
| |
Definition at line 103 of file pvinfo.cpp.
110 while ((opt =
getopt(argc, argv,
":hVw:p:dc")) != -1) {
117 fprintf(
stdout,
"pvAccess %u.%u.%u%s\n",
118 EPICS_PVA_MAJOR_VERSION,
119 EPICS_PVA_MINOR_VERSION,
120 EPICS_PVA_MAINTENANCE_VERSION,
121 (EPICS_PVA_DEVELOPMENT_FLAG)?
"-SNAPSHOT":
"");
122 fprintf(
stdout,
"pvData %u.%u.%u%s\n",
123 EPICS_PVD_MAJOR_VERSION,
124 EPICS_PVD_MINOR_VERSION,
125 EPICS_PVD_MAINTENANCE_VERSION,
126 (EPICS_PVD_DEVELOPMENT_FLAG)?
"-SNAPSHOT":
"");
127 fprintf(
stdout,
"Base %s\n", EPICS_VERSION_FULL);
135 fprintf(
stderr,
"'%s' is not a valid timeout value " 136 "- ignored. ('pvget -h' for help.)\n",
optarg);
152 "Unrecognized option: '-%c'. ('pvinfo -h' for help.)\n",
157 "Option '-%c' requires an argument. ('pvinfo -h' for help.)\n",
168 fprintf(
stderr,
"No pv name(s) specified. ('pvinfo -h' for help.)\n");
174 std::vector<std::tr1::shared_ptr<GetInfo> > infos;
176 pva::ca::CAClientFactory::start();
183 std::tr1::shared_ptr<GetInfo> info(
new GetInfo(chan));
184 info->op = chan.info(info.get());
185 infos.push_back(info);
198 std::cerr<<
"Timeout\n";
205 return haderror ? 1 : 0;
int getopt(int nargc, char *const *nargv, const char *ostr)
static epicsMutex doneLock
#define SET_LOG_LEVEL(level)
static epicsEvent doneEvt
#define epicsScanDouble(str, to)
std::string defaultProvider