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