mixmod  3.2.0
Mixture models for clustering and classification
 All Classes Namespaces Files Functions Variables Enumerations Friends
ColumnDescription.h
1 /***************************************************************************
2  SRC/mixmod/Kernel/IO/ColumnDescription.h description
3  copyright : (C) MIXMOD Team - 2001-2016
4  email : contact@mixmod.org
5  ***************************************************************************/
6 
7 /***************************************************************************
8  This file is part of MIXMOD
9 
10  MIXMOD is free software: you can redistribute it and/or modify
11  it under the terms of the GNU General Public License as published by
12  the Free Software Foundation, either version 3 of the License, or
13  (at your option) any later version.
14 
15  MIXMOD is distributed in the hope that it will be useful,
16  but WITHOUT ANY WARRANTY; without even the implied warranty of
17  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18  GNU General Public License for more details.
19 
20  You should have received a copy of the GNU General Public License
21  along with MIXMOD. If not, see <http://www.gnu.org/licenses/>.
22 
23  All informations available on : http://www.mixmod.org
24 ***************************************************************************/
25 #ifndef XEMCOLUMNDESCRIPTION_H
26 #define XEMCOLUMNDESCRIPTION_H
27 
28 #include "mixmod/Utilities/Util.h"
29 
30 namespace XEM {
31 
39 
40 public:
41 
44 
46  ColumnDescription(int64_t index);
47 
49  virtual ~ColumnDescription();
50 
51  virtual std::string editType() = 0;
52 
53  virtual ColumnDescription * clone()const = 0;
54 
56 
58  const int64_t & getIndex()const;
59 
61  const std::string & getName()const;
62 
64  void setName(std::string & strName);
65 
66 protected:
67 
69  int64_t _index;
70 
72  std::string _name;
73 };
74 
75 inline const int64_t & ColumnDescription::getIndex()const {
76  return _index;
77 }
78 
79 inline const std::string & ColumnDescription::getName()const {
80  return _name;
81 }
82 
83 inline void ColumnDescription::setName(std::string & strName) {
84  _name = strName;
85 }
86 
87 }
88 
89 #endif // XEMCOLUMNDESCRIPTION_H
virtual ~ColumnDescription()
Destructor.
Definition: ColumnDescription.cpp:45
Definition: ColumnDescription.h:38
const std::string & getName() const
get name of column
Definition: ColumnDescription.h:79
ColumnDescription()
Default constructor.
Definition: ColumnDescription.cpp:33
Constants definitions, various utilities to describe models, and others...
const int64_t & getIndex() const
selector
Definition: ColumnDescription.h:75
void setName(std::string &strName)
set name of column
Definition: ColumnDescription.h:83