casacore
Loading...
Searching...
No Matches
TabPath.h
Go to the documentation of this file.
1//# TabPath.h: Search path for table files
2//# Copyright (C) 1993,1994,1995
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: casa-feedback@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#ifndef TABLES_TABPATH_H
27#define TABLES_TABPATH_H
28
29//# Includes
30#include <casacore/casa/aips.h>
31#include <casacore/casa/BasicSL/String.h>
32#include <casacore/casa/Containers/Block.h>
33
34
35namespace casacore { //# NAMESPACE CASACORE - BEGIN
36
37// <summary>
38// Search path for table files
39// </summary>
40
41// <use visibility=local>
42
43// <reviewed reviewer="UNKNOWN" date="before2004/08/25" tests="" demos="">
44// </reviewed>
45
46// <prerequisite>
47// </prerequisite>
48
49// <synopsis>
50// TabPath is the class containing the search path for table files.
51// It is used by the TabDesc class to find the directory of a table
52// description.
53// </synopsis>
54
55// <todo asof="$DATE:$">
56// <li> This class has to be replaced by a more general path class.
57// </todo>
58
59
61{
62public:
63 // Create a table file search path with a .COD{Directory}
64 // Use default path ., ~/TabDir
66
67 // Create a table file search path with given path name.
68 TabPath (const String&);
69
70 // Remove a table file search path.
72
73 // Find a file in one of the directories.
74 Bool found (const String&, String&) const;
75
76 // Get the directory name.
77 const String& dir (uInt dirnr) const;
78
79private:
80 Block<String> tabDir_p; // file directories
81 uInt nrDir_p; // # directories
82};
83
84
85
86} //# NAMESPACE CASACORE - END
87
88#endif
simple 1-D array
Definition Block.h:198
String: the storage and methods of handling collections of characters.
Definition String.h:223
Block< String > tabDir_p
Definition TabPath.h:80
TabPath(const String &)
Create a table file search path with given path name.
TabPath()
Create a table file search path with a.COD{Directory} Use default path., ~/TabDir.
const String & dir(uInt dirnr) const
Get the directory name.
Bool found(const String &, String &) const
Find a file in one of the directories.
~TabPath()
Remove a table file search path.
this file contains all the compiler specific defines
Definition mainpage.dox:28
unsigned int uInt
Definition aipstype.h:49
bool Bool
Define the standard types used by Casacore.
Definition aipstype.h:40