casacore
Loading...
Searching...
No Matches
MemoryStMan.h
Go to the documentation of this file.
1//# MemoryStMan.h: Storage manager for tables using memory
2//# Copyright (C) 2003
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_MEMORYSTMAN_H
27#define TABLES_MEMORYSTMAN_H
28
29
30//# Includes
31#include <casacore/casa/aips.h>
32#include <casacore/tables/DataMan/MSMBase.h>
33
34
35namespace casacore { //# NAMESPACE CASACORE - BEGIN
36
37// <summary>
38// Memory-based table storage manager class
39// </summary>
40
41// <use visibility=export>
42
43// <reviewed reviewer="UNKNOWN" date="before2004/08/25" tests="">
44// </reviewed>
45
46// <prerequisite>
47//# Classes you should understand before using this one.
48// <li> <linkto class=DataManager>DataManager</linkto>
49// <li> <linkto class=MSMColumn>MSMColumn</linkto>
50// </prerequisite>
51
52// <synopsis>
53// MemoryStMan is a table storage manager based in memory.
54// It holds all data in the columns in memory and deletes them
55// when the table gets closed.
56// It contains pointers to the underlying MSMColumn objects,
57// which do the actual data handling.
58//
59// The Memory storage manager does fully support addition and removal
60// of rows and columns.
61//
62// The primary use of this storage manager is for a memory-based table,
63// but it can also be used for temporary columns in disk-based tables.
64// When reopening a disk-based table, possible columns stored with
65// MemoryStMan will be initialized to 0.
66// An important issue is synchronizing tables containing MemoryStMan
67// storage managers in case of concurrent access. Because its data are
68// not stored on disk, there is no way to synchronize the data if another
69// process changed data or added or deleted rows. If the number or rows
70// has changed, rows will be added or deleted as needed. Row deletion
71// will be done at the end of the table.
72// </synopsis>
73
74//# <todo asof="$DATE:$">
75//# A List of bugs, limitations, extensions or planned refinements.
76//# </todo>
77
78
79class MemoryStMan: public MSMBase
80{
81public:
82 // Create an Memory storage manager.
83 // Its name will be blank.
85
86 // Create an Memory storage manager with the given name.
87 // Its name can be used later in e.g. Table::addColumn to
88 // add a column to this storage manager.
89 MemoryStMan (const String& storageManagerName);
90
92};
93
94
95
96} //# NAMESPACE CASACORE - END
97
98#endif
MemoryStMan()
Create an Memory storage manager.
MemoryStMan(const String &storageManagerName)
Create an Memory storage manager with the given name.
String: the storage and methods of handling collections of characters.
Definition String.h:223
this file contains all the compiler specific defines
Definition mainpage.dox:28