Version: 8.3.0
UNV_Utilities.hxx File Reference
#include "SMESH_DriverUNV.hxx"
#include <iostream>
#include <sstream>
#include <fstream>
#include <string>
#include <stdexcept>
#include <cassert>
#include <cstdlib>
Include dependency graph for UNV_Utilities.hxx:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

class  UNV::PrefixPrinter
 

Namespaces

namespace  UNV
 

Macros

#define MESSAGE(msg)   std::cout<<__FILE__<<"["<<__LINE__<<"]::"<<msg<<endl;
 
#define BEGMSG(msg)   std::cout<<UNV::PrefixPrinter::GetPrefix()<<msg
 
#define ADDMSG(msg)   std::cout<<msg
 
#define EXCEPTION(TYPE, MSG)
 

Functions

bool UNV::beginning_of_dataset (std::istream &in_file, const std::string &ds_name)
 
double UNV::D_to_e (std::string &number)
 Method for converting exponential notation from "D" to "e", for example 3.141592654D+00 –> 3.141592654e+00 in order to make it readable for C++. More...
 
bool UNV::check_file (const std::string theFileName)
 
std::string UNV::read_line (std::ifstream &in_stream, const bool next=true)
 reads a whole line More...
 

Variables

const size_t UNV::theMaxLineLen = 82
 

Macro Definition Documentation

#define EXCEPTION (   TYPE,
  MSG 
)
Value:
{\
std::ostringstream aStream;\
aStream<<__FILE__<<"["<<__LINE__<<"]::"<<MSG;\
throw TYPE(aStream.str());\
}

Referenced by MED::TGaussDef::add(), DriverMED::buildMeshGrille(), MED::CrWrapper(), DriverMED::FindNode(), MED::V2_2::TVWrapper::GetBallInfo(), MED::V2_2::TVWrapper::GetCellInfo(), MED::TGrilleInfo::GetCoord(), MED::GetEntityByFamilyId(), MED::V2_2::TVWrapper::GetFamilyInfo(), MED::V2_2::TVWrapper::GetFieldInfo(), MED::V2_2::TVWrapper::GetGaussInfo(), MED::V2_2::TVWrapper::GetGaussPreInfo(), MED::V2_2::TVWrapper::GetGrilleInfo(), MED::V2_2::TVWrapper::GetGrilleStruct(), MED::V2_2::TVWrapper::GetGrilleType(), MED::TGrilleInfo::GetIndexes(), MED::V2_2::TVWrapper::GetMeshInfo(), MED::TTimeStampValue< TMeshValueType >::GetMeshValuePtr(), MED::V2_2::TVWrapper::GetNbTimeStamps(), MED::V2_2::TVWrapper::GetNodeInfo(), MED::V2_2::TVWrapper::GetPolyedreConnSize(), MED::V2_2::TVWrapper::GetPolyedreInfo(), MED::V2_2::TVWrapper::GetPolygoneConnSize(), MED::V2_2::TVWrapper::GetPolygoneInfo(), MED::PrefixPrinter::GetPrefix(), MED::V2_2::TVWrapper::GetProfileInfo(), MED::V2_2::TVWrapper::GetProfilePreInfo(), MED::V2_2::TVWrapper::GetTimeStampInfo(), MED::V2_2::TVWrapper::GetTimeStampValue(), MED::V2_2::TFile::Id(), MED::V2_2::TFile::Open(), DriverUNV_W_SMDS_Mesh::Perform(), UNV2417::Read(), UNV2411::Read(), UNV2412::Read(), UNV164::Read(), UNV2420::Read(), MED::V2_2::TVWrapper::SetBallInfo(), MED::V2_2::TVWrapper::SetCellInfo(), MED::V2_2::TVWrapper::SetFamilies(), MED::V2_2::TVWrapper::SetFamilyInfo(), MED::V2_2::TVWrapper::SetFieldInfo(), MED::V2_2::TVWrapper::SetGrilleInfo(), MED::V2_2::TVWrapper::SetMeshInfo(), MED::V2_2::TVWrapper::SetNames(), MED::V2_2::TVWrapper::SetNodeInfo(), MED::V2_2::TVWrapper::SetNumeration(), MED::V2_2::TVWrapper::SetPolyedreInfo(), MED::V2_2::TVWrapper::SetPolygoneInfo(), MED::V2_2::TVWrapper::SetProfileInfo(), MED::V2_2::TVWrapper::SetTimeStampValue(), MED::TGaussDef::TGaussDef(), MED::TTTimeStampValue< eVersion, TMeshValueType >::TTTimeStampValue(), UNV2417::Write(), UNV2411::Write(), UNV2412::Write(), UNV164::Write(), UNV2420::Write(), and MED::PrefixPrinter::~PrefixPrinter().

