NitfUtilities.h File Reference

#include "DataVariant.h"
#include "DynamicObject.h"
#include "Endian.h"
#include "NitfConstants.h"
#include "NitfTreParser.h"
#include "TypesFile.h"
#include "StringUtilities.h"
#include <iomanip>
#include <iostream>
#include <limits>
#include <set>
#include <string>
#include <vector>
#include <boost/lexical_cast.hpp>

Go to the source code of this file.

Namespaces

namespace  Nitf

Classes

struct  Nitf::FindFirst
 Represents getting the first instance of a tag. More...

Functions

std::string Nitf::getRpcCoefficient (const std::string &prefix, const unsigned int &num)
TreState Nitf::MaxState (TreState stateA, TreState stateB)
template<class Condition>
const DynamicObjectNitf::getTagHandle (const DynamicObject &nitfMetadata, std::string treName, Condition cond=Condition())
template<typename T>
Nitf::getSentinel ()
template<typename T>
TreState Nitf::testTagValueRange (std::ostream &reporter, const T &testValue, const T &minValue, const T &maxValue)
template<typename T>
TreState Nitf::testTagValueRange (const DynamicObject &tre, std::ostream &reporter, unsigned int *pNumFields, const std::string &name, const T &minValue, const T &maxValue, bool optional=false)
template<typename T>
TreState Nitf::testTagValueEq (const DynamicObject &tre, std::ostream &reporter, const std::string &name, const T &eqValue)
template<typename T>
TreState Nitf::testTagValueNotEq (const DynamicObject &tre, std::ostream &reporter, const std::string &name, const T &notEqValue)
template<typename T>
Nitf::convertBinary (const void *pBuffer, EndianType sourceEndian)
bool Nitf::bitTest (unsigned int bitMask, unsigned int bit)
bool Nitf::DtgParseHHMM (const std::string &fDTG, unsigned short &hour, unsigned short &min)
bool Nitf::DtgParseCCYYMMDDhhmm (const std::string &fDTG, unsigned short &year, unsigned short &month, unsigned short &day, unsigned short &hour, unsigned short &min)
bool Nitf::DtgParseCCYYMMDDhhmm (const std::string &fDTG, DateTime *pDateTime)
bool Nitf::DtgParseCCYYMMDDssss (const std::string &date, const std::string &time, DateTime *pDateTime, float &secondsInDay)
bool Nitf::DtgParseCCYYMMDDhhmmss (const std::string &fDTG, unsigned short &year, unsigned short &month, unsigned short &day, unsigned short &hour, unsigned short &min, unsigned short &sec, bool *pDateValid=NULL, bool *pTimeValid=NULL)
bool Nitf::DtgParseCCYYMMDDhhmmss (const std::string &fDTG, DateTime *pDateTime)
bool Nitf::DtgParseCCYYMMDD (const std::string &fDTG, unsigned short &year, unsigned short &month, unsigned short &day)
bool Nitf::DtgParseCCYYMMDD (const std::string &fDTG, DateTime *pDateTime)
bool Nitf::DtgParseDDMMMYY (const std::string &fDTG, unsigned short &year, unsigned short &month, unsigned short &day)
bool Nitf::DtgParseDDMMMYY (const std::string &fDTG, DateTime *pDateTime)
bool Nitf::DtgParseCCYYMMMDDhhmmss (const std::string &fDTG, unsigned short &year, unsigned short &month, unsigned short &day, unsigned short &hour, unsigned short &min, unsigned short &sec)
bool Nitf::DtgParseCCYYMMMDDhhmmss (const std::string &fDTG, DateTime *pDateTime)
bool Nitf::DtgParseDDHHMMSSZMONYY (const std::string &fDTG, unsigned short &year, unsigned short &month, unsigned short &day, unsigned short &hour, unsigned short &min, unsigned short &sec)
bool Nitf::DtgParseDDHHMMSSZMONYY (const std::string &fDTG, DateTime *pDateTime)
bool Nitf::DtgParseYYMMDD (const std::string &fDTG, unsigned short &year, unsigned short &month, unsigned short &day)
bool Nitf::DtgParseYYMMDD (const std::string &fDTG, DateTime *pDateTime)
TreState Nitf::testTagValidBcsASet (const std::string &testValue, std::ostream &reporter, std::set< std::string > testSet, bool allBlankOk=false, bool notInSetOk=true, bool emitMsgNotInSet=false)
TreState Nitf::testTagValidBcsASet (const DynamicObject &tre, std::ostream &reporter, unsigned int *pNumFields, const std::string &name, const std::set< std::string > &testSet, bool allBlankOk=false, bool notInSetOk=true, bool emitMsgNotInSet=false)
bool Nitf::readFromStream (std::istream &strm, std::vector< char > &buf, std::streamsize count, bool bStr=true)
std::string Nitf::sizeString (const std::string &str, unsigned int size, char fillChar= ' ', bool rightJustify=false)
template<typename T>
std::string Nitf::toString (T num, unsigned int size, int precision=-1, char fillChar= '0', bool posSign=false, bool sciNotation=false, int expSize=3, bool optional=false, char optionalChar= ' ')
template<typename T>
Nitf::fromBuffer (std::vector< char > &buf, bool &ok, bool allBlankOk, bool allDashesOk)
template<>
std::string Nitf::fromBuffer< std::string > (std::vector< char > &buf, bool &ok, bool allBlankOk, bool allDashesOk)
bool Nitf::readFieldErrMsg (std::string &msg, const std::string &name, const std::vector< char > &buf, int len)
bool Nitf::numReadErrMsg (int64_t numRead, int64_t numBytes, std::string &errorMessage)
template<typename T>
bool Nitf::readField (std::istream &input, DynamicObject &output, bool &success, const std::string &name, int len, std::string &msg, std::vector< char > &buf, bool allBlankOk=false, bool allDashesOk=false)
template<typename T>
bool Nitf::readAndConvertFromStream (std::istream &input, T &output, bool &success, const std::string &name, int len, std::string &msg, std::vector< char > &buf, bool allBlankOk=false, bool allDashesOk=false)
bool Nitf::isClassificationValidForExport (const Classification &classification, std::string &errorMessage)
bool Nitf::isClassificationFieldValidForExport (const Classification &classification, const std::string &fieldName)
bool Nitf::updateSpecialMetadata (DynamicObject *pMetadata, std::vector< double > &centerWavelengths, std::vector< double > &startWavelengths, std::vector< double > &endWavelengths, const std::vector< double > &fwhms, bool convertFromInverseCentimeters=false)


Software Development Kit - Opticks 4.9.0 Build 16218