27 :theTableInformation(NULL)
141 std::vector<ossimString> result;
148 if(columnNumber >=0 &&
149 (columnNumber < theTableInformation->nfields))
154 for (
int rowIndex = 1;
173 std::vector<ossimString> result;
178 if(columnNumber >=0 &&
179 (columnNumber < theTableInformation->nfields))
184 for (
int rowIndex = 0;
192 value = value.
trim();
205 long columnNumber)
const 345 idTripletType = tempType[0];
379 for (
int k=0;k<
n;k++)
382 result = result +
" (" +
403 long columnNumber)
const 418 long int columnNumber =
table_pos(const_cast<char*>(columnName.
c_str()),
455 char *buf, ch, date[40];
460 <<
"desciption: " << table.
description << std::endl
463 out <<
"Definition:" << std::endl;
464 for (i=0;i<table.
nfields;i++) {
481 out <<
"\nContents:" << std::endl;
482 for (i=1;i<=table.
nrows;i++)
494 out << ch << std::endl;
500 for (k=0;k<(long)strlen(buf);k++)
520 out << lval << std::endl;
524 out <<
"null" << std::endl;
554 out <<
"null" << std::endl;
558 out << value << std::endl;
583 if (ival != (
short int)INT_MAX)
585 out << ival << std::endl;
589 out <<
"null" << std::endl;
597 if (iptr[k] != (
short int)INT_MAX)
616 out << fval << std::endl;
620 out <<
"null" << std::endl;
630 out << fptr[k] <<
" ";
654 out << dtctValue.
x <<
", ";
662 out << dtctValue.
y <<
", ";
670 out << dtctValue.
z <<
", ";
685 out << dtctPtr[k].
x <<
", ";
693 out << dtctPtr[k].
y <<
", ";
701 out << dtctPtr[k].
z <<
", ";
717 out <<
"null" <<
",";
721 out << tcval.
x <<
", ";
725 out <<
"null" <<
", ";
729 out << tcval.
y <<
", ";
733 out <<
"null)" << std::endl;
737 out << tcval.
z <<
")" << std::endl;
752 out << tcptr[k].x <<
", ";
760 out << tcptr[k].y <<
", ";
768 out << tcptr[k].z <<
")";
787 out << cval.
x <<
", ";
795 out << cval.
y <<
")";
804 out <<
"(" << cptr[k].x <<
"," << cptr[k].y <<
") ";
825 out << dct.
x <<
", ";
848 out << dctPtr[k].
x <<
", ";
856 out << dctPtr[k].
y <<
", ";
868 out <<
"(" << kval.
id 878 out <<
"(" << kptr[k].id
879 <<
", " << kptr[k].tile
880 <<
", " << kptr[k].exid
881 <<
") " << std::endl;
893 out << date << std::endl;
901 out << dptr[k] <<
" ";
virtual bool goToRow(long row) const
vpf_table_type * theTableInformation
void free_row(row_type row, vpf_table_type table)
virtual void closeTable()
int getNumberOfRows() const
void format_date(date_type date, char *fmtdate)
vpf_table_type vpf_open_table(const char *tablename, storage_type storage, const char *mode, char *defstr)
static ossimString toString(bool aValue)
Numeric to string methods.
row_type read_row(ossim_int32 row_number, vpf_table_type table)
std::vector< ossimString > getColumnValues(const ossimString &columnName) const
void push_back(char c)
Equivalent to insert(end(), c).
ossim_int32 index_pos(ossim_int32 row_number, vpf_table_type table)
virtual bool openTable(const ossimFilename &tableName)
ossim_int32 getColumnPosition(const ossimString &columnName) const
int getNumberOfColumns() const
ossim_int32 table_pos(const char *field_name, vpf_table_type table)
virtual bool isClosed() const
os2<< "> n<< " > nendobj n
ossim_int32 is_vpf_table(const char *fname)
int is_vpf_null_float(float num)
ossimString trim(const ossimString &valueToTrim=ossimString(" \\)) const
this will strip lead and trailing character passed in.
ossimString getColumnName(int idx) const
virtual void reset() const
ossimString getColumnValueAsString(row_type &row, long columnNumber) const
void * get_table_element(ossim_int32 field_number, row_type row, vpf_table_type table, void *value, ossim_int32 *count)
int is_vpf_null_double(double num)
row_type read_next_row(vpf_table_type table)
void vpf_close_table(vpf_table_type *table)
const char * c_str() const
Returns a pointer to a null-terminated array of characters representing the string's contents...
ossimFilename theTableName
virtual void print(std::ostream &out) const
std::basic_ostream< char > ostream
Base class for char output streams.
std::ostream & operator<<(std::ostream &out, const ossimVpfTable &data)