Public Member Functions | Protected Member Functions | List of all members
daqdataformats::VERSION_NAMESPACE::RawConfigurationName Class Reference

#include "/cvmfs/nova-development.opensciencegrid.org/novasoft/releases/N20-11-28/DAQDataFormats/cxx/include/RawConfigurationNameV0.h"

Inheritance diagram for daqdataformats::VERSION_NAMESPACE::RawConfigurationName:

Public Member Functions

 RawConfigurationName (const version_t)
 Constructors. More...
 
 RawConfigurationName (const RawConfigurationName &)
 
 ~RawConfigurationName ()
 Destructor. More...
 
void init ()
 
void print (std::ostream &os=std::cout) const
 
uint32_t sizeofdata () const
 
bool setBufferSource (const void *pointer)
 
voidreadData (const void *)
 
 IMPLEMENT_FIRST_GET_AND_SET (Version, uint32_t)
 
 IMPLEMENT_FIRST_GET_AND_SET (Size, uint32_t)
 
 INIT_FIRST (getHeaderSize, const, uint32_t,)
 
 INIT_FIRST (getName, const, uint32_t, std::string &)
 
 INIT_FIRST (setName,, uint32_t, const std::string &)
 
 INIT_FIRST (getChar1, const, uint32_t, const uint32_t)
 
 INIT_FIRST (setChar1,, bool, const uint32_t, const uint32_t)
 
 INIT_FIRST (getChar2, const, uint32_t, const uint32_t)
 
 INIT_FIRST (setChar2,, bool, const uint32_t, const uint32_t)
 
 INIT_FIRST (getChar3, const, uint32_t, const uint32_t)
 
 INIT_FIRST (setChar3,, bool, const uint32_t, const uint32_t)
 
 INIT_FIRST (getChar4, const, uint32_t, const uint32_t)
 
 INIT_FIRST (setChar4,, bool, const uint32_t, const uint32_t)
 

Protected Member Functions

uint32_t getPredefinedSize () const
 

Detailed Description

Definition at line 52 of file RawConfigurationNameV0.h.

Constructor & Destructor Documentation

daqdataformats::VERSION_NAMESPACE::RawConfigurationName::RawConfigurationName ( const version_t  version)

Constructors.

The default constructor

Definition at line 24 of file RawConfigurationNameV0.cpp.

24  :
26  ,ZEROOUT_GET_AND_SET(Version)
27  ,ZEROOUT_GET_AND_SET(Size)
28  ,ZEROOUT_GET(HeaderSize)
29  ,ZEROOUT_GET_AND_SET(Name)
30  ,ZEROOUT_GET_AND_SET(Char1)
31  ,ZEROOUT_GET_AND_SET(Char2)
32  ,ZEROOUT_GET_AND_SET(Char3)
33  ,ZEROOUT_GET_AND_SET(Char4)
34 { }
#define sizeofdata_t
Definition: FunctionBind.h:30
#define ZEROOUT_GET(FUNC)
Definition: FunctionBind.h:53
#define ZEROOUT_GET_AND_SET(FUNC)
Definition: FunctionBind.h:56
const XML_Char * version
Definition: expat.h:187
daqdataformats::VERSION_NAMESPACE::RawConfigurationName::RawConfigurationName ( const RawConfigurationName copyin)

Definition at line 37 of file RawConfigurationNameV0.cpp.

37  :
38  RawDAQData(copyin)
39  ,DEEPCOPY_GET_AND_SET(Version)
41  ,DEEPCOPY_GET(HeaderSize)
43  ,DEEPCOPY_GET_AND_SET(Char1)
44  ,DEEPCOPY_GET_AND_SET(Char2)
45  ,DEEPCOPY_GET_AND_SET(Char3)
46  ,DEEPCOPY_GET_AND_SET(Char4)
47 { }
#define DEEPCOPY_GET_AND_SET(FUNC)
Definition: FunctionBind.h:44
#define DEEPCOPY_GET(FUNC)
Definition: FunctionBind.h:41
daqdataformats::VERSION_NAMESPACE::RawConfigurationName::~RawConfigurationName ( )

Destructor.

Definition at line 49 of file RawConfigurationNameV0.cpp.

49 {}

Member Function Documentation

