VOTableData.h 2.56 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
/*************************************************************************
 *   Copyright (C) 2007 by Oliver Bock                                   *
 *   bock@tfh-berlin.de                                                  *
 *                                                                       *
 *   This file is part of Fidelity.                                      *
 *                                                                       *
 *   Fidelity is free software: you can redistribute it and/or modify    *
 *   it under the terms of the GNU General Public License as published   *
 *   by the Free Software Foundation, version 3 of the License.          *
 *                                                                       *
 *   Fidelity is distributed in the hope that it will be useful,         *
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of      *
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the        *
 *   GNU General Public License for more details.                        *
 *                                                                       *
 *   You should have received a copy of the GNU General Public License   *
 *   along with Fidelity. If not, see <http://www.gnu.org/licenses/>.    *
 *                                                                       *
 *************************************************************************/

#ifndef VOTABLEDATA_H
#define VOTABLEDATA_H

#include <QVector>
#include <QDomDocument>
#include <QDomElement>
#include <QPointer>

#include "VOTR.h"

using namespace Fidelity::Common;

namespace Fidelity {
	namespace Common {

/**
 * @author Oliver Bock <bock@tfh-berlin.de>
 * 
 * This class encapsulates the VOTableData XML tag of the VOTable definition version 1.1.
 * See this URL for the latest definition: http://www.ivoa.net/Documents/latest/VOT.html
 * For the time being only XML and binary based output is supported...
 */
class VOTableData : public QObject
{

public:
	/**
	 * Constructor
	 */
	VOTableData();

	/**
	 * Destructor
	 */
	virtual ~VOTableData();


	/**
	 * This method contructs the complete XML fragment (including child elements) of this class
	 * @param parent the parent container tag for this XML fragment
	 * @return bool TRUE if the XML creation was successfull. FALSE if mandatory attributes are empty.
	 */
	bool buildXml(QDomElement* parent);


	/**
	 * Get the value of m_TRList
	 * @return the value of m_TRList
	 */
70
	QVector<QPointer<VOTR> >* TRList();
71
72

private:
73
	QVector<QPointer<VOTR> >* m_TRList;
74
75
76
77
78

	void initAttributes();
};}}

#endif // VOTABLEDATA_H