Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
cmsos
worksuite
Commits
372bdddf
Commit
372bdddf
authored
Sep 29, 2021
by
Dainius Simelevicius
Browse files
references #267: updating interface/bril/shared package
parent
216dc41c
Changes
2
Show whitespace changes
Inline
Side-by-side
interface/bril/shared/include/interface/bril/shared/CommonDataFormat.h
View file @
372bdddf
...
...
@@ -33,7 +33,7 @@ struct LookupItem{unsigned int id; std::string name;};
#define DEFINE_LOOKUPTABLE(Xnsname,ENUM_DEF) namespace Xnsname{ \
enum{ENUM_DEF(ENUM_VALUE)}; \
static const
LookupItem lookuptable[MAX_NUM_LOOKUPITEMS]={ENUM_DEF(LOOKUP_PAIR) {INVALID_ITEMID,
INVALID_ITEMNAME} };}
static const
interface::bril::shared::LookupItem lookuptable[interface::bril::shared::MAX_NUM_LOOKUPITEMS]={ENUM_DEF(LOOKUP_PAIR) {interface::bril::shared::INVALID_ITEMID,interface::bril::shared::
INVALID_ITEMNAME} };}
/**
...
...
@@ -132,8 +132,8 @@ DEFINE_LOOKUPTABLE(StorageType,StorageType_ENUM)
#define DEF_TOPICNAME(x) template<> inline std::string interface::bril::shared::Datum<x>::topicname(){ return STRINGIZE(x); }
#define DEF_PAYLOADDICT(x,pd) template<> inline std::string interface::bril::shared::Datum<x>::payloaddict(){ return pd; }
#define DEF_N(x,z) template<> inline size_t interface::bril::shared::Datum<x>::n(){ return z; }
#define DEF_SIMPLE_MAXSIZE(x,y,z) template<> inline size_t Datum<x>::maxsize(){ return sizeof(y)*(z)+sizeof(DatumHead); }
#define DEF_COMPOUND_MAXSIZE(x,y) template<> inline size_t Datum<x>::maxsize(){ interface::bril::shared::CompoundDataStreamer c(y); return c.datasize()+sizeof(DatumHead); }
#define DEF_SIMPLE_MAXSIZE(x,y,z) template<> inline size_t
interface::bril::shared::
Datum<x>::maxsize(){ return sizeof(y)*(z)+sizeof(DatumHead); }
#define DEF_COMPOUND_MAXSIZE(x,y) template<> inline size_t
interface::bril::shared::
Datum<x>::maxsize(){ interface::bril::shared::CompoundDataStreamer c(y); return c.datasize()+sizeof(DatumHead); }
#define DEF_ALGOS(x,a) template<> inline const interface::bril::shared::LookupItem* interface::bril::shared::Datum<x>::algo_lookuptable(){return a;}
#define DEF_DESCRIPTION(x,d) template<> inline std::string interface::bril::shared::Datum<x>::description(){ return d; }
#define DEF_UNIT(x,u) template<> inline std::string interface::bril::shared::Datum<x>::unit(){ return u; }
...
...
interface/bril/shared/include/interface/bril/shared/version.h
View file @
372bdddf
...
...
@@ -4,7 +4,7 @@
// !!! Edit this line to reflect the latest package version !!!
// version definition moved to DataFormat.h to synchronize rpm and dataversion numbers
#define BRIL_INTERFACEBRILSHARED_VERSION_MAJOR 3
#define BRIL_INTERFACEBRILSHARED_VERSION_MINOR
1
#define BRIL_INTERFACEBRILSHARED_VERSION_MINOR
2
#define BRIL_INTERFACEBRILSHARED_VERSION_PATCH 0
// If any previous versions available E.g. #define INTERFACEBRIL_PREVIOUS_VERSIONS "3.8.0,3.8.1"
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment