Geant4.10
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
tpia_depot.h
Go to the documentation of this file.
1 /*
2 # <<BEGIN-copyright>>
3 # Copyright (c) 2010, Lawrence Livermore National Security, LLC.
4 # Produced at the Lawrence Livermore National Laboratory
5 # Written by Bret R. Beck, beck6@llnl.gov.
6 # CODE-461393
7 # All rights reserved.
8 #
9 # This file is part of GIDI. For details, see nuclear.llnl.gov.
10 # Please also read the "Additional BSD Notice" at nuclear.llnl.gov.
11 #
12 # Redistribution and use in source and binary forms, with or without modification,
13 # are permitted provided that the following conditions are met:
14 #
15 # 1) Redistributions of source code must retain the above copyright notice,
16 # this list of conditions and the disclaimer below.
17 # 2) Redistributions in binary form must reproduce the above copyright notice,
18 # this list of conditions and the disclaimer (as noted below) in the
19 # documentation and/or other materials provided with the distribution.
20 # 3) Neither the name of the LLNS/LLNL nor the names of its contributors may be
21 # used to endorse or promote products derived from this software without
22 # specific prior written permission.
23 #
24 # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY
25 # EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
26 # OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT
27 # SHALL LAWRENCE LIVERMORE NATIONAL SECURITY, LLC, THE U.S. DEPARTMENT OF ENERGY OR
28 # CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
29 # CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
30 # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
31 # AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
32 # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
33 # EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
34 # <<END-copyright>>
35 */
36 #ifndef tpia_depot_h_included
37 #define tpia_depot_h_included
38 
39 #if defined __cplusplus
40  extern "C" {
41 #endif
42 
43 #include <tpia_map.h>
44 #include <tpia_target.h>
45 
46 #if defined __cplusplus
47  namespace GIDI {
48 #endif
49 
51 typedef struct tpia_depot_s tpia_depot;
52 
56 };
57 
58 struct tpia_depot_s {
59  int status;
64 };
65 
66 tpia_depot *tpia_depot_create( statusMessageReporting *smr, const char *projectileName );
67 int tpia_depot_initialize( statusMessageReporting *smr, tpia_depot *depot, const char *projectileName );
68 tpia_depot *tpia_depot_free( tpia_depot *depot, int freeMap );
69 int tpia_depot_release( tpia_depot *depot, int freeMap );
71 int tpia_depot_setMapFromFilename( statusMessageReporting *smr, tpia_depot *depot, const char *basePath, const char *mapFileName );
73 int tpia_depot_freeMap( tpia_depot *depot );
74 tpia_target *tpia_depot_addTarget( statusMessageReporting *smr, tpia_depot *depot, const char *evaluation, const char *targetName );
75 tpia_target *tpia_depot_addTargetFromMap( statusMessageReporting *smr, tpia_depot *depot, tpia_map *map, const char *evaluation, const char *targetName );
76 
77 #if defined __cplusplus
78  }
79  }
80 #endif
81 
82 #endif /* End of tpia_depot_h_included. */
int tpia_depot_setMapFromFilename(statusMessageReporting *smr, tpia_depot *depot, const char *basePath, const char *mapFileName)
Definition: tpia_depot.cc:111
tpia_depot * tpia_depot_create(statusMessageReporting *smr, const char *projectileName)
Definition: tpia_depot.cc:47
Definition: tpia_depot.h:53
int numberOfTargets
Definition: tpia_depot.h:61
tpia_targetEntry * targets
Definition: tpia_depot.h:62
int tpia_depot_freeMap(tpia_depot *depot)
Definition: tpia_depot.cc:129
int tpia_depot_setMap(statusMessageReporting *smr, tpia_depot *depot, tpia_map *map)
Definition: tpia_depot.cc:103
tpia_target * target
Definition: tpia_depot.h:55
tpia_map * map
Definition: tpia_depot.h:63
tpia_depot * tpia_depot_free(tpia_depot *depot, int freeMap)
Definition: tpia_depot.cc:74
int tpia_depot_initialize(statusMessageReporting *smr, tpia_depot *depot, const char *projectileName)
Definition: tpia_depot.cc:59
tpia_target * tpia_depot_addTarget(statusMessageReporting *smr, tpia_depot *depot, const char *evaluation, const char *targetName)
Definition: tpia_depot.cc:153
int tpia_depot_release(tpia_depot *depot, int freeMap)
Definition: tpia_depot.cc:83
tpia_target * tpia_depot_addTargetFromMap(statusMessageReporting *smr, tpia_depot *depot, tpia_map *map, const char *evaluation, const char *targetName)
Definition: tpia_depot.cc:160
tpia_targetEntry * next
Definition: tpia_depot.h:54
tpia_map * tpia_depot_releaseMap(tpia_depot *depot)
Definition: tpia_depot.cc:119
char * projectileName
Definition: tpia_depot.h:60