casacore
Loading...
Searching...
No Matches
casa
OS.h
Go to the documentation of this file.
1
// # OS.h: Classes for operating system services, and assorted other things
2
// # Copyright (C) 1995,1996,1998,1999,2001,2002
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 CASA_OS_H
27
#define CASA_OS_H
28
29
// # Includes
30
#include <casacore/casa/aips.h>
31
32
#include <casacore/casa/OS/EnvVar.h>
33
#include <casacore/casa/OS/Path.h>
34
#include <casacore/casa/OS/RegularFile.h>
35
#include <casacore/casa/OS/SymLink.h>
36
#include <casacore/casa/OS/Directory.h>
37
#include <casacore/casa/OS/DirectoryIterator.h>
38
39
#include <casacore/casa/OS/Time.h>
40
#include <casacore/casa/OS/Timer.h>
41
42
#include <casacore/casa/OS/Conversion.h>
43
#include <casacore/casa/OS/CanonicalConversion.h>
44
#include <casacore/casa/OS/DataConversion.h>
45
#include <casacore/casa/OS/CanonicalDataConversion.h>
46
47
#include <casacore/casa/OS/Memory.h>
48
#include <casacore/casa/OS/MemoryTrace.h>
49
50
namespace
casacore
{
// # NAMESPACE CASACORE - BEGIN
51
52
// <module>
53
//
54
// <summary>
55
// Classes for operating system services, and assorted other things
56
// </summary>
57
58
// <prerequisite>
59
// <li> Nothing special
60
// </prerequisite>
61
//
62
63
// <reviewed reviewer="Paul Shannon" date="1995/06/02/ demos="">
64
// </reviewed>
65
66
// <etymology>
67
// 'OS' is the standard abbreviation for 'Operating System'.
68
// </etymology>
69
//
70
// <synopsis>
71
// This module's main purpose is to provide convenient and uniform
72
// access to operating system features: environment variables, file
73
// and directory access, time and date services, and uniform data
74
// representation (which solves the variety of ways the fundamental
75
// data types are represented in hardware).
76
// <p>
77
// The following functionality is available:
78
// <ul>
79
// <li> Class <linkto class=EnvironmentVariable:description>
80
// EnvironmentVariable</linkto>
81
// for access to environment variables.
82
// <li> Class <linkto class=Path:description>Path</linkto>,
83
// <linkto class=RegularFile:description>RegularFile</linkto>,
84
// <linkto class=SymLink:description>SymLink</linkto>, and
85
// <linkto class=Directory:description>Directory</linkto>
86
// for dealing with the file system.
87
// Note that module <linkto module=IO>IO</linkto> deals with
88
// reading and writing data to files and other IO streams.
89
// <li> Class <linkto class=Time:description>Time</linkto>
90
// to get the system time.
91
// <li> Class <linkto class=Timer:description>Timer</linkto>
92
// to measure elapsed, user, and system time of a piece of code.
93
// <li> Framework <linkto class=Conversion:description>Conversion</linkto>
94
// to convert data from one format to another. There are
95
// classes to convert to/from
96
// <linkto class=CanonicalConversion:description>canonical</linkto>
97
// format,
98
// <linkto class=VAXConversion:description>VAX</linkto> format, and
99
// <linkto class=IBMConversion:description>IBM/360</linkto> format.
100
// The structure of the framework is shown in the
101
// <a href="OS/OS_1.html">OMT diagram</a>.
102
// <li> A class to encapsulate <linkto class=Memory>Memory</linkto> usage.
103
// Class MemoryTrace makes it possible to trace all memory (de)allocations
104
// through malloc and free (new and delete).
105
// It only works on Linux systems though.
106
// </ul>
107
108
// </synopsis>
109
110
// <example>
111
// See the various class header files.
112
// </example>
113
//
114
// <motivation>
115
// We want to provide a simple and uniform interface to OS services and
116
// features for the application and library programmer. To pick a few
117
// examples:
118
// <ol>
119
// <li> Recursive deletion of a directory.
120
// <li> Access to time and date information.
121
// <li> Get and set environment variables.
122
// </ol>
123
// </motivation>
124
125
// <todo asof="1995/06/02">
126
// <li> The OS module is a bit fuzzy: for example, canonical data
127
// format conversion is more a matter of hardware than of operating
128
// system differences. Perhaps these particular classes should be
129
// moved to a new module.
130
// <li> Time and Date classes should be revised after studying
131
// similar classes designed by others. Roel Martinez is tenatively
132
// scheduled to do this in the late summer of 1995.
133
// <li> There was once some discussion of a 'VOS' (virtual operating system)
134
// module. This seems like a good idea. Nested subdirectories for
135
// specific operating systems would contain the implementations, but
136
// a common interface would be used for all. And perhaps local
137
// site makedefs could be used to select the proper implementation
138
// to link against, with no special action required of the programmer.
139
// </todo>
140
141
// </module>
142
143
}
// namespace casacore
144
145
#endif
casacore
For temporary backward namespace compatibility, use casa as alias for casacore.
Definition
mainpage.dox:28
Generated by
1.15.0