129 if (
this != &votable) {
194 std::string s1(
"VOTABLE version=\"1.3\" xmlns:xsi=\"http://www.w3.org/"
195 "2001/XMLSchema-instance\" xmlns=\"http://www.ivoa.net/"
196 "xml/VOTable/v1.3\" xmlns:stc=\"http://www.ivoa.net/xml/"
198 std::string s2(
"RESOURCE name=\""+
m_resource+
"\"");
199 std::string s3(
"TABLE name=\""+
m_name+
"\"");
209 for (
int i = 0; i < table.
ncols(); ++i) {
236 result.append(
"=== GVOTable ===");
308 std::string datatype;
309 switch (column.
type()) {
311 datatype =
"boolean";
318 datatype =
"unsignedByte";
343 datatype =
"floatComplex";
346 datatype =
"doubleComplex";
349 datatype =
"unknown";
377 for (
int row = 0; row < table.
nrows(); ++row) {
383 for (
int col = 0; col < table.
ncols(); ++col) {
void unit(const std::string &unit)
Set column unit.
const int & ncols(void) const
Return number of columns in table.
GVOTable(void)
Void constructor.
XML element node class interface definition.
std::string print(const GChatter &chatter=NORMAL) const
Print XML object.
GXmlElement field_from_fits_column(const GFitsTableCol &column) const
Return FIELD element with column description.
GVOTable & operator=(const GVOTable &votable)
Assignment operator.
std::string m_description
VO table description.
void clear(void)
Clear XML object.
FITS table column abstract base class definition.
std::string m_resource
VO resource name.
virtual std::string classname(void) const =0
Return class name.
void init_members(void)
Initialise class members.
virtual ~GVOTable(void)
Destructor.
const GXmlAttribute * attribute(const int &index) const
Return attribute.
void read(const GFitsTable &table)
Read VO table from FITS table.
CFITSIO interface header.
Abstract interface for FITS table column.
Abstract interface for FITS table.
void type(const int &type)
Set type code.
void free_members(void)
Delete class members.
void copy_members(const GVOTable &table)
Copy class members.
const std::string & extname(void) const
Return extension name.
GVOTable * clone(void) const
Clone object.
const int & nrows(void) const
Return number of rows in table.
void colnum(const int &colnum)
Set column number.
std::string m_name
VO table name.
std::string print(const GChatter &chatter=NORMAL) const
Print VO Table information.
GXmlElement data_from_fits_table(const GFitsTable &table) const
Return DATA element with FITS table data.
VO table class definition.
void clear(void)
Clear object.
virtual GXmlNode * append(const GXmlNode &node)
Append XML child node.
void name(const std::string &name)
Set column name.
GXmlNode * append(const GXmlNode &node)
Append child node to XML document root.
std::string str(const unsigned short int &value)
Convert unsigned short integer value into string.
FITS table abstract base class interface definition.