This is Unofficial EPICS BASE Doxygen Site
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
caEventRateMain.cpp
Go to the documentation of this file.
1
/*************************************************************************\
2
* Copyright (c) 2002 The University of Chicago, as Operator of Argonne
3
* National Laboratory.
4
* Copyright (c) 2002 The Regents of the University of California, as
5
* Operator of Los Alamos National Laboratory.
6
* EPICS BASE is distributed subject to a Software License Agreement found
7
* in file LICENSE that is included with this distribution.
8
\*************************************************************************/
9
10
#include <stdio.h>
11
#include <stdlib.h>
12
13
void
caEventRate
(
const
char
*pName,
unsigned
count
);
14
15
int
main
(
int
argc,
char
**argv )
16
{
17
if
( argc < 2 || argc > 3 ) {
18
fprintf (
stderr
,
"usage: %s < PV name > [subscription count]\n"
, argv[0] );
19
return
0;
20
}
21
22
unsigned
count
;
23
if
( argc == 3 ) {
24
int
status
= sscanf ( argv[2],
" %u "
, & count );
25
if
( status != 1 ) {
26
fprintf (
stderr
,
"expected unsigned integer 2nd argument\n"
);
27
return
0;
28
}
29
}
30
else
{
31
count = 1;
32
}
33
34
caEventRate
( argv[1], count );
35
36
return
0;
37
}
caEventRate
void caEventRate(const char *pName, unsigned count)
Definition:
caEventRate.cpp:31
status
pvd::Status status
Definition:
sharedstate_pv.cpp:122
ca_client_context::count
void exception epicsGuard< epicsMutex > int const char const char unsigned oldChannelNotify unsigned arrayElementCount count
Definition:
oldAccess.h:314
stderr
#define stderr
Definition:
epicsStdio.h:32
main
int main(int argc, char **argv)
Definition:
caEventRateMain.cpp:15
modules
ca
src
client
caEventRateMain.cpp
Generated by
1.8.11