uint32_t daqdataformats::VERSION_NAMESPACE::RawConfigurationName::getPredefinedSize ( ) const
inlineprotected
daqdataformats::VERSION_NAMESPACE::RawConfigurationName::IMPLEMENT_FIRST_GET_AND_SET ( Version  ,
uint32_t   
)
daqdataformats::VERSION_NAMESPACE::RawConfigurationName::IMPLEMENT_FIRST_GET_AND_SET ( Size  ,
uint32_t   
)
void daqdataformats::VERSION_NAMESPACE::RawConfigurationName::init ( )
daqdataformats::VERSION_NAMESPACE::RawConfigurationName::INIT_FIRST ( getHeaderSize  ,
const  ,
uint32_t   
)
daqdataformats::VERSION_NAMESPACE::RawConfigurationName::INIT_FIRST ( getName  ,
const  ,
uint32_t  ,
std::string  
)
daqdataformats::VERSION_NAMESPACE::RawConfigurationName::INIT_FIRST ( setName  ,
uint32_t  ,
const std::string  
)
daqdataformats::VERSION_NAMESPACE::RawConfigurationName::INIT_FIRST ( getChar1  ,
const  ,
uint32_t  ,
const uint32_t   
)
daqdataformats::VERSION_NAMESPACE::RawConfigurationName::INIT_FIRST ( setChar1  ,
bool  ,
const uint32_t  ,
const uint32_t   
)
daqdataformats::VERSION_NAMESPACE::RawConfigurationName::INIT_FIRST ( getChar2  ,
const  ,
uint32_t  ,
const uint32_t   
)
daqdataformats::VERSION_NAMESPACE::RawConfigurationName::INIT_FIRST ( setChar2  ,
bool  ,
const uint32_t  ,
const uint32_t   
)
daqdataformats::VERSION_NAMESPACE::RawConfigurationName::INIT_FIRST ( getChar3  ,
const  ,
uint32_t  ,
const uint32_t   
)
daqdataformats::VERSION_NAMESPACE::RawConfigurationName::INIT_FIRST ( setChar3  ,
bool  ,
const uint32_t  ,
const uint32_t   
)
daqdataformats::VERSION_NAMESPACE::RawConfigurationName::INIT_FIRST ( getChar4  ,
const  ,
uint32_t  ,
const uint32_t   
)
daqdataformats::VERSION_NAMESPACE::RawConfigurationName::INIT_FIRST ( setChar4  ,
bool  ,
const uint32_t  ,
const uint32_t   
)
void daqdataformats::VERSION_NAMESPACE::RawConfigurationName::print ( std::ostream &  os = std::cout) const

Definition at line 194 of file RawConfigurationNameV0.cpp.

References EXECUTE_FUNCTION, novadaq::HexUtils::format(), sizeofdata(), and string.

194  {
195 
196  os<<boost::format("\n---RawConfigurationName----------------------------------------------------size=%u\n") % sizeofdata();
197 
198  printBuffer(os,true,true,false,false,false,"\n",1);
199 
201  EXECUTE_FUNCTION(getName)(name);
202  os<<"Name = \""<<name<<"\"\n";
203 
204 }
const XML_Char * name
Definition: expat.h:151
#define EXECUTE_FUNCTION(FULLFUNCTIONNAME)
Execute and return the delegate.
Definition: Macros.h:54
std::string format(const int32_t &value, const int &ndigits=8)
Definition: HexUtils.cpp:14
enum BeamMode string
void * daqdataformats::VERSION_NAMESPACE::RawConfigurationName::readData ( const void buffer)

Read the header and unpack it to find out the size of the RawConfigurationName

No need to check for internalness here, because we always have at least a header

Now, read the rest of the millislice

Definition at line 224 of file RawConfigurationNameV0.cpp.

References EXECUTE_FUNCTION, PRINT_ON_DEBUG, and sizeofdata().

Referenced by PandAna.core.core.loader::Go().

224  {
225  const uint32_t header_size = EXECUTE_FUNCTION(getHeaderSize)();
226 
227  PRINT_ON_DEBUG(__PRETTY_FUNCTION__<<" 0");
228  /// Read the header and unpack it to find out the size of the RawConfigurationName
229  void* buffer_new = readDataGeneral(buffer, header_size, 0);
230 
231  /// No need to check for internalness here, because we always have at least a header
232 
233  PRINT_ON_DEBUG(__PRETTY_FUNCTION__<<" 1");
234  /// Now, read the rest of the millislice
235  buffer_new = readDataGeneral(buffer_new, sizeofdata() - header_size, header_size);
236 
237  checkBufferInternalness();
238 
239  return buffer_new;
240 
241  }// end of readData(void*)
#define EXECUTE_FUNCTION(FULLFUNCTIONNAME)
Execute and return the delegate.
Definition: Macros.h:54
::xsd::cxx::tree::buffer< char > buffer
Definition: Database.h:179
#define PRINT_ON_DEBUG(x)
Definition: RawDAQData.h:35
bool daqdataformats::VERSION_NAMESPACE::RawConfigurationName::setBufferSource ( const void pointer)

Definition at line 212 of file RawConfigurationNameV0.cpp.

References sizeofdata(), and sizeofdata_t.

Referenced by daqdataformats::VERSION_NAMESPACE::RawConfigurationSystemID::setBufferSource().

212  {
213 
214  _Buffer = (void*)pointer;
215  _shouldBufferBeInternal = isInternalBuffer();
216 
217  _function_sizeofdata = (sizeofdata_t) &RawConfigurationName::sizeofdata;
218  return true;
219 }
#define sizeofdata_t
Definition: FunctionBind.h:30
uint32_t daqdataformats::VERSION_NAMESPACE::RawConfigurationName::sizeofdata ( ) const

The documentation for this class was generated from the following files: