Alexandria  2.18
Please provide a description of the project.
PhotometryAttributeFromRow.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2012-2021 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 <memory>
30 #include <string>
31 #include <utility>
32 
33 #include "ElementsKernel/Export.h"
34 
36 #include "SourceCatalog/Catalog.h"
37 #include "Table/Table.h"
38 
39 namespace Euclid {
40 namespace SourceCatalog {
41 
50 public:
84  const bool missing_photometry_enabled, const double missing_photometry_flag,
85  const bool upper_limit_enabled, const std::vector<std::pair<std::string, float>> n_map,
86  const double n_upper_limit_flag);
87 
88  virtual ~PhotometryAttributeFromRow();
89 
96  std::unique_ptr<Attribute> createAttribute(const Euclid::Table::Row& row) override;
97 
98 private:
99  /*
100  * Map the correspondence between the filterName and the indexes used in the Table columns
101  */
103 
104  /*
105  * Pointer to the shared filter name vector
106  */
108 
110 
111  /*
112  * Flag value for missing photometry data
113  */
115 
117 
119 
121 };
122 
123 } // namespace SourceCatalog
124 } // end of namespace Euclid
125 
126 #endif // PHOTOMETRYATTRIBUTEFROMROW_H_
Euclid::SourceCatalog::PhotometryAttributeFromRow::m_n_map
std::vector< std::pair< std::string, float > > m_n_map
Definition: PhotometryAttributeFromRow.h:118
Euclid::SourceCatalog::PhotometryAttributeFromRow::m_upper_limit_enabled
bool m_upper_limit_enabled
Definition: PhotometryAttributeFromRow.h:116
std::string
STL class.
std::shared_ptr< Euclid::Table::ColumnInfo >
Export.h
std::pair
Euclid::SourceCatalog::PhotometryAttributeFromRow::m_missing_photometry_enabled
bool m_missing_photometry_enabled
Definition: PhotometryAttributeFromRow.h:109
std::vector
STL class.
Euclid::SourceCatalog::PhotometryAttributeFromRow
Implementation of the AttributeFromRow for a photometry attribute. This class implements the createAt...
Definition: PhotometryAttributeFromRow.h:49
Euclid::SourceCatalog::PhotometryAttributeFromRow::m_n_upper_limit_flag
double m_n_upper_limit_flag
Definition: PhotometryAttributeFromRow.h:120
AttributeFromRow.h
Catalog.h
ELEMENTS_API
#define ELEMENTS_API
Euclid::SourceCatalog::PhotometryAttributeFromRow::m_table_index_vector
std::vector< std::pair< size_t, size_t > > m_table_index_vector
Definition: PhotometryAttributeFromRow.h:102
Euclid::SourceCatalog::AttributeFromRow
Interface for building a source Attribute from a table Row.
Definition: AttributeFromRow.h:45
Euclid::SourceCatalog::PhotometryAttributeFromRow::m_missing_photometry_flag
double m_missing_photometry_flag
Definition: PhotometryAttributeFromRow.h:114
Euclid::SourceCatalog::PhotometryAttributeFromRow::m_filter_name_vector_ptr
std::shared_ptr< std::vector< std::string > > m_filter_name_vector_ptr
Definition: PhotometryAttributeFromRow.h:107
Euclid::Table::Row
Represents one row of a Table.
Definition: Row.h:64
std::unique_ptr
STL class.
Euclid
Definition: InstOrRefHolder.h:29
Table.h