Public Member Functions | Private Member Functions | Private Attributes | List of all members
daqdataformats::RawNanoSlice Class Reference

#include "/cvmfs/nova-development.opensciencegrid.org/novasoft/releases/N20-12-01/DAQDataFormats/cxx/include/RawNanoSlice.h"

Inheritance diagram for daqdataformats::RawNanoSlice:

Public Member Functions

 RawNanoSlice (const version_t version=nanosliceheader::RAWNANOSLICE_DEFAULT_VERSION)
 After this constructor the buffer pointer is set to the internal source. More...
 
 RawNanoSlice (const NanoSlice &)
 The default constructor. More...
 
 RawNanoSlice (const RawNanoSlice &copy_in)
 Constructor with Data initialization. More...
 
 RawNanoSlice (const void *nanoslice_buffer, const version_t version=rawdaqdataformat::DAQDATAFORMAT_UNKNOWN_VERSION)
 Deep copy constructor. More...
 
 ~RawNanoSlice ()
 Destructor. More...
 
IMPLEMENT_MAIN_STANDARD IMPLEMENT_MAIN_setBufferSource daqdataformats::RawNanoSliceHeadergetHeader () const
 Get the NanoSlice header pointer. More...
 
 IMPLEMENT_GET_AND_SET_MAIN (PulseHeight, uint32_t)
 
 IMPLEMENT_GET_AND_SET_MAIN (TimeStamp, uint32_t)
 
 IMPLEMENT_GET_MAIN (Reserved, uint32_t)
 
 IMPLEMENT_GET_AND_SET_MAIN (Value1, uint32_t)
 

Private Member Functions

 IMPLEMENT_SET_MAIN (Reserved, uint32_t)
 
void initWithDataInternal ()
 
bool setFunctionPointers ()
 

Private Attributes

NanoSlice_nanoSliceParameters
 

Detailed Description

Definition at line 42 of file RawNanoSlice.h.

Constructor & Destructor Documentation

daqdataformats::RawNanoSlice::RawNanoSlice ( const version_t  version = nanosliceheader::RAWNANOSLICE_DEFAULT_VERSION)

After this constructor the buffer pointer is set to the internal source.

Perform general routines

Definition at line 22 of file RawNanoSlice.cpp.

22  :
23  PREVIOUS_VERSION_CLASS_NAME(version)
25 {
26  INITIALIZE_DEBUGGING_VARIABLES;
27  /// Perform general routines
28  defaultConstructorFixedSize();
29 }// end of :RawNanoSlice(version_t version)
const XML_Char * version
Definition: expat.h:187
daqdataformats::RawNanoSlice::RawNanoSlice ( const NanoSlice nanoslice_parameters)

The default constructor.

After this constructor the buffer pointer is set to the internal source.

Now, apply the default constructor, passing function pointer to initWithDataInternal

Definition at line 33 of file RawNanoSlice.cpp.

References init_t, and initWithDataInternal().

33  :
34  PREVIOUS_VERSION_CLASS_NAME(nanoslice_parameters)
35  ,_nanoSliceParameters((NanoSlice*)&nanoslice_parameters)
36 {
37  INITIALIZE_DEBUGGING_VARIABLES;
38  /// Now, apply the default constructor, passing function pointer to initWithDataInternal
39  defaultConstructorFixedSize((init_t) &RawNanoSlice::initWithDataInternal);
40 }// end of RawNanoSlice (NanoSlice nanoslice_parameters)
#define init_t
Definition: FunctionBind.h:29
daqdataformats::RawNanoSlice::RawNanoSlice ( const RawNanoSlice copy_in)

Constructor with Data initialization.

After this constructor the buffer pointer is set to the external source.

Definition at line 45 of file RawNanoSlice.cpp.

References setFunctionPointers().

45  :
46  PREVIOUS_VERSION_CLASS_NAME(copy_in)
48 {
49  INITIALIZE_DEBUGGING_VARIABLES;
50  lastOperationsInDeepCopy(copy_in);
52 
53 }// end of RawNanoSlice(const RawNanoSlice& copy_in)
daqdataformats::RawNanoSlice::RawNanoSlice ( const void nanoslice_buffer,
const version_t  version = rawdaqdataformat::DAQDATAFORMAT_UNKNOWN_VERSION 
)

Deep copy constructor.

Definition at line 57 of file RawNanoSlice.cpp.

57  :
58  PREVIOUS_VERSION_CLASS_NAME(version)
60 {
61  INITIALIZE_DEBUGGING_VARIABLES;
62  copy(nanoslice_buffer);
63 }
const XML_Char * version
Definition: expat.h:187
daqdataformats::RawNanoSlice::~RawNanoSlice ( )

Destructor.

Shallow copy constructor

Definition at line 66 of file RawNanoSlice.cpp.

66 { }

Member Function Documentation

IMPLEMENT_MAIN_STANDARD IMPLEMENT_MAIN_setBufferSource daqdataformats::RawNanoSliceHeader* daqdataformats::RawNanoSlice::getHeader ( ) const
inline
daqdataformats::RawNanoSlice::IMPLEMENT_GET_AND_SET_MAIN ( PulseHeight  ,
uint32_t   
)

Referenced by getHeader().

daqdataformats::RawNanoSlice::IMPLEMENT_GET_AND_SET_MAIN ( TimeStamp  ,
uint32_t   
)
daqdataformats::RawNanoSlice::IMPLEMENT_GET_AND_SET_MAIN ( Value1  ,
uint32_t   
)
daqdataformats::RawNanoSlice::IMPLEMENT_GET_MAIN ( Reserved  ,
uint32_t   
)

Referenced by getHeader().

daqdataformats::RawNanoSlice::IMPLEMENT_SET_MAIN ( Reserved  ,
uint32_t   
)
private

Referenced by getHeader().

void daqdataformats::RawNanoSlice::initWithDataInternal ( )
private

Definition at line 69 of file RawNanoSlice.cpp.

References EXECUTE_FUNCTION.

Referenced by getHeader(), and RawNanoSlice().

69 { EXECUTE_FUNCTION(initWithData)(*_nanoSliceParameters); }
#define EXECUTE_FUNCTION(FULLFUNCTIONNAME)
Execute and return the delegate.
Definition: Macros.h:54
bool daqdataformats::RawNanoSlice::setFunctionPointers ( )
private

Referenced by getHeader(), and RawNanoSlice().

Member Data Documentation

NanoSlice* daqdataformats::RawNanoSlice::_nanoSliceParameters
private

Pointer to Nano parameters used in init when using Constructor with Data initialization only. After that this variable is irrelevant

Definition at line 84 of file RawNanoSlice.h.


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