1 #include "DAQDataFormats/RawConfigurationSystemIDV0.h" 2 #include "DAQDataFormats/RawConfigurationName.h" 3 #include "DAQDataFormats/BitFields.h" 4 #include <boost/format.hpp> 14 #include "DAQDataFormats/DataFormatFirst.inc" 15 #define CURRENT_CLASS RawConfigurationSystemID 16 #define CURRENT_CLASS_VERSION 0 17 #define CURRENT_FIELDS_SUB_NAMESPACE rawconfsysid 18 #include "DAQDataFormats/DataFormatLast.inc" 66 os<<
boost::format(
"\n---RawConfigurationSystemID---------------------------------------------Version =%u, Size is %u words\n")
78 os<<
boost::format(
"DAQSystemVersion=\"%s\"") % version_name.c_str();
90 uint32_t RawConfigurationSystemID::setVersionName(
const std::string& str) {
92 if(_shouldBufferBeInternal){
98 resizeInternalBuffer(new_size);
101 checkBufferInternalness();
116 _Buffer = (
void*)pointer;
117 _shouldBufferBeInternal = isInternalBuffer();
119 const uint32_t* version_name_pointer = (uint32_t*)(_Buffer) +
EXECUTE_FUNCTION(getHeaderSize)();
127 if(_shouldBufferBeInternal){
132 resizeInternalBuffer(
EXECUTE_FUNCTION(getHeaderSize)() + confname_tmp.sizeofdata());
135 checkBufferInternalness();
163 void* buffer_new = readDataGeneral(buffer, header_stuff, 0);
168 checkBufferInternalness();
#define ZEROOUT_FUNCTION(FUNC)
#define DEEPCOPY_FUNCTION(FUNC)
#define EXECUTE_FUNCTION(FULLFUNCTIONNAME)
Execute and return the delegate.
#define DEEPCOPY_GET_AND_SET(FUNC)
#define VERSION_NAMESPACE
::xsd::cxx::tree::buffer< char > buffer
#define ZEROOUT_GET_AND_SET(FUNC)
std::string format(const int32_t &value, const int &ndigits=8)