-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathNewKeyword.h
100 lines (70 loc) · 2.04 KB
/
NewKeyword.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
// Astrophysics Science Division,
// NASA/ Goddard Space Flight Center
// HEASARC
// http://heasarc.gsfc.nasa.gov
// e-mail: [email protected]
//
// Original author: Ben Dorman
#ifndef NEWKEYWORD_H
#define NEWKEYWORD_H 1
// KeywordCreator
#include "KeywordCreator.h"
// KeyData
#include "KeyData.h"
// FITSUtil
#include "FITSUtil.h"
namespace CCfits {
template <typename T>
class NewKeyword : public KeywordCreator //## Inherits: <unnamed>%39355AA90209
{
public:
// Parameterized Class NewKeyword
NewKeyword (HDU* p, T value);
virtual ~NewKeyword();
// Additional Protected Declarations
virtual Keyword* MakeKeyword (const String& keyName, const String& keyComment = String(""), bool isLongStr = false);
const T keyData () const;
void keyData (T value);
// Additional Public Declarations
protected:
// Additional Protected Declarations
private:
NewKeyword();
NewKeyword(const NewKeyword< T > &right);
NewKeyword< T > & operator=(const NewKeyword< T > &right);
// Additional Private Declarations
private: //## implementation
// Data Members for Class Attributes
T m_keyData;
// Additional Implementation Declarations
};
// Parameterized Class CCfits::NewKeyword
template <typename T>
inline const T NewKeyword<T>::keyData () const
{
return m_keyData;
}
template <typename T>
inline void NewKeyword<T>::keyData (T value)
{
m_keyData = value;
}
// Parameterized Class CCfits::NewKeyword
template <typename T>
NewKeyword<T>::NewKeyword (HDU* p, T value)
: KeywordCreator(p), m_keyData(value)
{
}
template <typename T>
NewKeyword<T>::~NewKeyword()
{
}
template <typename T>
Keyword* NewKeyword<T>::MakeKeyword (const String& keyName, const String& keyComment, bool isLongStr)
{
FITSUtil::MatchType<T> keyType;
return new KeyData<T>(keyName,keyType(),m_keyData,forHDU(),keyComment,isLongStr);
}
// Additional Declarations
} // namespace CCfits
#endif