casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
TBExportThread.h
Go to the documentation of this file.
1 //# TBExportThread.h: Thread that exports a table to VOTable XML format.
2 //# Copyright (C) 2005
3 //# Associated Universities, Inc. Washington DC, USA.
4 //#
5 //# This library is free software; you can redistribute it and/or modify it
6 //# under the terms of the GNU Library General Public License as published by
7 //# the Free Software Foundation; either version 2 of the License, or (at your
8 //# option) any later version.
9 //#
10 //# This library is distributed in the hope that it will be useful, but WITHOUT
11 //# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12 //# FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public
13 //# License for more details.
14 //#
15 //# You should have received a copy of the GNU Library General Public License
16 //# along with this library; if not, write to the Free Software Foundation,
17 //# Inc., 675 Massachusetts Ave, Cambridge, MA 02139, USA.
18 //#
19 //# Correspondence concerning AIPS++ should be addressed as follows:
20 //# Internet email: aips2-request@nrao.edu.
21 //# Postal address: AIPS++ Project Office
22 //# National Radio Astronomy Observatory
23 //# 520 Edgemont Road
24 //# Charlottesville, VA 22903-2475 USA
25 //#
26 //# $Id: $
27 #ifndef TBEXPORTTHREAD_H_
28 #define TBEXPORTTHREAD_H_
29 
30 #include <QtGui>
31 
32 #include <casa/BasicSL/String.h>
33 
34 namespace casa {
35 
36 //# Forward Declarations
37 class TBTable;
38 class ProgressHelper;
39 
40 // <summary>
41 // Thread that exports a table to VOTable XML format.
42 // <summary>
43 //
44 // <synopsis>
45 // TBExportThread is a subclass of QThread assigned with the task of exporting a
46 // table into VOTable XML format to a specified file. This task can work in the
47 // background to allow the user to continue interacting with the table browser.
48 // </synopsis>
49 
50 class TBExportThread : public QThread {
51 public:
52  // Constructor that takes the table to export, the file to export to, and an
53  // optional ProgressHelper to show the progress of the export.
56 
58 
59 
60  // Overrides QThread::run() which defines the task to be completed by the
61  // thread. See TBTable::exportVOTable().
62  void run();
63 
64 private:
65  // casacore::Table to export.
67 
68  // casacore::File to export to.
70 
71  // (Optional) progress helper.
73 };
74 
75 }
76 
77 #endif /* TBEXPORTTHREAD_H_ */
ProgressHelper * progressPanel
(Optional) progress helper.
TBExportThread(TBTable *table, casacore::String file, ProgressHelper *progressPanel=NULL)
Constructor that takes the table to export, the file to export to, and an optional ProgressHelper to ...
Wrapper around a QProgressPanel or other QLabel/QProgressBar pairing.
Primary interface for the rest of the browser to a table.
Definition: TBTable.h:152
void run()
Overrides QThread::run() which defines the task to be completed by the thread.
casacore::String file
casacore::File to export to.
TBTable * table
casacore::Table to export.
String: the storage and methods of handling collections of characters.
Definition: String.h:223
Defines nreal time structures used by the VLA table filler.
Definition: nreal.h:100
Thread that exports a table to VOTable XML format.