//=============================================================================
void BLSURFPlugin_Hypothesis::SetInternalEnforcedVertexAllFacesGroup(BLSURFPlugin_Hypothesis::TEnfGroupName theGroupName) {
- if (string(theGroupName) != string(_enforcedInternalVerticesAllFacesGroup)) {
+ if (std::string(theGroupName) != std::string(_enforcedInternalVerticesAllFacesGroup)) {
_enforcedInternalVerticesAllFacesGroup = theGroupName;
NotifySubMeshesHypothesisModification();
}
//function : AddPreCadFacesPeriodicity
//=======================================================================
void BLSURFPlugin_Hypothesis::AddPreCadFacesPeriodicity(TEntry theFace1Entry, TEntry theFace2Entry,
- vector<string> &theSourceVerticesEntries, vector<string> &theTargetVerticesEntries) {
+ std::vector<std::string> &theSourceVerticesEntries, std::vector<std::string> &theTargetVerticesEntries) {
TPreCadPeriodicity preCadFacesPeriodicity;
preCadFacesPeriodicity.shape1Entry = theFace1Entry;
//function : AddPreCadEdgesPeriodicity
//=======================================================================
void BLSURFPlugin_Hypothesis::AddPreCadEdgesPeriodicity(TEntry theEdge1Entry, TEntry theEdge2Entry,
- vector<string> &theSourceVerticesEntries, vector<string> &theTargetVerticesEntries) {
+ std::vector<std::string> &theSourceVerticesEntries, std::vector<std::string> &theTargetVerticesEntries) {
TPreCadPeriodicity preCadEdgesPeriodicity;
preCadEdgesPeriodicity.shape1Entry = theEdge1Entry;
isOK = static_cast<bool>(load >> val);
if (isOK)
// former parameter: get min value
- _angleMesh = min(val,_angleMesh);
+ _angleMesh = std::min(val,_angleMesh);
else
load.clear(std::ios::badbit | load.rdstate());
isOK = static_cast<bool>(load >> val);
if (isOK)
// former parameter: get min value
- _minSize = min(val,_minSize);
+ _minSize = std::min(val,_minSize);
else
load.clear(std::ios::badbit | load.rdstate());
isOK = static_cast<bool>(load >> val);
if (isOK)
// former parameter: get max value
- _maxSize = max(val,_maxSize);
+ _maxSize = std::max(val,_maxSize);
else
load.clear(std::ios::badbit | load.rdstate());
#include <cstring>
#include <boost/regex.hpp>
+using namespace std;
+
//=============================================================================
/*!
* BLSURFPlugin_Hypothesis_i::BLSURFPlugin_Hypothesis_i
void BLSURFPlugin_Hypothesis_i::SetOptionValues(const BLSURFPlugin::string_array& options)
throw (SALOME::SALOME_Exception) {
ASSERT(myBaseImpl);
- for (int i = 0; i < options.length(); ++i) {
+ for (CORBA::ULong i = 0; i < options.length(); ++i) {
string name_value_type = options[i].in();
if(name_value_type.empty())
continue;
- int colonPos = name_value_type.find(':');
+ size_t colonPos = name_value_type.find(':');
string name, value;
bool custom = false;
if (colonPos == string::npos) // ':' not found
void BLSURFPlugin_Hypothesis_i::SetPreCADOptionValues(const BLSURFPlugin::string_array& options)
throw (SALOME::SALOME_Exception) {
ASSERT(myBaseImpl);
- for (int i = 0; i < options.length(); ++i) {
+ for ( CORBA::ULong i = 0; i < options.length(); ++i) {
string name_value_type = options[i].in();
if(name_value_type.empty())
continue;
- int colonPos = name_value_type.find(':');
+ size_t colonPos = name_value_type.find(':');
string name, value;
bool custom = false;
if (colonPos == string::npos) // ':' not found
void BLSURFPlugin_Hypothesis_i::SetSizeMapEntries(const BLSURFPlugin::string_array& sizeMaps)
throw (SALOME::SALOME_Exception) {
ASSERT(myBaseImpl);
- for (int i = 0; i < sizeMaps.length(); ++i) {
+ for ( CORBA::ULong i = 0; i < sizeMaps.length(); ++i) {
string entry_sizemap = sizeMaps[i].in();
- int colonPos = entry_sizemap.find('|');
+ size_t colonPos = entry_sizemap.find('|');
string entry, sizemap;
if (colonPos == string::npos) // '|' separator not found
entry = entry_sizemap;
// Coords
BLSURFPlugin::TEnfVertexCoords_var coords = new BLSURFPlugin::TEnfVertexCoords();
coords->length(currentEnfVertex->coords.size());
- for (int i=0;i<coords->length();i++)
+ for (CORBA::ULong i=0;i<coords->length();i++)
coords[i] = currentEnfVertex->coords[i];
enfVertex->coords = coords;
// Coords
BLSURFPlugin::TEnfVertexCoords_var coords = new BLSURFPlugin::TEnfVertexCoords();
coords->length(currentEnfVertex->coords.size());
- for (int ind = 0; ind < coords->length(); ind++)
+ for (CORBA::ULong ind = 0; ind < coords->length(); ind++)
coords[ind] = currentEnfVertex->coords[ind];
enfVertex->coords = coords;
// Group name
for (int j = 0; it_coords != _coordsList.end(); ++it_coords, ++j) {
BLSURFPlugin::TEnfVertexCoords_var coords = new BLSURFPlugin::TEnfVertexCoords();
coords->length((*it_coords).size());
- for (int i=0;i<coords->length();i++)
+ for (CORBA::ULong i=0;i<coords->length();i++)
coords[i] = (*it_coords)[i];
coordsList[j] = coords;
MESSAGE("Coords #" << j << ": " << coords[0] << ", " << coords[1] << ", " << coords[2]);
BLSURFPlugin::TCoordsEnfVertexElement_var mapElement = new BLSURFPlugin::TCoordsEnfVertexElement();
BLSURFPlugin::TEnfVertexCoords_var coords = new BLSURFPlugin::TEnfVertexCoords();
coords->length(it_coords->first.size());
- for (int ind=0;ind<coords->length();ind++)
+ for (CORBA::ULong ind=0;ind<coords->length();ind++)
coords[ind] = it_coords->first[ind];
mapElement->coords = coords;
MESSAGE("Coords: " << mapElement->coords[0] << ", " << mapElement->coords[1] << ", " << mapElement->coords[2]);
// Coords
BLSURFPlugin::TEnfVertexCoords_var coords2 = new BLSURFPlugin::TEnfVertexCoords();
coords2->length(currentEnfVertex->coords.size());
- for (int ind=0;ind<coords2->length();ind++)
+ for (CORBA::ULong ind=0;ind<coords2->length();ind++)
coords2[ind] = currentEnfVertex->coords[ind];
enfVertex->coords = coords2;
// Group name
// Coords
BLSURFPlugin::TEnfVertexCoords_var coords = new BLSURFPlugin::TEnfVertexCoords();
coords->length(currentEnfVertex->coords.size());
- for (int ind=0;ind<coords->length();ind++)
+ for (CORBA::ULong ind=0;ind<coords->length();ind++)
coords[ind] = currentEnfVertex->coords[ind];
enfVertex->coords = coords;
// Group name