Back to index

salome-kernel  6.5.0
Defines | Typedefs | Functions
SALOMEDSImpl_AttributeTableOfReal.cxx File Reference
#include "SALOMEDSImpl_AttributeTableOfReal.hxx"
#include <sstream>
#include <algorithm>

Go to the source code of this file.

Defines

#define SEPARATOR   '\1'

Typedefs

typedef std::map< int, double >
::const_iterator 
MI

Functions

static std::string getUnit (const std::string &theString)
static std::string getTitle (const std::string &theString)

Define Documentation

#define SEPARATOR   '\1'

Definition at line 32 of file SALOMEDSImpl_AttributeTableOfReal.cxx.


Typedef Documentation

typedef std::map<int, double>::const_iterator MI

Definition at line 33 of file SALOMEDSImpl_AttributeTableOfReal.cxx.


Function Documentation

static std::string getTitle ( const std::string &  theString) [static]

Definition at line 42 of file SALOMEDSImpl_AttributeTableOfReal.cxx.

{
  std::string aString(theString);
  int aPos = aString.find(SEPARATOR);
  return aPos < 0 ? aString :aString.substr(0, aPos);
}
static std::string getUnit ( const std::string &  theString) [static]

Definition at line 35 of file SALOMEDSImpl_AttributeTableOfReal.cxx.

{
  std::string aString(theString);
  int aPos = aString.find(SEPARATOR);
  return aPos < 0 || aPos == aString.size()-1 ? std::string() : aString.substr(aPos+1, aString.size());
}