projects
/
ctsim.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
r338: ''
[ctsim.git]
/
include
/
array2dfile.h
diff --git
a/include/array2dfile.h
b/include/array2dfile.h
index 754ad93a9d1df81138605fc684a81edf8db8a8a0..79ae2f26f74b1ea476f82ea4bb3ab4cddfd50b1d 100644
(file)
--- a/
include/array2dfile.h
+++ b/
include/array2dfile.h
@@
-9,7
+9,7
@@
** This is part of the CTSim program
** Copyright (C) 1983-2000 Kevin Rosenberg
**
** This is part of the CTSim program
** Copyright (C) 1983-2000 Kevin Rosenberg
**
-** $Id: array2dfile.h,v 1.1
3 2000/12/29 19:30:08
kevin Exp $
+** $Id: array2dfile.h,v 1.1
7 2001/01/02 07:47:36
kevin Exp $
**
** This program is free software; you can redistribute it and/or modify
** it under the terms of the GNU General Public License (version 2) as
**
** This program is free software; you can redistribute it and/or modify
** it under the terms of the GNU General Public License (version 2) as
@@
-89,6
+89,8
@@
public:
const std::string& getDateString () const;
void print (std::ostream& os) const;
const std::string& getDateString () const;
void print (std::ostream& os) const;
+ void printBrief (std::ostream& os) const;
\r
+ void printBrief (std::ostringstream& os) const;
\r
Array2dFileLabel (const Array2dFileLabel& rhs);
Array2dFileLabel (const Array2dFileLabel& rhs);
@@
-151,7
+153,7
@@
public:
void labelAdd (int type, const char* const m_strLabel, double calc_time=0.);
void labelAdd (int type, const char* const m_strLabel, double calc_time=0.);
- void labelsCopy (Array2dFile& file, const char* const idStr = NULL);
+ void labelsCopy (
const
Array2dFile& file, const char* const idStr = NULL);
void setPixelFormat (int type)
{ m_pixelFormat = type; }
void setPixelFormat (int type)
{ m_pixelFormat = type; }
@@
-165,6
+167,12
@@
public:
kuint32 ny (void) const
{ return m_ny; }
\r
kuint32 ny (void) const
{ return m_ny; }
\r
+ bool isComplex() const
\r
+ { return m_dataType == DATA_TYPE_COMPLEX; }
\r
+
\r
+ bool isReal() const
\r
+ { return m_dataType == DATA_TYPE_REAL; }
\r
+
\r
int dataType () const
\r
{ return static_cast<int>(m_dataType); }
\r
\r
int dataType () const
\r
{ return static_cast<int>(m_dataType); }
\r
\r
@@
-195,7
+203,12
@@
public:
const std::string& getFilename (void) const
{ return m_filename; }
const std::string& getFilename (void) const
{ return m_filename; }
- void printLabels (std::ostream& os) const;
+ void printLabels (std::ostream& os) const;
\r
+ void printLabelsBrief (std::ostream& os) const;
\r
+ void printLabelsBrief (std::ostringstream& os) const;
\r
+
\r
+ unsigned int nLabels() const
\r
+ { return m_labels.size(); }
\r
typedef std::vector<Array2dFileLabel*>::iterator labelIterator;
typedef std::vector<Array2dFileLabel*>::const_iterator constLabelIterator;
typedef std::vector<Array2dFileLabel*>::iterator labelIterator;
typedef std::vector<Array2dFileLabel*>::const_iterator constLabelIterator;