Page History
...
The Xtc package defines several classes.
Class Src
This is a base class for any source of information in the xtc file (e.g. Detector, Beamline, Process). Defined in pdsdata/xtc/Src.hh
...
Code Block |
---|
// Constructors Env() {} Env(const Env& in) : _env(in._env) {} Env(uint32_t env); uint32_t value() const; const Env& operator=(const Env& that); |
Class
...
Class Level
Defined in pdsdata/xtc/Level.hh
...
Code Block |
---|
// Constructor and destructor XtcFileIterator(int fd, size_t maxDgramSize); ~XtcFileIterator(); Dgram* next(); |
Class Xtc
This class is not used by any other classes in the xtc
package.
But it is used by some applications in the app
package.
Code Block |
---|
Xtc() : damage(0), extent(0) {}; Xtc(const Xtc& xtc) : damage(xtc.damage), src(xtc.src), contains(xtc.contains), extent(sizeof(Xtc)) {} Xtc(const TypeId& type) : damage(0), contains(type), extent(sizeof(Xtc)) {} Xtc(const TypeId& type, const Src& _src) : damage(0), src(_src), contains(type), extent(sizeof(Xtc)) {} Xtc(const TypeId& _tag, const Src& _src, unsigned _damage) : damage(_damage), src(_src), contains(_tag), extent(sizeof(Xtc)) {} Xtc(const TypeId& _tag, const Src& _src, const Damage& _damage) : damage(_damage), src(_src), contains(_tag), extent(sizeof(Xtc)) {} void* operator new(size_t size, char* p) { return (void*)p; } void* operator new(size_t size, Xtc* p) { return p->alloc(size); } char* payload() const { return (char*)(this+1); } int sizeofPayload() const { return extent - sizeof(Xtc); } Xtc* next() { return (Xtc*)((char*)this+extent); } const Xtc* next() const { return (const Xtc*)((char*)this+extent); } void* alloc(uint32_t size) { void* buffer = next(); extent += size; return buffer; } Damage damage; Src src; TypeId contains; uint32_t extent; |
...
This is an abstract class.
This class is not used by any other classes in the xtc
package.
But it is used by some applications in the app
package.
...
Overview
Content Tools