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     // <summary>
00012     // Top level interface accessing image history data.
00013     // </summary>
00014 
00015     // <reviewed reviewer="" date="" tests="" demos="">
00016     // </reviewed>
00017 
00018     // <prerequisite>
00019     // </prerequisite>
00020 
00021     // <etymology>
00022     // Image History access
00023     // </etymology>
00024 
00025     // <synopsis>
00026     // Top level interface for accessing image history.
00027     // </synopsis>
00028 
00029 public:
00030 
00031     ImageHistory() = delete;
00032     ImageHistory(const SPIIT image);
00033 
00034     // destructor
00035     ~ImageHistory() {}
00036 
00037     // add a line to the history
00038     void addHistory(
00039         const String& origin, const String& history
00040     );
00041 
00042     void addHistory(
00043         const LogOrigin& origin, const String& history
00044     );
00045     // add multiple history lines, all which have the same origin
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     //Append the specified image's history to this image's history
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
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 31 Aug 2016 for casa by  doxygen 1.6.1