ImageHistory.h
Go to the documentation of this file.00001 #ifndef IMAGEANALYSIS_IMAGEHISTORY_H
00002 #define IMAGEANALYSIS_IMAGEHISTORY_H
00003
00004 #include <imageanalysis/ImageTypedefs.h>
00005
00006 #include <casa/namespace.h>
00007
00008 namespace casa {
00009
00010 template <class T> class ImageHistory {
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029 public:
00030
00031 ImageHistory() = delete;
00032 ImageHistory(const SPIIT image);
00033
00034
00035 ~ImageHistory() {}
00036
00037
00038 void addHistory(
00039 const String& origin, const String& history
00040 );
00041
00042 void addHistory(
00043 const LogOrigin& origin, const String& history
00044 );
00045
00046 void addHistory(
00047 const String& origin, const vector<String>& history
00048 );
00049
00050 void addHistory(
00051 const LogOrigin& origin, const vector<String>& history
00052 );
00053
00054 void addHistory(
00055 const String& origin, const vector<string>& history
00056 );
00057
00058 void addHistory(
00059 const vector<std::pair<LogOrigin, String> >& history
00060 );
00061
00062 vector<String> get(Bool list) const;
00063 vector<string> getAsStdStrings(Bool list) const;
00064
00065
00066 void append(SPCIIF image);
00067
00068 void append(SPCIIC image);
00069
00070 String getClass() const { const static String s = "ImageHistory"; return s; }
00071
00072 LogIO& getLogSink();
00073
00074 private:
00075
00076 const SPIIT _image;
00077
00078 };
00079 }
00080
00081 #ifndef AIPS_NO_TEMPLATE_SRC
00082 #include <imageanalysis/ImageAnalysis/ImageHistory.tcc>
00083 #endif
00084
00085 #endif