ISIS Logo
NetShrVar
An EPICS support module to export National Instruments Network Shared Variables as process variables
CheckNetVar.cpp
Go to the documentation of this file.
1 /*************************************************************************\
2 * Copyright (c) 2013 Science and Technology Facilities Council (STFC), GB.
3 * All rights reverved.
4 * This file is distributed subject to a Software License Agreement found
5 * in the file LICENSE.txt that is included with this distribution.
6 \*************************************************************************/
7 
10 
11 #include <stdio.h>
12 
13 //#define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers
14 #ifdef _WIN32
15 #include <windows.h>
16 #include <comutil.h>
17 #else
18 #include <math.h>
19 #include <unistd.h>
20 #endif /* _WIN32 */
21 
22 #include <string>
23 #include <vector>
24 #include <map>
25 #include <list>
26 #include <stdexcept>
27 #include <sstream>
28 #include <fstream>
29 #include <iostream>
30 #include <algorithm>
31 #include <cstring>
32 
33 #include <cvirte.h>
34 #include <userint.h>
35 #include <cvinetv.h>
36 
37 #include <shareLib.h>
38 #include <macLib.h>
39 #include <epicsGuard.h>
40 #include <epicsString.h>
41 #include <errlog.h>
42 #include <cantProceed.h>
43 #include <epicsTime.h>
44 #include <alarm.h>
45 
46 #include "asynPortDriver.h"
47 
48 #include "NetShrVarInterface.h"
49 
50 int main(int argc, char* argv[])
51 {
52  if (argc > 1)
53  {
54  std::string var = argv[1];
56  {
57  std::cout << var << " exists" << std::endl;
58  }
59  else
60  {
61  std::cout << var << " does NOT exist" << std::endl;
62  }
63  }
64  return 0;
65 }
int main(int argc, char *argv[])
Definition: CheckNetVar.cpp:50
static bool pathExists(const std::string &path)
header for NetShrVarInterface class.
Copyright © 2013 Science and Technology Facilities Council | Generated by   doxygen 1.8.5