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