#define MESSAGE (   msg)    std::cout<<__FILE__<<"["<<__LINE__<<"]::"<<msg<<endl;

Referenced by SMDS_MeshGroup::Add(), SMESH_Group_i::Add(), SMESHDS_Command::Add0DElement(), SMESHDS_Command::AddBall(), SMDS_Mesh::addChildrenWithNodes(), SMESHDS_Command::AddEdge(), SMESHDS_SubMesh::AddElement(), SMESHDS_Command::AddFace(), SMESH_Mesh_i::AddHypothesis(), SMESH_Mesh_i::addHypothesis(), SMESH::AddHypothesisOnMesh(), SMESH::AddHypothesisOnSubMesh(), SMESH_Gen_i::AddHypothesisToShape(), Driver_Mesh::addMessage(), SMESHDS_Command::AddNode(), SMDS_Mesh::AddNodeWithID(), SMESHDS_Command::AddPolygonalFace(), SMESHDS_Command::AddPolyhedralVolume(), SMESHDS_Command::AddQuadPolygonalFace(), SMESHDS_Command::AddVolume(), SMESH_subMesh::AlgoStateEngine(), SMESH_Pattern::Apply(), SMESH_Pattern_i::ApplyToMeshFaces(), aptrte(), StdMeshers_Prism_3D::assocOrProjBottom2Top(), SMDS_UnstructuredGrid::BuildDownwardConnectivity(), SMESH_VisualObjDef::buildElemPrs(), SMESH_VisualObjDef::buildPrs(), SMESH_Gen_i::CanPublishInStudy(), SMESHDS_Command::ChangeElementNodes(), SMDS_Mesh0DElement::ChangeNodes(), SMDS_VtkFace::ChangeNodes(), SMDS_VtkVolume::ChangeNodes(), SMDS_VtkEdge::ChangeNodes(), SMESHDS_Command::ChangePolyhedronNodes(), SMDS_Mesh::ChangePolyhedronNodes(), StdMeshers_Penta_3D::CheckData(), StdMeshers_Projection_1D::CheckHypothesis(), SMDS_Mesh::CheckMemory(), checkMissing(), SMESH_MesherHelper::CheckNodeU(), SMESH_MesherHelper::CheckNodeUV(), SMESH_Gen_i::Close(), SMESHDS_Mesh::compactMesh(), SMESH_Gen_i::ComponentDataType(), StdMeshers_Import_1D::Compute(), SMESH_Gen_i::Compute(), SMESHGUI_BaseComputeOp::computeMesh(), SMESH_Block::ComputeParameters(), SMESH_Block::computeParameters(), SMESH_subMesh::ComputeStateEngine(), SMESH_Pattern::compUVByElasticIsolines(), SMESH_Pattern::compUVByIsoIntersection(), counters::counters(), SMESH_Gen_i::CreateEmptyMesh(), SMESH_Mesh_i::createGroup(), SMESH_Mesh_i::CreateGroupServants(), SMESH_MeshEditor::CreateHoleSkin(), SMESH::CreateHypothesis(), SMESH_Gen_i::createHypothesis(), SMESH_Gen_i::CreateMesh(), SMESH_Gen_i::createMesh(), SMESH_Mesh_i::createSubMesh(), SMDS_Mesh::DebugStats(), SMESH::DisplayActor(), SMESH::doNothing(), SMESH_MeshEditor::DoubleNodesOnGroupBoundaries(), StdMeshers_FaceSide::dump(), SMESH_subMesh::DumpAlgoState(), SMDS_VtkEdge::elementsIterator(), SMDS_VtkFace::elementsIterator(), SMDS_MeshElement::elementsIterator(), SMDS_VtkVolume::elementsIterator(), SMDS_PolyhedralVolumeOfNodes::elementsIterator(), SMDS_VolumeOfNodes::elementsIterator(), SMESH_Gen_i::Evaluate(), TGetActorAspect::Execute(), SMESH_Block::FindBlockShapes(), SMESH_Pattern::findBoundaryPoints(), SMESH_MeshEditor::FindMatchingNodes(), SMDS_Mesh::FindNodeVtk(), SMESH_MeshEditor::FindShape(), SMESH::FitAll(), fixCommonVertexUV(), fixOverlappedLinkUV(), SMESH_MeshEditor::generateGroups(), SMESH_Gen_i::GetAlgoState(), SMESH_Gen_i::GetBadInputElements(), SMESH_GroupBase_i::GetColorNumber(), SMESH_Gen_i::GetComputeErrors(), SMESH_Gen_i::GetCurrentStudy(), SMESH_Block::GetEdgeVertexIDs(), SMESH_DeviceActor::GetElemCell(), SMESH_DeviceActor::GetElemObjId(), SMESH_Block::GetFaceEdgesIDs(), DriverMED_R_SMESHDS_Mesh::GetGroup(), SMESH_Mesh_i::GetGroups(), SMESHDS_Document::GetHypothesis(), SMESH::GetHypothesisCreator(), SMESH_Gen_i::getHypothesisCreator(), SMESH_Mesh_i::GetHypothesisList(), SMESH_GroupBase_i::GetID(), SMESH_Mesh_i::GetImpl(), SMESHDS_Document::GetMesh(), SMESH::GetMeshesUsingAlgoOrHypothesis(), DriverMED_R_SMESHDS_Mesh::GetMeshNames(), SMESH_Gen_i::GetMeshOrSubmeshByShape(), SMESH_Mesh_i::GetMeshPtr(), SMESH_DeviceActor::GetNodeCoord(), SMESH_DeviceActor::GetNodeObjId(), SMESH_MesherHelper::GetNodeUV(), SMDS_VolumeTool::GetOppFaceIndex(), SMESH_Block::GetOrderedEdges(), SMDS_DownTetra::getOrderedNodesOfFace(), SMDS_DownQuadTetra::getOrderedNodesOfFace(), SMDS_DownPyramid::getOrderedNodesOfFace(), SMDS_DownQuadPyramid::getOrderedNodesOfFace(), SMDS_DownPenta::getOrderedNodesOfFace(), SMDS_DownQuadPenta::getOrderedNodesOfFace(), SMDS_DownHexa::getOrderedNodesOfFace(), SMDS_DownQuadHexa::getOrderedNodesOfFace(), SMDS_UnstructuredGrid::GetParentVolumes(), SMESH_Block::GetShapeIDByParams(), SMESH_Mesh_i::GetSubMeshes(), SMESH_Gen_i::GetSubShapesId(), SMESH::GetVisualObj(), Handle(), StdMeshers_PrismAsBlock::Init(), StdMeshers::FunctionExpr::integral(), SMDS_VolumeTool::Inverse(), SMESH_Gen_i::IORToLocalPersistentID(), SMDS_VolumeTool::IsLinked(), SMDS_VtkFace::IsMediumNode(), SMDS_VtkVolume::IsMediumNode(), SMESH_Mesh::IsNotConformAllowed(), SMESH_Gen_i::IsReadyToCompute(), SMESH_Pattern::Load(), SMESH_Gen_i::Load(), SMESH_Gen_i::LoadASCII(), StdMeshers_Penta_3D::LoadIJNodes(), SMESH_Block::LoadMeshBlock(), StdMeshers_MEFISTO_2D::LoadPoints(), SMESH_Gen_i::LocalPersistentIDToIOR(), StdMeshers_Penta_3D::MakeBlock(), StdMeshers_Penta_3D::MakeMeshOnFxy1(), StdMeshers_Penta_3D::MakeNodes(), StdMeshers_Penta_3D::MakeVolumeMesh(), SMESHDS_Command::MoveNode(), SMDS_VtkVolume::NbEdges(), SMDS_VolumeOfNodes::NbEdges(), SMDS_VtkVolume::NbFaces(), SMDS_VolumeOfNodes::NbFaces(), SMDS_MeshNode_MyInvIterator::next(), SMESH_MeshObj::NulData(), operator<(), DriverMED_R_SMESHDS_Mesh::Perform(), DriverUNV_R_SMDS_Mesh::Perform(), SMESH_Gen_i::Precompute(), project(), SMESH_Gen_i::PublishComponent(), SMESH_Gen_i::PublishHypothesis(), SMESH_Gen_i::PublishInStudy(), SMESH_Gen_i::PublishMesh(), qualitetrte_(), SMDS_Mesh::registerElement(), SMDS_MeshElementIDFactory::ReleaseID(), SMESH_Group_i::Remove(), SMESHDS_Command::RemoveElement(), SMESH_Mesh_i::removeGroup(), SMESHDS_Document::RemoveHypothesis(), SMESH_Mesh::RemoveHypothesis(), SMESH_Mesh_i::removeHypothesis(), SMESHDS_Command::RemoveNode(), SMESH::RenderViewWindow(), SMESHDS_Command::Renumber(), SMESH::RepaintCurrentView(), SMESH::RepaintViewWindow(), SMESH_Pattern::Save(), SMESH_Gen_i::SaveASCII(), SMESH_Swig::SetActorAspect(), SMESH_ActorDef::SetEntityMode(), SMDS_VolumeTool::setFace(), SMESH_Pattern::setFirstEdge(), SMESH_Mesh_i::SetImpl(), SMDS_Mesh::setInverseElements(), SMESH_GroupBase_i::SetName(), SMESH_MeshEditor_i::SetNodeOnFace(), SMESH_Pattern::setShapeToMesh(), SMESH_MeshEditor::SewFreeBorder(), SMESH_Mesh::ShapeToMesh(), SMESH_ActorDef::SMESH_ActorDef(), SMESH_Client::SMESH_Client(), SMESH_DeviceActor::SMESH_DeviceActor(), SMESH_GroupObj::SMESH_GroupObj(), SMESH_Mesh::SMESH_Mesh(), SMESH_MeshObj::SMESH_MeshObj(), SMESH_PreviewActorsCollection::SMESH_PreviewActorsCollection(), SMESH_subMesh_i::SMESH_subMesh_i(), SMESH_SubMeshObj::SMESH_SubMeshObj(), SMESH_subMeshObj::SMESH_subMeshObj(), SMESH_VisualObjDef::SMESH_VisualObjDef(), SMESHEngine_factory(), SMESH_Pattern::sortSameSizeWires(), SPADDERPluginTesterEngine_factory(), counters::stats(), StdMeshers_MEFISTO_2D::StoreResult(), SMESH_MeshEditor::sweepElement(), SMESH_Client::Update(), SMESH_MeshObj::Update(), SMESH_SubMeshObj::Update(), SMESH_ActorDef::Update(), SMESH::UpdateSelectionProp(), SMESH_Block::Values(), SMDS_VtkVolume::vtkOrder(), SMESH_ActorDef::~SMESH_ActorDef(), SMESH_DeviceActor::~SMESH_DeviceActor(), SMESH_GroupObj::~SMESH_GroupObj(), SMESH_Mesh::~SMESH_Mesh(), SMESH_MeshObj::~SMESH_MeshObj(), SMESH_PreviewActorsCollection::~SMESH_PreviewActorsCollection(), SMESH_subMeshObj::~SMESH_subMeshObj(), SMESH_VisualObjDef::~SMESH_VisualObjDef(), and SMESH::TPythonDump::~TPythonDump().