2.3 (revision 117c8d5b)
OTF2_DefReader.h
Go to the documentation of this file.
1 /*
2  * This file is part of the Score-P software (http://www.score-p.org)
3  *
4  * Copyright (c) 2009-2013,
5  * RWTH Aachen University, Germany
6  *
7  * Copyright (c) 2009-2013,
8  * Gesellschaft fuer numerische Simulation mbH Braunschweig, Germany
9  *
10  * Copyright (c) 2009-2013,
11  * Technische Universitaet Dresden, Germany
12  *
13  * Copyright (c) 2009-2013,
14  * University of Oregon, Eugene, USA
15  *
16  * Copyright (c) 2009-2013,
17  * Forschungszentrum Juelich GmbH, Germany
18  *
19  * Copyright (c) 2009-2013,
20  * German Research School for Simulation Sciences GmbH, Juelich/Aachen, Germany
21  *
22  * Copyright (c) 2009-2013,
23  * Technische Universitaet Muenchen, Germany
24  *
25  * This software may be modified and distributed under the terms of
26  * a BSD-style license. See the COPYING file in the package base
27  * directory for details.
28  *
29  */
30 
31 
32 #ifndef OTF2_DEF_READER_H
33 #define OTF2_DEF_READER_H
34 
35 
46 #include <stdint.h>
47 
48 
49 #include <otf2/OTF2_ErrorCodes.h>
50 
51 
52 #include <otf2/OTF2_Definitions.h>
54 
55 
56 #ifdef __cplusplus
57 extern "C" {
58 #endif /* __cplusplus */
59 
60 
71  OTF2_LocationRef* location );
72 
73 
91  const OTF2_DefReaderCallbacks* callbacks,
92  void* userData );
93 
94 
116  uint64_t recordsToRead,
117  uint64_t* recordsRead );
118 
119 
120 #ifdef __cplusplus
121 }
122 #endif /* __cplusplus */
123 
124 
125 #endif /* !OTF2_DEF_READER_H */
uint64_t OTF2_LocationRef
Type used to indicate a reference to a Location definition.
Definition: OTF2_GeneralDefinitions.h:139
OTF2_ErrorCode
Definition: OTF2_ErrorCodes.h:54
Data types used in the definition records.
OTF2_ErrorCode OTF2_DefReader_ReadDefinitions(OTF2_DefReader *reader, uint64_t recordsToRead, uint64_t *recordsRead)
Reads the given number of records from the definition reader.
OTF2_ErrorCode OTF2_DefReader_GetLocationID(const OTF2_DefReader *reader, OTF2_LocationRef *location)
Get the location ID of this reader object.
struct OTF2_DefReaderCallbacks_struct OTF2_DefReaderCallbacks
Opaque struct which holds all definition record callbacks.
Definition: OTF2_DefReaderCallbacks.h:62
struct OTF2_DefReader_struct OTF2_DefReader
OTF2 local definition reader handle.
Definition: OTF2_GeneralDefinitions.h:252
OTF2_ErrorCode OTF2_DefReader_SetCallbacks(OTF2_DefReader *reader, const OTF2_DefReaderCallbacks *callbacks, void *userData)
Sets the callback functions for the given reader object. Every time when OTF2 reads a record...
Error codes and error handling.
This defines the callbacks for the definition reader.