/usr/include/CCfits/NewColumn.h is in libccfits-dev 2.4-1ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 | // Astrophysics Science Division,
// NASA/ Goddard Space Flight Center
// HEASARC
// http://heasarc.gsfc.nasa.gov
// e-mail: ccfits@legacy.gsfc.nasa.gov
//
// Original author: Ben Dorman
#ifndef NEWCOLUMN_H
#define NEWCOLUMN_H 1
// valarray
#include <valarray>
// ColumnCreator
#include "ColumnCreator.h"
// FITSUtil
#include "FITSUtil.h"
namespace CCfits {
template <typename T>
class NewColumn : public ColumnCreator //## Inherits: <unnamed>%394167D103C5
{
public:
NewColumn (vector<T>& data);
virtual ~NewColumn();
// Additional Public Declarations
protected:
virtual Column* MakeColumn (const int index, const string &name, const string &format, const string &unit, const long repeat, const long width, const string &comment = "", const int decimals = 0);
// Additional Protected Declarations
private:
NewColumn(const NewColumn< T > &right);
NewColumn< T > & operator=(const NewColumn< T > &right);
// Additional Private Declarations
private: //## implementation
// Additional Implementation Declarations
};
template <typename T>
class NewVectorColumn : public ColumnCreator //## Inherits: <unnamed>%394167CE0009
{
public:
NewVectorColumn (std::vector<std::valarray<T> >& data);
virtual ~NewVectorColumn();
// Additional Public Declarations
protected:
virtual Column * MakeColumn (const int index, const string &name, const string &format, const string &unit, const long repeat, const long width, const string &comment = "", const int decimals = 0);
// Additional Protected Declarations
private:
NewVectorColumn(const NewVectorColumn< T > &right);
NewVectorColumn< T > & operator=(const NewVectorColumn< T > &right);
// Additional Private Declarations
private: //## implementation
// Additional Implementation Declarations
};
// Parameterized Class CCfits::NewColumn
// Parameterized Class CCfits::NewVectorColumn
// Parameterized Class CCfits::NewColumn
template <typename T>
NewColumn<T>::NewColumn (vector<T>& data)
: m_newData(data)
{
}
template <typename T>
NewColumn<T>::~NewColumn()
{
}
template <typename T>
Column* NewColumn<T>::MakeColumn (const int index, const string &name, const string &format, const string &unit, const long repeat, const long width, const string &comment, const int decimals)
{
FITSUtils::MatchType<T> findType;
ColumnData<T>* newColumn = new ColumnData(index,name,findType(),format,unit,p,repeat,width,comment);
newColumn->data(m_newData);
return newColumn;
}
// Additional Declarations
// Parameterized Class CCfits::NewVectorColumn
template <typename T>
NewVectorColumn<T>::NewVectorColumn (std::vector<std::valarray<T> >& data)
{
}
template <typename T>
NewVectorColumn<T>::~NewVectorColumn()
{
}
template <typename T>
Column * NewVectorColumn<T>::MakeColumn (const int index, const string &name, const string &format, const string &unit, const long repeat, const long width, const string &comment, const int decimals)
{
}
// Additional Declarations
} // namespace CCfits
#endif
|