Alexandria
2.31.0
SDC-CH common library for the Euclid project
Loading...
Searching...
No Matches
SourceCatalog
SourceCatalog
CatalogFromTable.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
25
#ifndef CATALOGFACTORY_H_
26
#define CATALOGFACTORY_H_
27
#include <map>
28
#include <memory>
29
#include <string>
30
#include <utility>
31
32
#include "
ElementsKernel/Export.h
"
33
34
#include "
SourceCatalog/AttributeFromRow.h
"
35
#include "
SourceCatalog/Catalog.h
"
36
#include "
Table/Table.h
"
37
38
namespace
Euclid
{
39
namespace
SourceCatalog {
40
41
class
ELEMENTS_API
CatalogFromTable
{
42
public
:
43
CatalogFromTable
(
std::shared_ptr<Euclid::Table::ColumnInfo>
column_info_ptr
,
const
std::string
&
source_id_column_name
,
44
std::vector
<
std::shared_ptr<AttributeFromRow>
>
attribute_from_row_ptr_vector
);
45
46
virtual
~CatalogFromTable
();
47
48
Euclid::SourceCatalog::Catalog
createCatalog(
const
Euclid::Table::Table
&
input_table
);
49
50
private
:
51
size_t
m_source_id_index
;
52
53
std::vector<std::shared_ptr<AttributeFromRow>
>
m_attribute_from_row_ptr_vector
;
54
};
55
56
}
// namespace SourceCatalog
57
}
// end of namespace Euclid
58
59
#endif
// CATALOGFACTORY_H_
AttributeFromRow.h
Catalog.h
Export.h
Table.h
std::string
Euclid::SourceCatalog::CatalogFromTable
Definition
CatalogFromTable.h:41
Euclid::SourceCatalog::CatalogFromTable::m_attribute_from_row_ptr_vector
std::vector< std::shared_ptr< AttributeFromRow > > m_attribute_from_row_ptr_vector
Definition
CatalogFromTable.h:53
Euclid::SourceCatalog::CatalogFromTable::m_source_id_index
size_t m_source_id_index
Definition
CatalogFromTable.h:51
Euclid::SourceCatalog::CatalogFromTable::~CatalogFromTable
virtual ~CatalogFromTable()
Euclid::SourceCatalog::Catalog
Catalog contains a container of sources.
Definition
Catalog.h:47
Euclid::SourceCatalog::Coordinates
Store the Right Ascension (Ra) and Delination (Dec) of a source in decimal degrees,...
Definition
Coordinates.h:41
Euclid::Table::Table
Represents a table.
Definition
Table.h:49
ELEMENTS_API
#define ELEMENTS_API
Euclid
Definition
index_sequence.h:27
std::shared_ptr
std::vector
Generated by
1.9.8