21 static const char NOISE[] =
"noise";
22 static const char NUMBER_OF_NOISE_RECORDS_KW[] =
"numberOfNoiseRecords";
23 static const char NAME_OF_NOISE_POLARISATION_KW[] =
"nameOfNoisePolarisation";
26 _numberOfNoiseRecords(0),
28 _polarisation(
"UNDEFINED")
38 _numberOfNoiseRecords(rhs._numberOfNoiseRecords),
39 _tabImageNoise(rhs._tabImageNoise),
40 _polarisation(rhs._polarisation)
62 std::string s = pfx +
"." + NAME_OF_NOISE_POLARISATION_KW;
65 s = pfx +
"." + NUMBER_OF_NOISE_RECORDS_KW;
79 static const char MODULE[] =
"Noise::loadState";
91 const char* lookup = 0;
92 std::string s1 = pfx +
".";
94 lookup = kwl.
find(s1.c_str(), NAME_OF_NOISE_POLARISATION_KW);
102 << MODULE <<
" Keyword not found: " << NAME_OF_NOISE_POLARISATION_KW <<
"\n";
106 lookup = kwl.
find(s1.c_str(), NUMBER_OF_NOISE_RECORDS_KW);
115 << MODULE <<
" Keyword not found: " << NUMBER_OF_NOISE_RECORDS_KW <<
"\n";
130 << MODULE <<
" Keyword " << NUMBER_OF_NOISE_RECORDS_KW <<
" is different with the number of ImageNoise nodes \n";
138 out << setprecision(15) << setiosflags(ios::fixed)
139 <<
"\n Noise class data members:\n";
141 const char* prefix = 0;
145 ossimString s = pfx +
"." + NUMBER_OF_NOISE_RECORDS_KW;
147 s = pfx +
"." + NAME_OF_NOISE_POLARISATION_KW;
Represents serializable keyword/value map.
const char * find(const char *key) const
virtual std::ostream & print(std::ostream &out) const
static ossimString toString(bool aValue)
Numeric to string methods.
ossim_uint32 toUInt32() const
Noise & operator=(const Noise &rhs)
Affectation operator.
std::vector< ImageNoise > _tabImageNoise
Image Noise.
void add(const char *prefix, const ossimKeywordlist &kwl, bool overwrite=true)
virtual ~Noise()
Destructor.
This class represents an ImageNoise.
bool loadState(const ossimKeywordlist &kwl, const char *prefix=0)
Method to the load (recreate) the state of the object from a keyword list.
bool loadState(const ossimKeywordlist &kwl, const char *prefix=0)
Method to the load (recreate) the state of the object from a keyword list.
const char * chars() const
For backward compatibility.
This class represents an Noise.
const char * c_str() const
Returns a pointer to a null-terminated array of characters representing the string's contents...
ossimString _polarisation
Noise Polarisation Layer.
ossim_uint32 _numberOfNoiseRecords
Image Noise.
OSSIMDLLEXPORT std::ostream & ossimNotify(ossimNotifyLevel level=ossimNotifyLevel_WARN)
std::basic_ostream< char > ostream
Base class for char output streams.
bool saveState(ossimKeywordlist &kwl, const char *prefix=0) const
Method to save object state to a keyword list.