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
34namespace casacore { // # NAMESPACE CASACORE - BEGIN
35
36// <summary>
37// Search path for table files
38// </summary>
39
40// <use visibility=local>
41
42// <reviewed reviewer="UNKNOWN" date="before2004/08/25" tests="" demos="">
43// </reviewed>
44
45// <prerequisite>
46// </prerequisite>
47
48// <synopsis>
49// TabPath is the class containing the search path for table files.
50// It is used by the TabDesc class to find the directory of a table
51// description.
52// </synopsis>
53
54// <todo asof="$DATE:$">
55// <li> This class has to be replaced by a more general path class.
56// </todo>
57
58class TabPath {
59 public:
60 // Create a table file search path with a .COD{Directory}
61 // Use default path ., ~/TabDir
63
64 // Create a table file search path with given path name.
65 TabPath(const String&);
66
67 // Remove a table file search path.
69
70 // Find a file in one of the directories.
71 Bool found(const String&, String&) const;
72
73 // Get the directory name.
74 const String& dir(uInt dirnr) const;
75
76 private:
77 Block<String> tabDir_p; // file directories
78 uInt nrDir_p; // # directories
79};
80
81} // namespace casacore
82
83#endif
String: the storage and methods of handling collections of characters.
Definition String.h:355
Block< String > tabDir_p
Definition TabPath.h:77
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.
For temporary backward namespace compatibility, use casa as alias for casacore.
Definition mainpage.dox:28
unsigned int uInt
Definition aipstype.h:49
bool Bool
Define the standard types used by Casacore.
Definition aipstype.h:40