#include <stddef.h>
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include "registryFunction.h"
#include "epicsThread.h"
#include "epicsExit.h"
#include "epicsStdio.h"
#include "dbStaticLib.h"
#include "subRecord.h"
#include "dbAccess.h"
#include "asDbLib.h"
#include "iocInit.h"
#include "iocsh.h"
Go to the source code of this file.
|
#define | DBD_FILE FINAL_LOCATION "/dbd/softIocPVA.dbd" |
|
#define | EXIT_FILE FINAL_LOCATION "/db/softIocExit.db" |
|
#define DBD_FILE FINAL_LOCATION "/dbd/softIocPVA.dbd" |
#define EXIT_FILE FINAL_LOCATION "/db/softIocExit.db" |
int main |
( |
int |
argc, |
|
|
char * |
argv[] |
|
) |
| |
Definition at line 112 of file softMain.cpp.
114 char *dbd_file =
const_cast<char*
>(
base_dbd);
120 arg0 = strrchr(*argv,
'/');
130 if (argc>0 && **argv==
'-' && (*argv)[1]==
'h') {
134 if (argc>1 && **argv==
'-' && (*argv)[1]==
'D') {
140 if (dbLoadDatabase(dbd_file,
NULL,
NULL)) {
147 while (argc>1 && **argv ==
'-') {
148 switch ((*argv)[1]) {
156 if (dbLoadRecords(*++argv, macros)) {
180 if (dbLoadRecords(
exit_db, xmacro)) {
188 printf(
"%s: option '%s' not recognized\n",
arg0, *argv);
195 if (argc>0 && **argv==
'-') {
201 printf(
"%s: missing argument to option '%s'\n",
arg0, *argv);
215 printf(
"%s: option '%s' not recognized\n",
arg0, *argv);
#define PVNAME_STRINGSZ
Size of a record name including the nil terminator.
void(* REGISTRYFUNCTION)(void)
int asSetSubstitutions(const char *substitutions)
int epicsStdCall iocsh(const char *pathname)
int softIocPVA_registerRecordDeviceDriver(struct dbBase *pdbbase)
LIBCOM_API void epicsExit(int status)
Calls epicsExitCallAtExits(), then the OS exit() routine.
LIBCOM_API void epicsStdCall epicsThreadExitMain(void)
epicsShareFunc int registryFunctionAdd(const char *name, REGISTRYFUNCTION func)
LIBCOM_API void epicsStdCall epicsThreadSleep(double seconds)
Block the calling thread for at least the specified time.
int asSetFilename(const char *acf)
LIBCOM_API int epicsStdCall epicsSnprintf(char *str, size_t size, const char *format,...) EPICS_PRINTF_STYLE(3
int softIocPVA_registerRecordDeviceDriver |
( |
struct dbBase * |
pdbbase | ) |
|