Last change
on this file since 2828 was 2321, checked in by Malte Marquarding, 13 years ago |
Ticket #249: scantbable schema was changed. This required an update to scantable version 4. I have added a class STUpgrade to handle all schema upgrades. This is handled transparently in the scantable constructor
|
File size:
772 bytes
|
Rev | Line | |
---|
[2321] | 1 | //
|
---|
| 2 | // C++ Interface: STUpgrade
|
---|
| 3 | //
|
---|
| 4 | // Description:
|
---|
| 5 | // Seemlessly upgrade an old version of scantable files to the current
|
---|
| 6 | // schema.
|
---|
| 7 | //
|
---|
| 8 | // Author: Malte Marquarding <asap@atnf.csiro.au>, (C) 2011
|
---|
| 9 | //
|
---|
| 10 | // Copyright: See COPYING file that comes with this distribution
|
---|
| 11 | //
|
---|
| 12 | //
|
---|
| 13 | #ifndef ASAPSTUPGRADE_H
|
---|
| 14 | #define ASAPSTUPGRADE_H
|
---|
| 15 |
|
---|
| 16 | #include <casa/aips.h>
|
---|
| 17 | #include <string>
|
---|
| 18 |
|
---|
| 19 |
|
---|
| 20 | namespace asap {
|
---|
| 21 |
|
---|
| 22 | /**
|
---|
| 23 | A class to upgrade Scantable schemas
|
---|
| 24 |
|
---|
| 25 | @author Malte Marquarding
|
---|
| 26 | */
|
---|
| 27 | class STUpgrade {
|
---|
| 28 | public:
|
---|
| 29 | explicit STUpgrade(casa::uInt version) { version_ = version ;}
|
---|
| 30 | virtual ~STUpgrade() {;}
|
---|
| 31 |
|
---|
| 32 | std::string two2three(const std::string& name);
|
---|
| 33 | std::string three2four(const std::string& name);
|
---|
| 34 |
|
---|
| 35 | std::string upgrade(const std::string& name);
|
---|
| 36 |
|
---|
| 37 | private:
|
---|
| 38 | casa::uInt version_;
|
---|
| 39 | };
|
---|
| 40 |
|
---|
| 41 | }
|
---|
| 42 |
|
---|
| 43 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.