/* # --------------------------------------------------------------------- # # Copyright (c) CREATIS (Centre de Recherche en Acquisition et Traitement de l'Image # pour la Santé) # Authors : Eduardo Davila, Frederic Cervenansky, Claire Mouton # Previous Authors : Laurent Guigues, Jean-Pierre Roux # CreaTools website : www.creatis.insa-lyon.fr/site/fr/creatools_accueil # # This software is governed by the CeCILL-B license under French law and # abiding by the rules of distribution of free software. You can use, # modify and/ or redistribute the software under the terms of the CeCILL-B # license as circulated by CEA, CNRS and INRIA at the following URL # http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html # or in the file LICENSE.txt. # # As a counterpart to the access to the source code and rights to copy, # modify and redistribute granted by the license, users are provided only # with a limited warranty and the software's author, the holder of the # economic rights, and the successive licensors have only limited # liability. # # The fact that you are presently reading this means that you have had # knowledge of the CeCILL-B license and that you accept its terms. # ------------------------------------------------------------------------ */ #ifndef BRUKERFIELDDATA_H #define BRUKERFIELDDATA_H /*! \file brukerFieldData.h */ #include #include #include "brukerSystem.h" /** \class BrukerFieldData \brief This class is an atom to generate a BrukerDataSet */ class /*creaBruker_EXPORT*/ BrukerFieldData { friend class BrukerDataSet; public: /*! \brief Constructor */ BrukerFieldData () {}; /*! \brief Destructor */ ~BrukerFieldData (){}; /*! \brief Returns the keyword type: int, float, string as a string */ const std::string &GetDataType() { return DataType;} /*! \fn int GetDimensionNumber() \brief Returns the dimension of the keyword: 0-> scalar 1-> 1D vector 2-> 2D vector ... */ int GetDimensionNumber() { return DimensionNumber;} /*! \fn const std::vector &GetDimensionNumberValue( ) \brief Returns a vector of size DimensionNumber giving the size of each dimension of the keyword */ const std::vector &GetDimensionNumberValue( ) { return DimensionNumberValue;} /*! \fn int GetNumberOfElements() \brief Returns the total number of elements for keyword */ int GetNumberOfElements() { return NumberOfElements;} /*! \fn const std::vector &GetStringValue() \brief Return a string vector of all the element of keyword */ const std::vector &GetStringValue() { return StringValue;} /*! \fn const std::vector &GetIntValue () \brief Return an int vector of all the element of keyword */ const std::vector &GetIntValue () { return IntValue;} /*! \fn const std::vector &GetDoubleValue() \brief Return a double vector of all the element of keyword */ const std::vector &GetDoubleValue() { return DoubleValue;} void PrintSelf(); private : /*! \var DataType \brief Datatype of the keyword content */ std::string DataType; /*! \var DimensionNumber \brief Dimmensionnality of the keyword */ int DimensionNumber; /*! \var DimensionNumberValue \brief Vector of int giving the dimension of each dimension of the keyword content */ std::vector DimensionNumberValue; /*! \var NumberOfElements \brief Total number of elements contained in keyword */ int NumberOfElements; /*! \var StringValue \brief Vector of string containing the elements of keyword if they are string */ std::vector StringValue; /*! \var IntValue \brief Vector of string containing the elements of keyword if they are string */ std::vector IntValue; /*! \var DoubleValue \brief Vector of string containing the elements of keyword if they are string */ std::vector DoubleValue; }; #endif