casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
VWBT.h
Go to the documentation of this file.
1 //# VWBT.h: This file contains the interface definition of the VWBT class.
2 //#
3 //# CASA - Common Astronomy Software Applications (http://casa.nrao.edu/)
4 //# Copyright (C) Associated Universities, Inc. Washington DC, USA 2011, All rights reserved.
5 //# Copyright (C) European Southern Observatory, 2011, All rights reserved.
6 //#
7 //# This library is free software; you can redistribute it and/or
8 //# modify it under the terms of the GNU Lesser General Public
9 //# License as published by the Free software Foundation; either
10 //# version 2.1 of the License, or (at your option) any later version.
11 //#
12 //# This library is distributed in the hope that it will be useful,
13 //# but WITHOUT ANY WARRANTY, without even the implied warranty of
14 //# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 //# Lesser General Public License for more details.
16 //#
17 //# You should have received a copy of the GNU Lesser General Public
18 //# License along with this library; if not, write to the Free Software
19 //# Foundation, Inc., 59 Temple Place, Suite 330, Boston,
20 //# MA 02111-1307 USA
21 //# $Id: $
22 
23 #ifndef VWBT_H_
24 #define VWBT_H_
25 
28 using namespace casa::async;
29 
30 namespace casa { //# NAMESPACE CASA - BEGIN
31 
32 class VWBT : public casa::async::Thread {
33 
34 public:
35 
36  VWBT(VisibilityIterator *visibilityIterator,
37  casa::async::Mutex * msAccessMutex,
38  bool groupRows);
39 
40  ~VWBT ();
41 
42  void start();
43  void terminate ();
44  bool isWriting() { return writing_p;}
45 
46  // We just want a de-referenced copy
47  void setFlag(casacore::Cube<casacore::Bool> flagCube);
48 
49 protected:
50 
51  void * run ();
52 
53  void initialize();
54  bool next();
55 
56 
57 private:
58 
59  // State parameters
63 
64  // Writing members
68 
69  // Configuration parameters
71 };
72 
73 } //# NAMESPACE CASA - END
74 
75 #endif /* VWBT_H_ */
76 
casacore::Bool groupRows_p
Configuration parameters.
Definition: VWBT.h:70
volatile casacore::Bool terminationRequested_p
State parameters.
Definition: VWBT.h:60
casacore::Bool writing_p
Definition: VWBT.h:62
casacore::Cube< casacore::Bool > * flagCube_p
Definition: VWBT.h:67
bool isWriting()
Definition: VWBT.h:44
casa::async::Mutex * msAccessMutex_p
Definition: VWBT.h:66
VisibilityIterator * visibilityIterator_p
Writing members.
Definition: VWBT.h:65
bool Bool
Define the standard types used by Casacore.
Definition: aipstype.h:42
VisibilityIterator iterates through one or more writable MeasurementSets.
casacore::Bool threadTerminated_p
Definition: VWBT.h:61