CARTA Backend
The backend component of CARTA
Loading...
Searching...
No Matches
carta::Table Class Reference

#include <Table.h>

Collaboration diagram for carta::Table:
[legend]

Public Member Functions

 Table (const std::string &filename, bool header_only=false)
 
bool IsValid () const
 
std::string ParseError () const
 
const ColumnGetColumnByName (const std::string &name) const
 
const ColumnGetColumnById (const std::string &id) const
 
size_t NumColumns () const
 
size_t NumRows () const
 
size_t AvailableRows () const
 
CARTA::CatalogFileType Type () const
 
const std::string & Description () const
 
const std::string Parameters () const
 
const CARTA::Coosys & Coosys () const
 
TableView View () const
 
const Columnoperator[] (size_t i) const
 
const Columnoperator[] (const std::string &name_or_id) const
 

Protected Member Functions

bool ConstructFromXML (bool header_only=false)
 
bool PopulateCoosys (const pugi::xml_node &votable)
 
bool PopulateParams (const pugi::xml_node &table)
 
bool PopulateFields (const pugi::xml_node &table)
 
bool PopulateRows (const pugi::xml_node &table)
 
bool ConstructFromFITS (bool header_only=false)
 

Static Protected Member Functions

static std::string GetHeader (const std::string &filename)
 

Protected Attributes

bool _valid
 
CARTA::CatalogFileType _file_type
 
CARTA::Coosys _coosys
 
int64_t _num_rows
 
int64_t _available_rows
 
std::string _parse_error_message
 
std::string _filename
 
std::string _description
 
std::vector< TableParam_params
 
std::vector< std::unique_ptr< Column > > _columns
 
std::unordered_map< std::string, Column * > _column_name_map
 
std::unordered_map< std::string, Column * > _column_id_map
 

Constructor & Destructor Documentation

◆ Table()

carta::Table::Table ( const std::string &  filename,
bool  header_only = false 
)
Here is the call graph for this function:

Member Function Documentation

◆ AvailableRows()

std::size_t carta::Table::AvailableRows ( ) const
Here is the caller graph for this function:

◆ ConstructFromFITS()

bool carta::Table::ConstructFromFITS ( bool  header_only = false)
protected
Here is the call graph for this function:
Here is the caller graph for this function:

◆ ConstructFromXML()

bool carta::Table::ConstructFromXML ( bool  header_only = false)
protected
Here is the call graph for this function:
Here is the caller graph for this function:

◆ Coosys()

const CARTA::Coosys & carta::Table::Coosys ( ) const
Here is the caller graph for this function:

◆ Description()

const std::string & carta::Table::Description ( ) const
Here is the caller graph for this function:

◆ GetColumnById()

const Column * carta::Table::GetColumnById ( const std::string &  id) const
Here is the caller graph for this function:

◆ GetColumnByName()

const Column * carta::Table::GetColumnByName ( const std::string &  name) const
Here is the caller graph for this function:

◆ GetHeader()

string carta::Table::GetHeader ( const std::string &  filename)
staticprotected
Here is the caller graph for this function:

◆ IsValid()

bool carta::Table::IsValid ( ) const
Here is the caller graph for this function:

◆ NumColumns()

size_t carta::Table::NumColumns ( ) const
Here is the caller graph for this function:

◆ NumRows()

size_t carta::Table::NumRows ( ) const
Here is the caller graph for this function:

◆ operator[]() [1/2]

const Column * carta::Table::operator[] ( const std::string &  name_or_id) const
Here is the call graph for this function:

◆ operator[]() [2/2]

const Column * carta::Table::operator[] ( size_t  i) const

◆ Parameters()

const std::string carta::Table::Parameters ( ) const
Here is the caller graph for this function:

◆ ParseError()

std::string carta::Table::ParseError ( ) const
Here is the caller graph for this function:

◆ PopulateCoosys()

bool carta::Table::PopulateCoosys ( const pugi::xml_node &  votable)
protected
Here is the caller graph for this function:

◆ PopulateFields()

bool carta::Table::PopulateFields ( const pugi::xml_node &  table)
protected
Here is the call graph for this function:
Here is the caller graph for this function:

◆ PopulateParams()

bool carta::Table::PopulateParams ( const pugi::xml_node &  table)
protected
Here is the caller graph for this function:

◆ PopulateRows()

bool carta::Table::PopulateRows ( const pugi::xml_node &  table)
protected
Here is the call graph for this function:
Here is the caller graph for this function:

◆ Type()

CARTA::CatalogFileType carta::Table::Type ( ) const
Here is the caller graph for this function:

◆ View()

TableView carta::Table::View ( ) const
Here is the caller graph for this function:

Member Data Documentation

◆ _available_rows

int64_t carta::Table::_available_rows
protected

◆ _column_id_map

std::unordered_map<std::string, Column*> carta::Table::_column_id_map
protected

◆ _column_name_map

std::unordered_map<std::string, Column*> carta::Table::_column_name_map
protected

◆ _columns

std::vector<std::unique_ptr<Column> > carta::Table::_columns
protected

◆ _coosys

CARTA::Coosys carta::Table::_coosys
protected

◆ _description

std::string carta::Table::_description
protected

◆ _file_type

CARTA::CatalogFileType carta::Table::_file_type
protected

◆ _filename

std::string carta::Table::_filename
protected

◆ _num_rows

int64_t carta::Table::_num_rows
protected

◆ _params

std::vector<TableParam> carta::Table::_params
protected

◆ _parse_error_message

std::string carta::Table::_parse_error_message
protected

◆ _valid

bool carta::Table::_valid
protected

The documentation for this class was generated from the following files: