fixed getString in transpose.cpp for ENUM types for STS and TIME datatypes; indents made consistent; angled brackets for headers
This commit is contained in:
@@ -10,8 +10,8 @@
|
||||
#define CAFEENUMSTRINGS_H
|
||||
|
||||
|
||||
#include "cafeEnum.h"
|
||||
#include "enumStrings.h"
|
||||
#include <cafeEnum.h>
|
||||
#include <enumStrings.h>
|
||||
|
||||
template<> char const * enumStrings<CAFENUM::ChannelWaitForResponsePolicyKind>::data[]
|
||||
= {"CAFENUM::WAIT", "CAFENUM::NO_WAIT"};
|
||||
|
||||
@@ -8,9 +8,9 @@
|
||||
#ifndef EXCEPTIONSHELPER_H
|
||||
#define EXCEPTIONSHELPER_H
|
||||
|
||||
#include "exceptions.h"
|
||||
#include "statusCodes.h"
|
||||
#include "defines.h"
|
||||
#include <exceptions.h>
|
||||
#include <statusCodes.h>
|
||||
#include <defines.h>
|
||||
|
||||
class ExceptionsHelper {
|
||||
private:
|
||||
|
||||
+34
-34
@@ -57,8 +57,8 @@ public:
|
||||
|
||||
etsNorm _etsNorm;
|
||||
etsDate _etsDate;
|
||||
TMwdayText tmDay;
|
||||
TMmonthpText tmMonth;
|
||||
TMwdayText tmDay;
|
||||
TMmonthpText tmMonth;
|
||||
|
||||
int checkConsistency();
|
||||
int checkConsistency(unsigned int _handle);
|
||||
@@ -139,10 +139,10 @@ public:
|
||||
_etsDate.sec = local.ansi_tm.tm_sec;
|
||||
|
||||
_etsDate.nsec = (unsigned long) ts.nsec;
|
||||
|
||||
_etsDate.wday = local.ansi_tm.tm_wday;
|
||||
_etsDate.yday = local.ansi_tm.tm_yday;
|
||||
_etsDate.isdst = local.ansi_tm.tm_isdst;
|
||||
|
||||
_etsDate.wday = local.ansi_tm.tm_wday;
|
||||
_etsDate.yday = local.ansi_tm.tm_yday;
|
||||
_etsDate.isdst = local.ansi_tm.tm_isdst;
|
||||
|
||||
return _etsDate;
|
||||
}
|
||||
@@ -158,11 +158,11 @@ public:
|
||||
_etsDate.min = local.ansi_tm.tm_min;
|
||||
_etsDate.sec = local.ansi_tm.tm_sec;
|
||||
_etsDate.nsec = (unsigned long) ts.nsec;
|
||||
|
||||
_etsDate.wday = local.ansi_tm.tm_wday;
|
||||
_etsDate.yday = local.ansi_tm.tm_yday;
|
||||
_etsDate.isdst = local.ansi_tm.tm_isdst;
|
||||
|
||||
|
||||
_etsDate.wday = local.ansi_tm.tm_wday;
|
||||
_etsDate.yday = local.ansi_tm.tm_yday;
|
||||
_etsDate.isdst = local.ansi_tm.tm_isdst;
|
||||
|
||||
return _etsDate;
|
||||
}
|
||||
|
||||
@@ -181,11 +181,11 @@ public:
|
||||
_etsDate.min = local.ansi_tm.tm_min;
|
||||
_etsDate.sec = local.ansi_tm.tm_sec;
|
||||
_etsDate.nsec = (unsigned long) ts.nsec;
|
||||
|
||||
_etsDate.wday = local.ansi_tm.tm_wday;
|
||||
_etsDate.yday = local.ansi_tm.tm_yday;
|
||||
_etsDate.isdst = local.ansi_tm.tm_isdst;
|
||||
|
||||
|
||||
_etsDate.wday = local.ansi_tm.tm_wday;
|
||||
_etsDate.yday = local.ansi_tm.tm_yday;
|
||||
_etsDate.isdst = local.ansi_tm.tm_isdst;
|
||||
|
||||
return _etsDate;
|
||||
}
|
||||
|
||||
@@ -204,32 +204,32 @@ public:
|
||||
_etsDate.min = local->tm_min;
|
||||
_etsDate.sec = local->tm_sec;
|
||||
_etsDate.nsec = (unsigned long) ts.nsec;
|
||||
|
||||
_etsDate.wday = local->tm_wday;
|
||||
_etsDate.yday = local->tm_yday;
|
||||
_etsDate.isdst = local->tm_isdst;
|
||||
|
||||
|
||||
_etsDate.wday = local->tm_wday;
|
||||
_etsDate.yday = local->tm_yday;
|
||||
_etsDate.isdst = local->tm_isdst;
|
||||
|
||||
return _etsDate;
|
||||
}
|
||||
|
||||
|
||||
std::string etsDateAsString(etsNorm ts) {
|
||||
|
||||
std::string etsDateAsString(etsNorm ts) {
|
||||
|
||||
time_t t= ts.secPastEpoch;
|
||||
|
||||
struct tm * local;
|
||||
local=localtime(&t);
|
||||
char buf[40];
|
||||
strftime (buf,80,"%b %d, %Y %T.",local);
|
||||
std::string date=(std::string) buf;
|
||||
char buft[10];
|
||||
sprintf(buft,"%d",ts.nsec);
|
||||
date.append((std::string) buft);
|
||||
|
||||
|
||||
return date;
|
||||
|
||||
}
|
||||
char buf[40];
|
||||
strftime (buf,80,"%b %d, %Y %T.",local);
|
||||
std::string date=(std::string) buf;
|
||||
char buft[10];
|
||||
sprintf(buft,"%u",ts.nsec);
|
||||
date.append((std::string) buft);
|
||||
|
||||
|
||||
return date;
|
||||
|
||||
}
|
||||
|
||||
|
||||
//Deprecated!!!
|
||||
|
||||
+1
-1
@@ -420,7 +420,7 @@ public:
|
||||
|
||||
};
|
||||
|
||||
#include "instant.cpp"
|
||||
#include <instant.cpp>
|
||||
|
||||
#endif // INSTANT_H
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
#ifndef LOADCOLLECTIONXMLPARSER_H
|
||||
#define LOADCOLLECTIONXMLPARSER_H
|
||||
|
||||
#include "deviceCollection.h"
|
||||
#include <deviceCollection.h>
|
||||
|
||||
#include <QtXml/QXmlDefaultHandler>
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
#ifndef LOADGROUPXMLPARSER_H
|
||||
#define LOADGROUPXMLPARSER_H
|
||||
|
||||
#include "deviceCollection.h"
|
||||
#include <deviceCollection.h>
|
||||
|
||||
#include <QtXml/QXmlDefaultHandler>
|
||||
|
||||
|
||||
+8
-8
@@ -34,7 +34,7 @@ PRE_UNINSTALL = :
|
||||
POST_UNINSTALL = :
|
||||
build_triplet = x86_64-unknown-linux-gnu
|
||||
host_triplet = x86_64-unknown-linux-gnu
|
||||
am__append_1 = PyCafe_api.h
|
||||
#am__append_1 = PyCafe_api.h
|
||||
#am__append_2 = PyCafe.h
|
||||
subdir = include
|
||||
DIST_COMMON = $(am__include_HEADERS_DIST) $(srcdir)/makefile.am \
|
||||
@@ -90,8 +90,8 @@ CTAGS = ctags
|
||||
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
|
||||
ACLOCAL = ${SHELL} /afs/psi.ch/project/cafe/gitlab/CAFE/cpp/missing --run aclocal-1.11
|
||||
AMTAR = ${SHELL} /afs/psi.ch/project/cafe/gitlab/CAFE/cpp/missing --run tar
|
||||
AM_CPPFLAGS = -fexceptions -fPIC -Wno-deprecated -I/usr/local/epics/base/include/ -I/usr/local/epics/base/include/os/Linux -I/opt/gfa/cafe/boost/boost_1_61_0/include/boost -I/opt/gfa/cafe/boost/boost_1_61_0/include -I/usr/include/QtCore -I/usr/include/QtXml -I/opt/gfa/python-3.5/latest/include/python3.5m
|
||||
AM_LDFLAGS = -L/usr/local/epics/base/lib/SL6-x86_64 -Wl,-rpath,/usr/local/epics/base/lib/SL6-x86_64 -L/usr/lib64 -Wl,-rpath,/usr/lib64 -L/opt/gfa/python-3.5/latest/lib -Wl,-rpath,/opt/gfa/python-3.5/latest/lib
|
||||
AM_CPPFLAGS = -fexceptions -fPIC -Wno-deprecated -I/usr/local/epics/base/include/ -I/usr/local/epics/base/include/os/Linux -I/opt/gfa/cafe/boost/boost_1_61_0/include/boost -I/opt/gfa/cafe/boost/boost_1_61_0/include -I/usr/include/QtCore -I/usr/include/QtXml
|
||||
AM_LDFLAGS = -L/usr/local/epics/base/lib/SL6-x86_64 -Wl,-rpath,/usr/local/epics/base/lib/SL6-x86_64 -L/usr/lib64 -Wl,-rpath,/usr/lib64
|
||||
AR = ar
|
||||
AUTOCONF = ${SHELL} /afs/psi.ch/project/cafe/gitlab/CAFE/cpp/missing --run autoconf
|
||||
AUTOHEADER = ${SHELL} /afs/psi.ch/project/cafe/gitlab/CAFE/cpp/missing --run autoheader
|
||||
@@ -102,7 +102,7 @@ CC = /afs/psi.ch/sys/psi.x86_64_slp6/Programming/gcc/6.3.0/bin/gcc
|
||||
CCDEPMODE = depmode=gcc3
|
||||
CFLAGS = -g -O2
|
||||
CPP = /afs/psi.ch/sys/psi.x86_64_slp6/Programming/gcc/6.3.0/bin/gcc -E
|
||||
CPPFLAGS = -fexceptions -fPIC -Wno-deprecated -I/usr/local/epics/base/include/ -I/usr/local/epics/base/include/os/Linux -I/opt/gfa/cafe/boost/boost_1_61_0/include/boost -I/opt/gfa/cafe/boost/boost_1_61_0/include -I/usr/include/QtCore -I/usr/include/QtXml -I/opt/gfa/python-3.5/latest/include/python3.5m
|
||||
CPPFLAGS = -fexceptions -fPIC -Wno-deprecated -I/usr/local/epics/base/include/ -I/usr/local/epics/base/include/os/Linux -I/opt/gfa/cafe/boost/boost_1_61_0/include/boost -I/opt/gfa/cafe/boost/boost_1_61_0/include -I/usr/include/QtCore -I/usr/include/QtXml
|
||||
CXX = /afs/psi.ch/sys/psi.x86_64_slp6/Programming/gcc/6.3.0/bin/g++
|
||||
CXXCPP = /afs/psi.ch/sys/psi.x86_64_slp6/Programming/gcc/6.3.0/bin/g++ -E
|
||||
CXXDEPMODE = depmode=gcc3
|
||||
@@ -125,9 +125,9 @@ INSTALL_PROGRAM = ${INSTALL}
|
||||
INSTALL_SCRIPT = ${INSTALL}
|
||||
INSTALL_STRIP_PROGRAM = $(install_sh) -c -s
|
||||
LD = /usr/bin/ld -m elf_x86_64
|
||||
LDFLAGS = -L/usr/local/epics/base/lib/SL6-x86_64 -Wl,-rpath,/usr/local/epics/base/lib/SL6-x86_64 -L/usr/lib64 -Wl,-rpath,/usr/lib64 -L/opt/gfa/python-3.5/latest/lib -Wl,-rpath,/opt/gfa/python-3.5/latest/lib
|
||||
LDFLAGS = -L/usr/local/epics/base/lib/SL6-x86_64 -Wl,-rpath,/usr/local/epics/base/lib/SL6-x86_64 -L/usr/lib64 -Wl,-rpath,/usr/lib64
|
||||
LIBOBJS =
|
||||
LIBS = -lpython3.5m -lQtXml -lQtCore
|
||||
LIBS = -lQtXml -lQtCore
|
||||
LIBTOOL = $(SHELL) $(top_builddir)/libtool
|
||||
LIPO =
|
||||
LN_S = ln -s
|
||||
@@ -186,7 +186,7 @@ htmldir = ${docdir}
|
||||
includedir = ${prefix}/include
|
||||
infodir = ${datarootdir}/info
|
||||
install_sh = ${SHELL} /afs/psi.ch/project/cafe/gitlab/CAFE/cpp/install-sh
|
||||
libdir = /opt/gfa/cafe/python/python-3.5/pycafe-1.8.0/lib
|
||||
libdir = /opt/gfa/cafe/cpp/cafe-1.8.0-gcc-6.3.0/lib
|
||||
libexecdir = ${exec_prefix}/libexec
|
||||
localedir = ${datarootdir}/locale
|
||||
localstatedir = ${prefix}/var
|
||||
@@ -195,7 +195,7 @@ mandir = ${datarootdir}/man
|
||||
mkdir_p = /bin/mkdir -p
|
||||
oldincludedir = /usr/include
|
||||
pdfdir = ${docdir}
|
||||
prefix = /opt/gfa/cafe/python/python-3.5/pycafe-1.8.0
|
||||
prefix = /opt/gfa/cafe/cpp/cafe-1.8.0-gcc-6.3.0
|
||||
program_transform_name = s,x,x,
|
||||
psdir = ${docdir}
|
||||
sbindir = ${exec_prefix}/sbin
|
||||
|
||||
+4
-4
@@ -679,26 +679,26 @@ public:
|
||||
{
|
||||
bool has=false;
|
||||
# if (EPICS_MAJOR==3 && EPICS_MINOR>=14 && EPICS_PATCH >=11)
|
||||
mask & DBE_PROPERTY ? has=true : has=false;
|
||||
(mask & DBE_PROPERTY) ? has=true : has=false;
|
||||
# endif
|
||||
return has;
|
||||
}; //8
|
||||
bool maskHasDBE_VALUE() const
|
||||
{
|
||||
bool has=false;
|
||||
mask & DBE_VALUE ? has=true : has=false;
|
||||
(mask & DBE_VALUE) ? has=true : has=false;
|
||||
return has;
|
||||
}; //4
|
||||
bool maskHasDBE_LOG() const
|
||||
{
|
||||
bool has=false;
|
||||
mask & DBE_LOG ? has=true : has=false;
|
||||
(mask & DBE_LOG) ? has=true : has=false;
|
||||
return has;
|
||||
}; //2
|
||||
bool maskHasDBE_ALARM() const
|
||||
{
|
||||
bool has=false;
|
||||
mask & DBE_ALARM ? has=true : has=false;
|
||||
(mask & DBE_ALARM) ? has=true : has=false;
|
||||
return has;
|
||||
}; //1
|
||||
pCallback getHandler() const
|
||||
|
||||
@@ -9,11 +9,11 @@
|
||||
#define POLICYHELPER_H
|
||||
|
||||
#include <cadef.h>
|
||||
#include "helper.h"
|
||||
#include "defines.h"
|
||||
#include "hashConduit.h"
|
||||
#include "hashConduitGroup.h"
|
||||
#include "conduitFriends.h"
|
||||
#include <helper.h>
|
||||
#include <defines.h>
|
||||
#include <hashConduit.h>
|
||||
#include <hashConduitGroup.h>
|
||||
#include <conduitFriends.h>
|
||||
|
||||
class PolicyHelper : Helper {
|
||||
private:
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
#ifndef RESTOREPVGROUPXMLPARSER_H
|
||||
#define RESTOREPVGROUPXMLPARSER_H
|
||||
|
||||
#include "PVGroup.h"
|
||||
#include <PVGroup.h>
|
||||
|
||||
|
||||
#include <QtXml/QXmlDefaultHandler>
|
||||
|
||||
Reference in New Issue
Block a user