Alexandria  2.14.1
Please provide a description of the project.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
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 
51 public:
85  const bool missing_photometry_enabled,
86  const double missing_photometry_flag,
87  const bool upper_limit_enabled);
88 
89  virtual ~PhotometryAttributeFromRow();
90 
97  std::unique_ptr<Attribute> createAttribute(const Euclid::Table::Row& row) override;
98 
99 private:
100  /*
101  * Map the correspondence between the filterName and the indexes used in the Table columns
102  */
104 
105  /*
106  * Pointer to the shared filter name vector
107  */
109 
111 
112  /*
113  * Flag value for missing photometry data
114  */
116 
118 
119 };
120 
121 } // namespace SourceCatalog
122 } // end of namespace Euclid
123 
124 #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