Alexandria  2.16
Please provide a description of the project.
PhotometryAttributeFromRow.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2012-2020 Euclid Science Ground Segment
3  *
4  * This library is free software; you can redistribute it and/or modify it under
5  * the terms of the GNU Lesser General Public License as published by the Free
6  * Software Foundation; either version 3.0 of the License, or (at your option)
7  * any later version.
8  *
9  * This library is distributed in the hope that it will be useful, but WITHOUT
10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11  * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12  * details.
13  *
14  * You should have received a copy of the GNU Lesser General Public License
15  * along with this library; if not, write to the Free Software Foundation, Inc.,
16  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
17  */
18 
26 #ifndef PHOTOMETRYATTRIBUTEFROMROW_H_
27 #define PHOTOMETRYATTRIBUTEFROMROW_H_
28 #include <map>
29 #include <utility>
30 #include <string>
31 #include <memory>
32 
33 
34 #include "ElementsKernel/Export.h"
35 
37 #include "SourceCatalog/Catalog.h"
38 #include "Table/Table.h"
39 
40 namespace Euclid {
41 namespace SourceCatalog {
42 
43 
52 public:
86  const bool missing_photometry_enabled,
87  const double missing_photometry_flag,
88  const bool upper_limit_enabled,
90  const double n_upper_limit_flag);
91 
92  virtual ~PhotometryAttributeFromRow();
93 
100  std::unique_ptr<Attribute> createAttribute(const Euclid::Table::Row& row) override;
101 
102 private:
103  /*
104  * Map the correspondence between the filterName and the indexes used in the Table columns
105  */
107 
108  /*
109  * Pointer to the shared filter name vector
110  */
112 
114 
115  /*
116  * Flag value for missing photometry data
117  */
119 
121 
123 
125 
126 };
127 
128 } // namespace SourceCatalog
129 } // end of namespace Euclid
130 
131 #endif // PHOTOMETRYATTRIBUTEFROMROW_H_
STL class.
std::vector< std::pair< size_t, size_t > > m_table_index_vector
#define ELEMENTS_API
Interface for building a source Attribute from a table Row.
Represents one row of a Table.
Definition: Row.h:64
Implementation of the AttributeFromRow for a photometry attribute. This class implements the createAt...
STL class.
STL class.
std::shared_ptr< std::vector< std::string > > m_filter_name_vector_ptr
std::vector< std::pair< std::string, float > > m_n_map