Isis 3.0 Programmer Reference
Back | Home
Column.h
Go to the documentation of this file.
1 #ifndef Column_h
2 #define Column_h
3 
26 #include <vector>
27 
28 #include <QString>
29 
30 namespace Isis {
53  class Column {
54  public:
55 
59  enum Align {
60  NoAlign = 0,
61  Right = 1,
62  Left = 2,
63  Decimal = 3
64  };
65 
69  enum Type {
70  NoType = 0,
71  Integer = 1,
72  Real = 2,
73  String = 3,
74  Pixel = 4
75  };
76 
77  Column();
78  Column(QString name, int width, Column::Type type, Column::Align align = Right);
79  void SetName(QString name);
80  void SetWidth(unsigned int width);
81  void SetType(Column::Type type);
82  void SetAlignment(Column::Align alignment);
83  void SetPrecision(unsigned int precision);
84 
85  QString Name() const;
86  unsigned int Width() const;
87  Column::Type DataType() const;
88  Column::Align Alignment() const;
89  unsigned int Precision() const;
90 
91 
92  private:
94  QString p_name;
95 
97  unsigned int p_width;
98 
101 
104 
106  unsigned int p_precision;
107  };
108 };
109 
110 #endif
void SetWidth(unsigned int width)
Sets the width of the Column, in text columns.
Definition: Column.cpp:83
Integer data type.
Definition: Column.h:72
unsigned int p_precision
Precision of the data in the Column.
Definition: Column.h:106
unsigned int Precision() const
get the Column&#39;s precision
Definition: Column.cpp:171
void SetName(QString name)
Sets the Column name, or header.
Definition: Column.cpp:70
Column::Align p_align
Alignment of the data in the Column.
Definition: Column.h:103
Column()
Constructor.
Definition: Column.cpp:35
void SetAlignment(Column::Align alignment)
Sets the alignment of the Column.
Definition: Column.cpp:116
void SetPrecision(unsigned int precision)
Sets the precision of the Column, for real number values.
Definition: Column.cpp:134
right alignment
Definition: Column.h:61
Real data type.
Definition: Column.h:73
QString Name() const
get the Column&#39;s name
Definition: Column.cpp:144
Align
Alignment of data in the Column.
Definition: Column.h:59
Column::Type p_type
Type of the data in the Column.
Definition: Column.h:100
QString p_name
Name of the Column.
Definition: Column.h:94
Type
Type of data in the Column.
Definition: Column.h:69
unsigned int p_width
Width of the Column.
Definition: Column.h:97
Column::Align Alignment() const
get the Column&#39;s alignment
Definition: Column.cpp:165
decimal alignment
Definition: Column.h:63
left alignment
Definition: Column.h:62
Store and/or manipulate pixel values.
Definition: Pixel.h:63
Column::Type DataType() const
Returns the type of data this column will contain.
Definition: Column.cpp:159
no alignment
Definition: Column.h:60
unsigned int Width() const
get the Column&#39;s width
Definition: Column.cpp:149
Format ascii tables.
Definition: Column.h:53
void SetType(Column::Type type)
Sets the data type of the Column.
Definition: Column.cpp:97
No data type.
Definition: Column.h:71

U.S. Department of the Interior | U.S. Geological Survey
ISIS | Privacy & Disclaimers | Astrogeology Research Program
To contact us, please post comments and questions on the ISIS Support Center
File Modified: 07/12/2023 23:16:08