2 # ---------------------------------------------------------------------
4 # Copyright (c) CREATIS (Centre de Recherche en Acquisition et Traitement de l'Image
6 # Authors : Eduardo Davila, Frederic Cervenansky, Claire Mouton
7 # Previous Authors : Laurent Guigues, Jean-Pierre Roux
8 # CreaTools website : www.creatis.insa-lyon.fr/site/fr/creatools_accueil
10 # This software is governed by the CeCILL-B license under French law and
11 # abiding by the rules of distribution of free software. You can use,
12 # modify and/ or redistribute the software under the terms of the CeCILL-B
13 # license as circulated by CEA, CNRS and INRIA at the following URL
14 # http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html
15 # or in the file LICENSE.txt.
17 # As a counterpart to the access to the source code and rights to copy,
18 # modify and redistribute granted by the license, users are provided only
19 # with a limited warranty and the software's author, the holder of the
20 # economic rights, and the successive licensors have only limited
23 # The fact that you are presently reading this means that you have had
24 # knowledge of the CeCILL-B license and that you accept its terms.
25 # ------------------------------------------------------------------------
27 #ifndef BRUKERFIELDDATA_H
28 #define BRUKERFIELDDATA_H
29 /*! \file brukerFieldData.h
33 #include "brukerSystem.h"
36 \class BrukerFieldData
37 \brief This class is an atom to generate a BrukerDataSet
39 class creaBruker_EXPORT BrukerFieldData {
40 friend class BrukerDataSet;
42 /*! \brief Constructor
44 BrukerFieldData () {};
47 ~BrukerFieldData (){};
48 /*! \brief Returns the keyword type: int, float, string as a string
50 const std::string &GetDataType() { return DataType;}
51 /*! \fn int GetDimensionNumber()
52 \brief Returns the dimension of the keyword:
58 int GetDimensionNumber() { return DimensionNumber;}
59 /*! \fn const std::vector<int> &GetDimensionNumberValue( )
60 \brief Returns a vector of size DimensionNumber giving the size of each dimension of the keyword
62 const std::vector<int> &GetDimensionNumberValue( ) { return DimensionNumberValue;}
63 /*! \fn int GetNumberOfElements()
64 \brief Returns the total number of elements for keyword
66 int GetNumberOfElements() { return NumberOfElements;}
68 \fn const std::vector<std::string> &GetStringValue()
69 \brief Return a string vector of all the element of keyword
71 const std::vector<std::string> &GetStringValue() { return StringValue;}
73 \fn const std::vector<int> &GetIntValue ()
74 \brief Return an int vector of all the element of keyword
76 const std::vector<int> &GetIntValue () { return IntValue;}
78 \fn const std::vector<double> &GetDoubleValue()
79 \brief Return a double vector of all the element of keyword
81 const std::vector<double> &GetDoubleValue() { return DoubleValue;}
88 \brief Datatype of the keyword content
91 /*! \var DimensionNumber
92 \brief Dimmensionnality of the keyword
95 /*! \var DimensionNumberValue
96 \brief Vector of int giving the dimension of each dimension of the keyword content
98 std::vector<int> DimensionNumberValue;
99 /*! \var NumberOfElements
100 \brief Total number of elements contained in keyword
102 int NumberOfElements;
104 \brief Vector of string containing the elements of keyword if they are string
106 std::vector<std::string> StringValue;
108 \brief Vector of string containing the elements of keyword if they are string
110 std::vector<int> IntValue;
112 \brief Vector of string containing the elements of keyword if they are string
114 std::vector<double> DoubleValue;