Project
Loading...
Searching...
No Matches
VisualisationEventOpenGLSerializer.h
Go to the documentation of this file.
1// Copyright 2019-2020 CERN and copyright holders of ALICE O2.
2// See https://alice-o2.web.cern.ch/copyright for details of the copyright holders.
3// All rights not expressly granted are reserved.
4//
5// This software is distributed under the terms of the GNU General Public
6// License v3 (GPL Version 3), copied verbatim in the file "COPYING".
7//
8// In applying this license CERN does not waive the privileges and immunities
9// granted to it by virtue of its status as an Intergovernmental Organization
10// or submit itself to any jurisdiction.
11
16
17#ifndef O2EVE_VISUALISATIONEVENTOPENGLSERIALIZER_H
18#define O2EVE_VISUALISATIONEVENTOPENGLSERIALIZER_H
19
22#include <string>
23
24namespace o2
25{
26namespace event_visualisation
27{
28
30{
31 static void* createChunk(const char* lbl, unsigned size);
32 static unsigned int* asUnsigned(void* chunk) { return (unsigned*)((char*)chunk + 8); }
33 static float* asFloat(void* chunk) { return (float*)((char*)chunk + 8); }
34 static unsigned char* asByte(void* chunk) { return (unsigned char*)((char*)chunk + 8); }
35 static signed char* asSignedByte(void* chunk) { return (signed char*)((char*)chunk + 8); }
36 static unsigned chunkSize(void* chunk);
37
38 public:
39 const std::string serializerName() const override { return std::string("VisualisationEventOpenGLSerializer"); }
40 bool fromFile(VisualisationEvent& event, std::string fileName) override;
41 void toFile(const VisualisationEvent& event, std::string fileName) override;
43};
44
45} // namespace event_visualisation
46} // namespace o2
47
48#endif // O2EVE_VISUALISATIONEVENTOPENGLSERIALIZER_H
bool fromFile(VisualisationEvent &event, std::string fileName) override
void toFile(const VisualisationEvent &event, std::string fileName) override
struct _cl_event * event
Definition glcorearb.h:2982
GLsizeiptr size
Definition glcorearb.h:659
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...