lcls2
C++ API: public headers of xtcdata, psalg, psdaq and psana
Loading...
Searching...
No Matches
XtcData::Alg Class Reference

Algorithm name (char[MaxNameSize]) plus an AlgVersion. More...

#include <ShapesData.hh>

Public Member Functions

 Alg (const char *alg, uint8_t major, uint8_t minor, uint8_t micro)
 Copy at most MaxNameSize-1 characters of alg with strncpy and pack the version.
 
uint32_t version ()
 Return the packed version (AlgVersion::version()).
 
const char * name ()
 Return the algorithm name buffer.
 

Detailed Description

Algorithm name (char[MaxNameSize]) plus an AlgVersion.

Constructor & Destructor Documentation

◆ Alg()

XtcData::Alg::Alg ( const char *  alg,
uint8_t  major,
uint8_t  minor,
uint8_t  micro 
)
inline

Copy at most MaxNameSize-1 characters of alg with strncpy and pack the version.

The name is not NUL-terminated by this code if alg has MaxNameSize-1 or more characters.

Member Function Documentation

◆ name()

const char * XtcData::Alg::name ( )
inline

Return the algorithm name buffer.

◆ version()

uint32_t XtcData::Alg::version ( )
inline

Return the packed version (AlgVersion::version()).


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