BOSS
7.1.0
BESIII Offline Software System
Loading...
Searching...
No Matches
old/util.h
Go to the documentation of this file.
1
//Dear emacs, this is -*- c++ -*-
2
3
/**
4
* @file eformat/old/util.h
5
* @author <a href="mailto:
[email protected]
">Andre DOS ANJOS</a>
6
* $Author: zhangy $
7
* $Revision: 1.1.1.1 $
8
* $Date: 2009/06/19 07:35:41 $
9
*
10
* @brief A set of utilities to convert old eformat (v2.4) tags into new (v3)
11
* ones.
12
*/
13
14
#ifndef EFORMAT_OLD_UTIL_H
15
#define EFORMAT_OLD_UTIL_H
16
17
#include <stdint.h>
18
19
namespace
eformat
{
20
21
namespace
old {
22
23
/**
24
* Gets an old source identitifier (v2.4) and transforms it into a new one,
25
* for version 3.0 of the event format
26
*
27
* @param old_id The old source identifier
28
*/
29
uint32_t
convert_source
(uint32_t old_id);
30
31
/**
32
* Converts a full event fragment, from the old to new format, using the
33
* space of contiguous memory storage area given. If the event given is
34
* already on v3.0 format, no conversion takes place.
35
*
36
* @param src A pointer to the first word of the event, lying in a @b
37
* contiguous area of memory.
38
* @param dest The destination area of memory, preallocated
39
* @param max The maximum number of words that fit in the preallocated
40
* memory area "dest".
41
*
42
* @return A counter, for the number of words copied from the source to the
43
* destination. If that number is zero, something wrong happened.
44
*/
45
uint32_t
convert
(
const
uint32_t* src, uint32_t* dest, uint32_t
max
);
46
47
}
48
49
}
50
51
#endif
/* EFORMAT_OLD_UTIL_H */
max
#define max(a, b)
Definition:
Eepipi/Eepipi-00-01-00/src/ee2eepp/basesv5.1/f2c.h:154
eformat::old::convert
uint32_t convert(const uint32_t *src, uint32_t *dest, uint32_t max)
Definition:
util24.cxx:248
eformat::old::convert_source
uint32_t convert_source(uint32_t old_id)
Definition:
util24.cxx:28
eformat
Definition:
BadVersionIssue.h:20
source
Event
eformat
eformat-00-01-00
eformat
old
util.h
Generated by
1.9.6