Back to index

salome-paravis  6.5.0
Classes | Public Types | Public Member Functions | Public Attributes
Table2D Struct Reference

#include <TableParser.h>

Collaboration diagram for Table2D:
Collaboration graph
[legend]

List of all members.

Classes

struct  Row

Public Types

typedef std::string Value
typedef std::vector< ValueValues
typedef std::vector< RowRows

Public Member Functions

bool Check ()

Public Attributes

std::string myTitle
std::vector< std::string > myColumnUnits
std::vector< std::string > myColumnTitles
Rows myRows

Detailed Description

Definition at line 26 of file TableParser.h.


Class Documentation

struct Table2D::Row

Definition at line 31 of file TableParser.h.

Collaboration diagram for Table2D::Row:
Class Members
string myTitle
string myUnit
Values myValues

Member Typedef Documentation

typedef std::vector<Row> Table2D::Rows

Definition at line 42 of file TableParser.h.

typedef std::string Table2D::Value

Definition at line 28 of file TableParser.h.

typedef std::vector<Value> Table2D::Values

Definition at line 29 of file TableParser.h.


Member Function Documentation

bool Table2D::Check ( )

Definition at line 50 of file TableParser.cxx.

{
  if (myRows.empty()) 
    return false;

  int iEnd = myRows[0].myValues.size();
  if (iEnd == 0)
    {
      return false;
    }

  if (myColumnTitles.size() != iEnd) 
    {
      myColumnTitles.resize(iEnd);
    }

  if (myColumnUnits.size() != iEnd)
    {
      myColumnUnits.resize(iEnd);
    }

  int jEnd = myRows.size();
  for (int j = 0; j < jEnd; j++)
    {
      if (myRows[j].myValues.size() != iEnd)
       {
         return false;
       }
    }
  
  return true;
}

Here is the caller graph for this function:


Member Data Documentation

std::vector<std::string> Table2D::myColumnTitles

Definition at line 40 of file TableParser.h.

std::vector<std::string> Table2D::myColumnUnits

Definition at line 39 of file TableParser.h.

Definition at line 43 of file TableParser.h.

std::string Table2D::myTitle

Definition at line 38 of file TableParser.h.


The documentation for this struct was generated from the following files: