Back to index

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

Go to the source code of this file.

Defines

#define SEPARATOR   '\1'

Typedefs

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

Functions

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

Define Documentation

#define SEPARATOR   '\1'

Definition at line 32 of file SALOMEDSImpl_AttributeTableOfString.cxx.


Typedef Documentation

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

Definition at line 33 of file SALOMEDSImpl_AttributeTableOfString.cxx.


Function Documentation

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

Definition at line 43 of file SALOMEDSImpl_AttributeTableOfString.cxx.

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

Definition at line 35 of file SALOMEDSImpl_AttributeTableOfString.cxx.

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