Salome HOME
[CEA 13302] Policy for c++ files ? using namespaces in c++ header files. boost_ptr... V9_3_0b1
authorrnv <rnv@opencascade.com>
Tue, 12 Mar 2019 10:25:50 +0000 (13:25 +0300)
committerrnv <rnv@opencascade.com>
Tue, 12 Mar 2019 10:25:50 +0000 (13:25 +0300)
48 files changed:
src/HEXABLOCK/Hex.cxx
src/HEXABLOCK/Hex.hxx
src/HEXABLOCK/HexBiCylinder.cxx
src/HEXABLOCK/HexBiCylinder.hxx
src/HEXABLOCK/HexCloner.cxx
src/HEXABLOCK/HexDocument.cxx
src/HEXABLOCK/HexDocument.hxx
src/HEXABLOCK/HexDocument_Xml.cxx
src/HEXABLOCK/HexDocument_asso.cxx
src/HEXABLOCK/HexDocument_quads.cxx
src/HEXABLOCK/HexDocument_skin.cxx
src/HEXABLOCK/HexDocument_tools.cxx
src/HEXABLOCK/HexDumpStudy.cxx
src/HEXABLOCK/HexDumpStudy.hxx
src/HEXABLOCK/HexEdge.cxx
src/HEXABLOCK/HexEdge.hxx
src/HEXABLOCK/HexElements.cxx
src/HEXABLOCK/HexElements_bis.cxx
src/HEXABLOCK/HexElements_check.cxx
src/HEXABLOCK/HexElements_grid.cxx
src/HEXABLOCK/HexElements_ter.cxx
src/HEXABLOCK/HexEltBase.cxx
src/HEXABLOCK/HexEltBase.hxx
src/HEXABLOCK/HexGroup.cxx
src/HEXABLOCK/HexGroup.hxx
src/HEXABLOCK/HexHexa.cxx
src/HEXABLOCK/HexKas_functions.cxx
src/HEXABLOCK/HexKas_functions.hxx
src/HEXABLOCK/HexNewShape.cxx
src/HEXABLOCK/HexNewShape.hxx
src/HEXABLOCK/HexQpattern.hxx
src/HEXABLOCK/HexQuad.cxx
src/HEXABLOCK/HexShape.cxx
src/HEXABLOCK/HexShape.hxx
src/HEXABLOCK/HexSubShape.hxx
src/HEXABLOCK/HexVertexShape.hxx
src/HEXABLOCK/HexWitness.cxx
src/HEXABLOCK/HexXmlTree.cxx
src/HEXABLOCK/HexXmlTree.hxx
src/HEXABLOCK/HexXmlWriter.cxx
src/HEXABLOCK/HexXmlWriter.hxx
src/HEXABLOCK/hexa_base.hxx
src/HEXABLOCK/hexa_utils.cxx
src/HEXABLOCK/test_hexa6.cxx
src/HEXABLOCKGUI/HEXABLOCKGUI_DocumentModel.cxx
src/HEXABLOCKGUI/HEXABLOCKGUI_DocumentModel.hxx
src/HEXABLOCK_SWIG/hexablock_swig.i
src/HEXABLOCK_SWIG/hexablock_swig_wrap.cc

index 7ee6a07ee48dc5a30996739614e4c6bffb574819..54be9d124bdf6b3af6449766c115d33c13a7aba9 100644 (file)
@@ -85,7 +85,7 @@ Document* Hex::addDocument (cpchar nomdoc)
    if (actif)
        glob->dump << nomdoc;
 
-   string name;
+   std::string name;
    makeName (nomdoc, name);
    Document* doc = new Document (name.c_str(), this);
 
@@ -160,7 +160,7 @@ Document* Hex::findDocument (cpchar name)
    return NULL;
 }
 // ======================================================== makeName
-void Hex::makeName (cpchar radical, string& name)
+void Hex::makeName (cpchar radical, std::string& name)
 {
    char cnum [8];
    int  numero = 0;
index b88056b919e5e04492e7ecc1f4ea38bb079dc519..bac5057c6c5f99d81444ee0c4d9c417564d3d49e 100644 (file)
@@ -45,7 +45,7 @@ public:
    Document* addDocument  (cpchar name="default");
    Document* loadDocument (cpchar name);
    Document* findDocument (cpchar name);
-   Document* findDocument (const string& name) 
+   Document* findDocument (const std::string& name) 
              { return findDocument (name.c_str()) ; }
    void what ();
    int    sizeofMessage  ();
@@ -54,7 +54,7 @@ public:
 #ifndef SWIG
    int loadAllDocs (cpchar flow);
    int saveAllDocs (cpchar filename);
-   void makeName   (cpchar radical, string& name);
+   void makeName   (cpchar radical, std::string& name);
 
    void lockDump();
    void restoreDump();
@@ -66,7 +66,7 @@ public:
 
 private:
    static Hex* first_instance;
-   vector <Document*> liste_documents;
+   std::vector <Document*> liste_documents;
    Globale*    glob;
 #endif    // not SWIG
 };
index 4584ed7124b89f8ccfaf0e928e8cabce09868158..c71bd6886d57b8678cc94f13fcf734be4ae85eb6 100644 (file)
@@ -886,7 +886,7 @@ int BiCylinder::assoIntersection (int nxs, int nzs)
    int ier = HOK;
    Real3  pse, psw, sorig, sbase;
    Real3  pbe, pbw, borig, bbase;
-   string brep;
+   std::string brep;
    int ny0 = 0;
    int nyd = NbrCotes/2;
    int MiddleSlice1 = 3;
index ea3a6dc2a535f2ae6afb8aabff19db565def1b42..b225ffa4cd6d2f4ce825a98227105af3d563c9ed 100644 (file)
@@ -108,8 +108,8 @@ private :
     Real3     cross_oribig,   cross_dirbig;
     Real3     cross_orismall, cross_dirsmall;
 
-    map <int,int> map_vertex, map_edge, map_quad, map_hexa;
-    map <int,int> :: iterator it_map;
+    std::map <int,int> map_vertex, map_edge, map_quad, map_hexa;
+    std::map <int,int> :: iterator it_map;
 
     int    nbr_hexas1, nbr_quads1, nbr_edges1, nbr_vertex1;
     double cross_rayext  [V_TWO];
index 03353623d18383768c0ef9cd31747b1959de2ad6..5eddb58e0e2a05909166d81059b1f0b117061272 100644 (file)
@@ -34,7 +34,7 @@
 
 BEGIN_NAMESPACE_HEXA
 
-void transfo_brep (string& brep, Matrix* matrice, string& trep);
+void transfo_brep (std::string& brep, Matrix* matrice, std::string& trep);
 static bool db = false;
 
 // ============================================================= Constructeur
@@ -98,8 +98,8 @@ Edge* Cloner::clonerEdge (Edge* orig)
    for (int nro=0 ; nro < nbass ; nro++)
        {
        Shape* shape = tab_asso [nro];
-       string brep  = shape->getBrep();
-       string trep;
+       std::string brep  = shape->getBrep();
+       std::string trep;
        transfo_brep (brep, matrice, trep);
        Shape* tshape = new Shape (trep);
        tshape->setBounds (shape->getStart(), shape->getEnd());
@@ -146,8 +146,8 @@ Quad* Cloner::clonerQuad (Quad* orig)
    for (int nro=0 ; nro < nbass ; nro++)
        {
        Shape* shape = tab_asso [nro];
-       string brep  = shape->getBrep();
-       string trep;
+       std::string brep  = shape->getBrep();
+       std::string trep;
        transfo_brep (brep, matrice, trep);
        Shape* tshape = new Shape (trep);
        copie ->addAssociation (tshape);
index e55c9c6b10f10ae40533b085572f0048a63fcc7a..16e1ae67fd20767463b9c25b824747d7aad5a676 100644 (file)
@@ -676,13 +676,13 @@ int Document::mergeVertices (Vertex* vpar, Vertex* vold)
       return ier;
       }
 
-   map <Quad*,   Quad*>   rep_quad;
-   map <Edge*,   Edge*>   rep_edge;
-   map <Vertex*, Vertex*> rep_vertex;
+   std::map <Quad*,   Quad*>   rep_quad;
+   std::map <Edge*,   Edge*>   rep_edge;
+   std::map <Vertex*, Vertex*> rep_vertex;
 
-   map <Quad*,   Quad*>   :: iterator itq;
-   map <Edge*,   Edge*>   :: iterator ited;
-   map <Vertex*, Vertex*> :: iterator itv;
+   std::map <Quad*,   Quad*>   :: iterator itq;
+   std::map <Edge*,   Edge*>   :: iterator ited;
+   std::map <Vertex*, Vertex*> :: iterator itv;
    
    rep_vertex [vold] = vpar;
    int nbparv  = vold->getNbrParents ();
@@ -875,7 +875,7 @@ Law* Document::findLaw (const char* name)
 {
    DumpStart ("findLaw", name);
 
-   string nom = name;
+   std::string nom = name;
    Law*   loi = NULL;
 
    for (int nro=0 ;loi==NULL &&  nro<nbr_laws; nro++)
@@ -1068,7 +1068,7 @@ int Document::setName (cpchar prefix)
        ier = HERR;
    else
        {
-       string name = prefix;
+       std::string name = prefix;
        if (hex_parent != NULL)
            hex_parent->makeName (prefix, name);
        el_name = name;
@@ -1124,7 +1124,7 @@ bool Document::isEmpty ()
    return nombre <= 0 && countLaw  () <= 1;
 }
 // ======================================================== getNextName
-cpchar Document::getNextName (EnumElt type, string& buff)
+cpchar Document::getNextName (EnumElt type, std::string& buff)
 {
    char name [8];
    EltBase::makeName (type, doc_nbr_elt [type], name);
@@ -1134,12 +1134,12 @@ cpchar Document::getNextName (EnumElt type, string& buff)
 }
 
 // ======================================================== getNextName
-string Document::getNextName (EnumElt type)
+std::string Document::getNextName (EnumElt type)
 {
    char name [8];
    EltBase::makeName (type, doc_nbr_elt [type], name);
 
-   return string(name);
+   return std::string(name);
 }
 
 // ======================================================== lockDump
index b1f31bf7ca8fb82db5c16b5427cf4fcce4d08f03..b3833749052a57ae1a31a923b672a92320e011ce 100644 (file)
@@ -343,8 +343,8 @@ public:
     void  reorderQuads ();
 
    // --------------------------------------------------- Evols Hexa5
-   cpchar getNextName (EnumElt type, string& name);
-   string getNextName (EnumElt type);
+   cpchar getNextName (EnumElt type, std::string& name);
+   std::string getNextName (EnumElt type);
 
    virtual char* makeVarName (char* name);
    void    lockDump();
index 16b89d3ddf4be55d50022badcc90a0315ba5d155..2339db3b9ff589a64f2b2b4ae5e2893e48d4dad1 100644 (file)
@@ -50,7 +50,7 @@
 BEGIN_NAMESPACE_HEXA
 
 // ======================================================== get_coords
-int get_coords (const string& chaine, double& x, double& y, double& z)
+int get_coords (const std::string& chaine, double& x, double& y, double& z)
 {
    // int nv = sscanf (chaine.c_str (), "%lg %lg %lg", &x, &y, &z);
    cpchar buffer = chaine.c_str ();
@@ -59,7 +59,7 @@ int get_coords (const string& chaine, double& x, double& y, double& z)
    return HOK;
 }
 // ======================================================== get_coords
-int get_coords (const string& chaine, double& x, double& y)
+int get_coords (const std::string& chaine, double& x, double& y)
 {
    cpchar buffer = chaine.c_str ();
    int nv = sscanf (buffer, "%lg %lg", &x, &y);
@@ -67,7 +67,7 @@ int get_coords (const string& chaine, double& x, double& y)
    return HOK;
 }
 // ======================================================== parse_name
-int parse_name (XmlTree* node, const string& nom, EltBase* elt)
+int parse_name (XmlTree* node, const std::string& nom, EltBase* elt)
 {
    int lg    = nom.size();
    int nroid = 0;
@@ -76,7 +76,7 @@ int parse_name (XmlTree* node, const string& nom, EltBase* elt)
 
    elt->setId (nroid);
 
-   const  string& name = node->findValue ("name");
+   const  std::string& name = node->findValue ("name");
    if (name=="")
       return HERR;
 
@@ -84,11 +84,11 @@ int parse_name (XmlTree* node, const string& nom, EltBase* elt)
    return HOK;
 }
 // ======================================================== get_names
-void get_names (const string& chaine, int size, vector<string>& table)
+void get_names (const std::string& chaine, int size, std::vector<std::string>& table)
 {
    table.clear ();
    int    lg    = chaine.size();
-   string mot   = "";
+   std::string mot   = "";
    bool encours = false;
 
    for (int nc=0 ; nc<lg ; nc++)
@@ -120,7 +120,7 @@ int count_children (XmlTree* dad)
 int Document::loadXml (cpchar ficname)
 {
    XmlTree xml("");
-   string filename = ficname;
+   std::string filename = ficname;
    //el_name         = Kernel_Utils::GetBaseName ((pchar)ficname);
    make_basename (ficname, el_name);
 
@@ -173,21 +173,21 @@ int Document::parseXml (XmlTree& xml)
 {
    // xml.dump ();
 
-   map <std::string, Vertex*> t_vertex;
-   map <std::string, Edge*>   t_edge;
-   map <std::string, Quad*>   t_quad;
-   map <std::string, Hexa*>   t_hexa;
-   map <std::string, Vector*> t_vector;
-   vector <string> tname;
+   std::map <std::string, Vertex*> t_vertex;
+   std::map <std::string, Edge*>   t_edge;
+   std::map <std::string, Quad*>   t_quad;
+   std::map <std::string, Hexa*>   t_hexa;
+   std::map <std::string, Vector*> t_vector;
+   std::vector <std::string> tname;
 
-   const  string& version = xml.findValue ("version");
+   const  std::string& version = xml.findValue ("version");
    if (version == "")
        {
        cout << " **** Format du fichier XML perime"
             << endl;
        return HERR;
        }
-   const  string& name = xml.findValue ("name");
+   const  std::string& name = xml.findValue ("name");
    if (name != el_name)
        setName (name.c_str());
 
@@ -200,12 +200,12 @@ int Document::parseXml (XmlTree& xml)
    for (int nro=0 ; nro < nbrelts ; nro++)
        {
        XmlTree* node = rubrique->getChild (nro);
-       const string& type = node->getName();
+       const std::string& type = node->getName();
        double px, py, pz;
        if (type=="Vertex")
           {
-          const  string& nom    = node->findValue ("id");
-          const  string& coords = node->findValue ("coord");
+          const  std::string& nom    = node->findValue ("id");
+          const  std::string& coords = node->findValue ("coord");
           get_coords (coords, px, py, pz);
 
           vertex = addVertex (px, py, pz);
@@ -225,11 +225,11 @@ int Document::parseXml (XmlTree& xml)
    for (int nro=0 ; nro < nbrelts ; nro++)
        {
        XmlTree*      node = rubrique->getChild (nro);
-       const string& type = node->getName();
+       const std::string& type = node->getName();
        if (type=="Edge")
           {
-          const  string& nom      = node->findValue ("id");
-          const  string& vertices = node->findValue ("vertices");
+          const  std::string& nom      = node->findValue ("id");
+          const  std::string& vertices = node->findValue ("vertices");
           get_names (vertices, V_TWO, tname);
           edge = new Edge (t_vertex [tname[0]], t_vertex [tname[1]]);
           t_edge [nom] = edge;
@@ -248,11 +248,11 @@ int Document::parseXml (XmlTree& xml)
    for (int nro=0 ; nro < nbrelts ; nro++)
        {
        XmlTree*      node = rubrique->getChild (nro);
-       const string& type = node->getName();
+       const std::string& type = node->getName();
        if (type=="Quad")
           {
-          const string& nom   = node->findValue ("id");
-          const string& edges = node->findValue ("edges");
+          const std::string& nom   = node->findValue ("id");
+          const std::string& edges = node->findValue ("edges");
           get_names (edges, V_TWO, tname);
 
           quad = new Quad (t_edge [tname[0]], t_edge [tname[1]],
@@ -272,8 +272,8 @@ int Document::parseXml (XmlTree& xml)
    for (int nro=0 ; nro < nbrelts ; nro++)
        {
        XmlTree* node = rubrique->getChild (nro);
-       const  string& nom   = node->findValue ("id");
-       const  string& quads = node->findValue ("quads");
+       const  std::string& nom   = node->findValue ("id");
+       const  std::string& quads = node->findValue ("quads");
        get_names (quads, V_TWO, tname);
 
        Hexa* hexa =  new Hexa (t_quad [tname[0]], t_quad [tname[1]],
@@ -290,8 +290,8 @@ int Document::parseXml (XmlTree& xml)
        {
        XmlTree* node = rubrique->getChild (nro);
        double px, py, pz;
-       const  string& nom    = node->findValue ("id");
-       const  string& coords = node->findValue ("coord");
+       const  std::string& nom    = node->findValue ("id");
+       const  std::string& coords = node->findValue ("coord");
        get_coords (coords, px, py, pz);
 
        Vector* vector = addVector (px, py, pz);
@@ -305,10 +305,10 @@ int Document::parseXml (XmlTree& xml)
    for (int nro=0 ; nro < nbrelts ; nro++)
        {
        XmlTree* node = rubrique->getChild (nro);
-       const  string& id    = node->findValue ("id");
-       const  string& kind  = node->findValue ("kind");
-       const  string& nodes = node->findValue ("nodes");
-       const  string& coeff = node->findValue ("coeff");
+       const  std::string& id    = node->findValue ("id");
+       const  std::string& kind  = node->findValue ("kind");
+       const  std::string& nodes = node->findValue ("nodes");
+       const  std::string& coeff = node->findValue ("coeff");
 
        int    nbnodes = atoi (nodes.c_str());
        double koeff   = atof (coeff.c_str());
@@ -326,9 +326,9 @@ int Document::parseXml (XmlTree& xml)
    for (int nro=0 ; nro < nbrelts ; nro++)
        {
        XmlTree* node = rubrique->getChild (nro);
-       const  string& nmedge  = node->findValue ("edge");
-       const  string& nmlaw   = node->findValue ("law");
-       //  const  string& nmway   = node->findValue ("way");
+       const  std::string& nmedge  = node->findValue ("edge");
+       const  std::string& nmlaw   = node->findValue ("law");
+       //  const  std::string& nmway   = node->findValue ("way");
 
        edge     = t_edge [nmedge];
        Law* law = findLaw (nmlaw.c_str());
@@ -345,8 +345,8 @@ int Document::parseXml (XmlTree& xml)
        {
        XmlTree*  ndgroup = rubrique->getChild (nro);
        XmlTree*  node    = ndgroup ->getChild (0);
-       const  string& nom   = node->findValue ("name");
-       const  string& ckind = node->findValue ("kind");
+       const  std::string& nom   = node->findValue ("name");
+       const  std::string& ckind = node->findValue ("kind");
 
        EnumGroup kind   = Group::getKind (ckind);
        Group*    groupe = addGroup (nom.c_str(), kind);
@@ -356,7 +356,7 @@ int Document::parseXml (XmlTree& xml)
        for (int nelt=1 ; nelt < nbrelts ; nelt++)
            {
            node = ndgroup ->getChild (nelt);
-           const string& id = node->findValue ("id");
+           const std::string& id = node->findValue ("id");
            switch (type)
               {
               case EL_HEXA : groupe->addElement (t_hexa [id]);
@@ -770,7 +770,7 @@ void Document::hputError (cpchar mess, EltBase* e1, EltBase* e2)
 // ======================================================== parseSubShape
 SubShape* Document::parseSubShape (XmlTree* node)
 {
-   const string& name  = node->findValue   ("shape");
+   const std::string& name  = node->findValue   ("shape");
    int           subid = node->findInteger ("subid");
    NewShape*     shape = findShape (name);
    if (shape==NULL)
@@ -801,7 +801,7 @@ void Document::parseAssociation (XmlTree* node, Edge* edge)
    if (shape->getDim()!=1)
       return;
 
-   const  string& inter = node->findValue ("interval");
+   const  std::string& inter = node->findValue ("interval");
    double pdeb, pfin;
    get_coords (inter, pdeb, pfin);
 
@@ -829,12 +829,12 @@ void Document::parseShapes (XmlTree& root)
    for (int nro=0 ; nro < nbrelts ; nro++)
        {
        XmlTree*      node = rubrique->getChild (nro);
-       const string& type = node->getName();
+       const std::string& type = node->getName();
        if (type=="Shape")
           {
-          const string& nom   = node->findValue   ("id"  );
+          const std::string& nom   = node->findValue   ("id"  );
           int           orig  = node->findInteger ("type");
-          const string& brep  = node->findValue   ("brep");
+          const std::string& brep  = node->findValue   ("brep");
           NewShape*     shape = new NewShape (this, (EnumShape)orig);
 
           parse_name (node, nom, shape);
@@ -848,7 +848,7 @@ void Document::parseShapes (XmlTree& root)
               {
               Real3    point;
               XmlTree* sommet = node->getChild (nv);
-              const  string& coords = sommet->findValue ("coord");
+              const  std::string& coords = sommet->findValue ("coord");
               get_coords (coords, point[dir_x], point[dir_y], point[dir_z]);
               doc_cloud->addPoint (point);
               }
index 55b42db95de09e6d7195926209b5d392281330c8..da5d19b78238ce0b9d680fa2318d1531d14cba5e 100644 (file)
@@ -34,9 +34,9 @@ BEGIN_NAMESPACE_HEXA
 static bool db = on_debug ();  // == getenv ("HEXA_DB") > 0
 
 
-int vertexInLine (Vertex* vfirst, Edges& mline, vector<int> &tsens);
+int vertexInLine (Vertex* vfirst, Edges& mline, std::vector<int> &tsens);
 // ====================================================== vertexInLine
-int vertexInLine (Vertex* vfirst, Edges& mline, vector<int> &tsens)
+int vertexInLine (Vertex* vfirst, Edges& mline, std::vector<int> &tsens)
 {
    int nbseg = mline.size ();
 
index cab2f4970f2e7d1553ce3a89622585459b1e9bf3..da4a30bdbea63c5adbb456a35a594560aa5ac0c4 100644 (file)
@@ -48,7 +48,7 @@ static bool db = false;
 // ======================================================== copyDocument
 Document* Document::copyDocument ()
 {
-   string nom = "CopyOf_";
+   std::string nom = "CopyOf_";
    nom += el_name;
  
    Document* clone = new Document (nom.c_str());
@@ -624,11 +624,11 @@ Elements* Document::replace (Quads motif, Quads cible, Vertex* p1, Vertex* c1,
 // ========================================================= print_replace
 void print_replace (Edge* zig, Edge*  zag)
 {
-   cout << zig->getName() << " = (" << zig->getVertex(0)->getName() 
+   std::cout << zig->getName() << " = (" << zig->getVertex(0)->getName() 
         << ", " << zig->getVertex(1)->getName() << ") est clone en ";
 
-   cout << zag->getName() << " = (" << zag->getVertex(0)->getName() 
-        << ", " << zag->getVertex(1)->getName() << ")" << endl;
+   std::cout << zag->getName() << " = (" << zag->getVertex(0)->getName() 
+        << ", " << zag->getVertex(1)->getName() << ")" << std::endl;
 }
 // ========================================================= only_in_hexas
 bool only_in_hexas (Hexas& thexas, Quad* quad)
@@ -656,11 +656,11 @@ bool only_in_hexas (Hexas& thexas, Edge*  edge)
        Quad* quad = edge->getParent   (nq); 
        if (NOT only_in_hexas (thexas, quad))
           {
-          cout << " ... inMoreHexas " << edge->makeDefinition() << endl; 
+          std::cout << " ... inMoreHexas " << edge->makeDefinition() << std::endl; 
           return false;
           }
        }
-   cout << " ... only_in_hexas " << edge->makeDefinition() << endl; 
+   std::cout << " ... only_in_hexas " << edge->makeDefinition() << std::endl; 
    return true;
 }
 // ========================================================= replace_vertex
@@ -676,7 +676,7 @@ Elements* Document::disconnectEdges (Hexas thexas, Edges  tedges)
    DumpStart ("disconnectEdges",  thexas << tedges);
    
    if (db)
-      cout << " +++ Disconnect Edges" << endl;
+      std::cout << " +++ Disconnect Edges" << std::endl;
 
    Elements* grid  = new Elements (this);
 
@@ -687,9 +687,9 @@ Elements* Document::disconnectEdges (Hexas thexas, Edges  tedges)
 
    if (nbhexas != nbedges) 
       {
-      cout << " **** Error in Document::disconnectEdges\n" << endl;
-      cout << " **** Number of Edges and number of Hexas are different\n" 
-           << endl;
+      std::cout << " **** Error in Document::disconnectEdges\n" << std::endl;
+      std::cout << " **** Number of Edges and number of Hexas are different\n" 
+           << std::endl;
       return NULL;
       }
    else if (nbhexas==1)
@@ -703,22 +703,22 @@ Elements* Document::disconnectEdges (Hexas thexas, Edges  tedges)
        {
        if (BadElement (tedges[nro]))
           {
-          cout << " **** Eddge number " << nro+1 << " is incorrect"
-               << endl;
+          std::cout << " **** Eddge number " << nro+1 << " is incorrect"
+               << std::endl;
           return NULL;
           }
        if (BadElement (thexas[nro]))
           {
-          cout << " **** Hexa number " << nro+1 << " is incorrect"
-               << endl;
+          std::cout << " **** Hexa number " << nro+1 << " is incorrect"
+               << std::endl;
           return NULL;
           }
        if (db)
-          cout << nro+1 << " hexa = " << thexas[nro]->getName () 
+          std::cout << nro+1 << " hexa = " << thexas[nro]->getName () 
                         << ", edge = " << tedges[nro]->getName () 
                         << " = (" << tedges[nro]->getVertex(0)->getName () 
                         << ", "   << tedges[nro]->getVertex(1)->getName () 
-                        << ")" << endl;
+                        << ")" << std::endl;
        }
 
    for (int nro=0 ; nro<nbhexas ; nro++)
@@ -726,21 +726,21 @@ Elements* Document::disconnectEdges (Hexas thexas, Edges  tedges)
        int ned = thexas[nro]->findEdge (tedges[nro]);
        if (ned==NOTHING)
           {
-          cout << " **** Edge number " << nro+1 
-               << " doesnt belong to correspondant hexa" << endl;
+          std::cout << " **** Edge number " << nro+1 
+               << " doesnt belong to correspondant hexa" << std::endl;
           return NULL;
           }
        }
 
-   vector <Vertex*> tvertex (nbedges+1);
+   std::vector <Vertex*> tvertex (nbedges+1);
 
    for (int nro=1 ; nro<nbedges ; nro++)
        {
        tvertex[nro] = tedges[nro]->commonVertex (tedges[nro-1]);
        if (tvertex[nro]==NULL)
           {
-          cout << " **** Edge number " << nro 
-               << " doesnt intesect next edge" << endl;
+          std::cout << " **** Edge number " << nro 
+               << " doesnt intesect next edge" << std::endl;
           return NULL;
           }
        }
@@ -755,24 +755,24 @@ Elements* Document::disconnectEdges (Hexas thexas, Edges  tedges)
        int ned = thexas[nro]->findEdge (tedges[nro]);
        if (ned==NOTHING)
           {
-          cout << " **** Edge number " << nro+1 
-               << " doesnt belong to correspondant hexa" << endl;
+          std::cout << " **** Edge number " << nro+1 
+               << " doesnt belong to correspondant hexa" << std::endl;
           return NULL;
           }
        }
                       // Fin des controles, on peut y aller ...
 
-   map <Edge*, int> state_edge;
-   map <Quad*, int> state_quad;
+   std::map <Edge*, int> state_edge;
+   std::map <Quad*, int> state_quad;
    enum { UNDEFINED, REPLACED, AS_IS };
 
-   map <Vertex*, Vertex*> new_vertex;
-   map <Edge*,   Edge*>   new_edge;
-   map <Quad*,   Quad*>   new_quad;
+   std::map <Vertex*, Vertex*> new_vertex;
+   std::map <Edge*,   Edge*>   new_edge;
+   std::map <Quad*,   Quad*>   new_quad;
 
-   map <Vertex*, Vertex*> :: iterator it_vertex;
-   map <Edge*,   Edge*>   :: iterator it_edge;
-   map <Quad*,   Quad*>   :: iterator it_quad;
+   std::map <Vertex*, Vertex*> :: iterator it_vertex;
+   std::map <Edge*,   Edge*>   :: iterator it_edge;
+   std::map <Quad*,   Quad*>   :: iterator it_quad;
 
 #define VertexIsNew(v) (it_vertex=new_vertex.find(v))!=new_vertex.end()
 
@@ -786,8 +786,8 @@ Elements* Document::disconnectEdges (Hexas thexas, Edges  tedges)
        new_vertex [tvertex[nro]] = node1;
        if (db)
           {
-          cout << nro << " : "         << tvertex[nro]->getName() 
-               << " est clone en " << node1->getName() << endl;
+          std::cout << nro << " : "         << tvertex[nro]->getName() 
+               << " est clone en " << node1->getName() << std::endl;
           }
 
        if (nro>0)
@@ -802,7 +802,7 @@ Elements* Document::disconnectEdges (Hexas thexas, Edges  tedges)
        }
 
    if (db)
-      cout << "_____________________________ Autres substitutions" << endl;
+      std::cout << "_____________________________ Autres substitutions" << std::endl;
 
    // Un edge non remplace, qui contient un vertex remplace
    //         commun a plus de 2 faces (donc appartenant a un autre hexa)
index 1e64cd25f3f36dd6bc3a093d2abb5a3d1c7ca380..9c8b214a1bcf9866019c702db0999af2fbc9f408 100644 (file)
@@ -38,7 +38,7 @@ struct OrientedQuad
      Vertex* v2;
      };
 
-void propagateOrientation (queue <OrientedQuad> &queue_quads, Quad* orig);
+void propagateOrientation (std::queue <OrientedQuad> &queue_quads, Quad* orig);
 void makeSkin (Quad* orig);
 
 // ========================================================= reorderFaces
@@ -79,7 +79,7 @@ void Document::reorderQuads ()
 void makeSkin (Quad* orig)
 {
    OrientedQuad triplet;
-   queue <OrientedQuad> queue_quads;
+   std::queue <OrientedQuad> queue_quads;
 
    orig->setOrientation();  // Q_DIRECT=1, Q_INVERSE=2 
    propagateOrientation (queue_quads, orig);
@@ -103,7 +103,7 @@ void makeSkin (Quad* orig)
       }
 }
 // ==================================================== propagateOrientation
-void propagateOrientation (queue <OrientedQuad> &queue_quads, Quad* orig)
+void propagateOrientation (std::queue <OrientedQuad> &queue_quads, Quad* orig)
 {
    OrientedQuad triplet;
                 // Q_DIRECT : le sens des vertex est l'exterieur 
index 7395770fece6f825814112fd33a71d5726640a9c..96ff7312d07d79d87b5fc57dca6e74d04ae9c73b 100644 (file)
@@ -328,7 +328,7 @@ int Document::saveVtk  (cpchar radical, int &nro)
    sprintf (num, "%d", nro);
    nro ++;
 
-   string filename = radical;
+   std::string filename = radical;
    filename += num;
    filename += ".vtk";
    int ier = saveVtk (filename.c_str());
index 96090bfa1024a77217d1e9f3bde855d6f22d73af..1d384d23ed730c7a51705cceb0cd89a820e69fce 100644 (file)
@@ -49,7 +49,7 @@ DumpStudy::DumpStudy ()
    if (fic_dump==NULL)
        fic_dump = stdout;
 
-   string buff;
+   std::string buff;
    cpchar when = get_time (buff);
 
    fprintf (fic_dump, "\n");
@@ -117,7 +117,7 @@ DumpStudy& DumpStudy::operator << (cpchar val)
    if (NOT is_open)
       return *this; 
 
-   string valeur ("'");
+   std::string valeur ("'");
    valeur += val;
    valeur += "'";
 
@@ -270,7 +270,7 @@ void DumpStudy::restore (bool reactive)
       is_open = false;
 }
 // =================================================== getBegin 
-void DumpStudy::getBegin (string& begin)
+void DumpStudy::getBegin (std::string& begin)
 {
    begin  = right_part;
    begin += ")";
@@ -351,7 +351,7 @@ void DumpStudy::closeVector ()
 cpchar DumpStudy::findName (EltBase* elt)
 {
    cpchar name = "Unknown";
-   map <EltBase*, string> :: iterator iter = map_name.find (elt);
+   std::map <EltBase*, std::string> :: iterator iter = map_name.find (elt);
    if (iter != map_name.end())
       name = iter->second.c_str();
    else
index 1ce8b79344107510c93dd8e1bbe4a6ae4574e126..ba4b4e8efcc349ccf4a09c207f0da40afdb2e17c 100644 (file)
@@ -65,13 +65,13 @@ public :
 
     bool lock ();
     void restore  (bool reactive);
-    void getBegin (string& begin);
+    void getBegin (std::string& begin);
 
 private :
    cpchar findName   (EltBase* elt);
    void addArgVector (EnumElt type, TabElts& table);
    void addArgument  (cpchar  arg);
-   void addArgument  (string& arg) { addArgument (arg.c_str()) ; }
+   void addArgument  (std::string& arg) { addArgument (arg.c_str()) ; }
    void declareVectors ();
    void addVector (cpchar name);
    void majVector (cpchar value);
@@ -82,12 +82,12 @@ private :
    std::vector <std::string>           tab_declar;
 
    int    tab_count [EL_MAXI];
-   string curr_vector;
+   std::string curr_vector;
    int    nbr_values;
 
    FILE*    fic_dump;
-   string   this_name;
-   string   right_part;
+   std::string   this_name;
+   std::string   right_part;
    bool     is_open;
    int      nbr_nulls;
    int      nbr_args;
index 64489b15d98d8a71b2da1ee338069e6ac1c4ceab..e3308cdfbf01157ee9f03ec4552feb65a87bca6d 100644 (file)
@@ -161,7 +161,7 @@ Quad* Edge::getParent  (int nro)
 void Edge::saveXml (XmlWriter* xml)
 {
    char buffer[12];
-   string vertices = e_vertex [V_AMONT]->getName(buffer);
+   std::string vertices = e_vertex [V_AMONT]->getName(buffer);
    vertices += " ";
    vertices       += e_vertex [V_AVAL ]->getName(buffer);
 
@@ -247,9 +247,9 @@ void Edge::dumpPlus ()
        }
 }
 // ======================================================== makeDefinition
-string Edge::makeDefinition ()
+std::string Edge::makeDefinition ()
 {
-   string definition = el_name;
+   std::string definition = el_name;
 
    definition += " = (";
    definition += e_vertex [V_AMONT]->getName();
index 7060e62a005ca378024fc552c31acde950b44443..6ded23466479b15250031c1229e21ee274c9c312 100644 (file)
@@ -81,7 +81,7 @@ public:
     virtual void duplicate ();
     Edge*   getClone  ()                    { return e_clone ;   }
     double* getVector (double vecteur[]);
-    string  makeDefinition ();
+    std::string  makeDefinition ();
 
     int addAssociation (EdgeShape* gline, double deb, double fin);
     int checkAssociation ();
index 087d0939827492799d2fb25563eaa410da9fc747..a4021b4ed19a5c4c53f60ae6cf28da513fa97138 100644 (file)
@@ -513,13 +513,13 @@ int Elements::cutHexas  (const Edges& t_edges, int nbcuts)
                                        // 1) marquage des hexas
    el_root->markAll (NO_USED);
                                        // 2) Memo noeuds
-   vector <Quad*> q_amont;
-   vector <Quad*> q_aval;
-   map    <Vertex*, Vertex*> vis_a_vis;
+   std::vector <Quad*> q_amont;
+   std::vector <Quad*> q_aval;
+   std::map    <Vertex*, Vertex*> vis_a_vis;
 
    int nbnodes = t_edges.size();
-   vector <Vertex*> v_amont (nbnodes);
-   vector <Vertex*> v_aval  (nbnodes);
+   std::vector <Vertex*> v_amont (nbnodes);
+   std::vector <Vertex*> v_aval  (nbnodes);
 
    int nbfaces = 0;
    for (int nro=0; nro<nbnodes ; nro++)
@@ -584,7 +584,7 @@ int Elements::cutHexas  (const Edges& t_edges, int nbcuts)
    tab_edge.resize   (nbr_edges,  NULL);
    tab_hexa.resize   (nbr_hexas,  NULL);
    tab_vertex.resize (nbr_vertex, NULL);
-   vector <Edge*>    tab_pilier (nbpiliers);
+   std::vector <Edge*>    tab_pilier (nbpiliers);
 
    int nbinter = nbcuts + 1;
    for (int ned=0; ned<nbnodes ; ned++)
index f1edbaf3d60ce333746d1ee3d7c111a5631f2701..e27250422646e79149b2a3ad278b99037616a3ca 100644 (file)
@@ -403,7 +403,7 @@ NewShape* Elements::getShape()
 {
    if (grid_geom==NULL)
       {
-      string name = "extrud_" + el_name;
+      std::string name = "extrud_" + el_name;
       grid_geom   = el_root->addShape (name.c_str(), SH_EXTRUD);
       grid_geom -> openShape();
       }
index 06d3576b2327dce6b343d04e1fd23d529e4af5c9..8e7378f7ddebb65f3d1b42473dd0b8a9734c06ae 100644 (file)
@@ -551,7 +551,7 @@ void Elements::checkContour (Quads& tquad, Vertex* v1, Vertex* v2, bool target,
 {
    tedge.clear ();
    cpchar who    = target ? "Target" : "Pattern";
-   string nmedge = target ? "Vertices of target (args 5 and 6)" 
+   std::string nmedge = target ? "Vertices of target (args 5 and 6)" 
                           : "Vertices of pattern (args 3 and 4)" ;
    nmedge += "don't define an edge" ;
 
@@ -563,8 +563,8 @@ void Elements::checkContour (Quads& tquad, Vertex* v1, Vertex* v2, bool target,
       return;
       }
 
-   map <Edge*, int> edge_count;
-   map <Edge*, int> :: iterator iter;
+   std::map <Edge*, int> edge_count;
+   std::map <Edge*, int> :: iterator iter;
    int nbre = tquad.size();
    for (int nq=0 ; nq<nbre ; ++nq)
         {
@@ -634,7 +634,7 @@ void Elements::checkContour (Quads& tquad, Vertex* v1, Vertex* v2, bool target,
 {
    tvertex.clear ();
    cpchar who    = target ? "Target" : "Pattern";
-   string nmedge = target ? "Vertices of target (args 4 and 6)" 
+   std::string nmedge = target ? "Vertices of target (args 4 and 6)" 
                           : "Vertices of pattern (args 3 and 5)" ;
    nmedge += "don't define an edge" ;
 
@@ -646,8 +646,8 @@ void Elements::checkContour (Quads& tquad, Vertex* v1, Vertex* v2, bool target,
       return;
       }
 
-   map <Edge*, int> edge_count;
-   map <Edge*, int> :: iterator iter;
+   std::map <Edge*, int> edge_count;
+   std::map <Edge*, int> :: iterator iter;
    int nbre = tquad.size();
    for (int nq=0 ; nq<nbre ; ++nq)
         {
index 0064559e180be9f8029c7318978035e199afe9ed..43df62c6423dc0af823e17bee4694315772443d3 100644 (file)
@@ -334,9 +334,9 @@ void Elements::fillCenterOdd ()
    int nx0 = 0;
    int nbsecteurs = size_hy / 2;
 
-   vector <Edge*> ker_hedge (nbsecteurs*size_vz);
-   vector <Quad*> ker_hquad (nbsecteurs*size_vz);
-   vector <Quad*> ker_vquad (nbsecteurs*size_vz);
+   std::vector <Edge*> ker_hedge (nbsecteurs*size_vz);
+   std::vector <Quad*> ker_hquad (nbsecteurs*size_vz);
+   std::vector <Quad*> ker_vquad (nbsecteurs*size_vz);
 
    for (int nz=0 ; nz<size_vz ; nz++)
        {
index c9bf0e7fb8551bb0ab960679bb4efb0ef4b9a947..087bb18a6262702772f439c221caf2c3e6f342c1 100644 (file)
@@ -171,7 +171,7 @@ void Elements::assoCylinders (double* ori, double* vk, double angle,
    NewShape* geom = el_root->addShape (name, SH_CYLINDER);
    geom -> openShape();
 
-   string brep;
+   std::string brep;
    // Real3 vk = { normal->getDx(), normal->getDy(), normal->getDz() };
    // normer_vecteur (vk);
 
@@ -283,7 +283,7 @@ void Elements::assoCircle (double* center, Edge* ed1, Edge* ed2, NewShape* geom)
 {
    Real3 oa,  ob, normal;
    Real3 pta, ptb, ptc, ptd;
-   string brep;
+   std::string brep;
 
 //  Les 2 edges dont les petits cotes d'un rectangle de rapport L/l=sqrt(2)
 //  Soit le cercle circonscrit a ce rectangle.
@@ -366,7 +366,7 @@ int Elements::propagateAssociation (Edge* orig, Edge* dest, Edge* dir)
    if (vo1==NULL || vd1==NULL)
       return HERR;
 
-   string  trep;
+   std::string  trep;
    Real3   pa, pb, vdir1, vdir2;
    calc_vecteur (vo1->getPoint (pa), vd1->getPoint (pb), vdir1);
    calc_vecteur (vo2->getPoint (pa), vd2->getPoint (pb), vdir2);
@@ -381,7 +381,7 @@ int Elements::propagateAssociation (Edge* orig, Edge* dest, Edge* dir)
           Shape* shape  = tab_shapes[nro];
           if (shape!=NULL)
              {
-             string brep   = shape->getBrep();
+             std::string brep   = shape->getBrep();
              translate_brep (brep, vdir1, trep);
              // Shape* tshape = new Shape (trep);
              // tshape->setBounds (shape->getStart(), shape->getEnd());
@@ -396,7 +396,7 @@ int Elements::propagateAssociation (Edge* orig, Edge* dest, Edge* dir)
        Shape* shape = vo1->getAssociation ();
        if (shape!=NULL && vd1->getAssociation ()==NULL)
           {
-          string brep   = shape->getBrep();
+          std::string brep   = shape->getBrep();
           translate_brep (brep, vdir, trep);
           // Shape* tshape = new Shape (trep);
           // vd1->setAssociation (tshape);
@@ -430,7 +430,7 @@ int Elements::prismAssociation (Edge* lorig, Edge* ldest, int nh)
        char       name [24];
 
        sprintf (name, "0x%lx#%d", (unsigned long) shape, nh);
-       map<string,int>::iterator iter = map_shape.find (name);
+       std::map<std::string,int>::iterator iter = map_shape.find (name);
        if (iter != map_shape.end())
           subid = iter->second;
        else
@@ -660,7 +660,7 @@ int Elements::saveVtk  (cpchar radical, int &nro)
    sprintf (num, "%d", nro);
    nro ++;
 
-   string filename = radical;
+   std::string filename = radical;
    filename += num;
    filename += ".vtk";
    int ier = saveVtk (filename.c_str());
index abe1b45d86b23c190b0865648e664e46f6d26ca6..c8f93132f42fc0e0ae9e2acda8dc0b186ec78f63 100644 (file)
@@ -173,14 +173,14 @@ bool EltBase::debug (int niv)
    return el_root != NULL && el_root->getLevel() > niv ;
 }
 // ========================================================= getNextName
-string EltBase::getNextName ()
+std::string EltBase::getNextName ()
 {
    if (el_root != NULL)
       return el_root->getNextName (el_type);
 
    char name [16];
    makeName  (el_type, 0, name);
-   return string (name);
+   return std::string (name);
 }
 END_NAMESPACE_HEXA
 
index 3e00a9f7ddfc6fcc0caef700a93f4482b07f826d..1ab727b6590bbb881e775025522c6c080276df67 100644 (file)
@@ -102,19 +102,19 @@ public :
    void  dumpRef ();
 
    cpchar getName ();
-   void   setName (const string& nom) { el_name = nom ; }
+   void   setName (const std::string& nom) { el_name = nom ; }
    void   setName (cpchar nom)        { el_name = nom ; }
 
    bool    debug (int niv=0);
    bool    isAssociated ()            { return is_associated ; }
-   string  getNextName ();
+   std::string  getNextName ();
 
 protected :
    EnumElt   el_type;
    EltBase*  el_next;
    int       el_id;
    Document* el_root;
-   string    el_name;
+   std::string    el_name;
 
    int       el_status;
    int       el_mark;
index 247a46dc8db784df96b923f43182735556c2bf0e..7f66196eb2a66fc8ff6f009792313b2c0ac673c8 100644 (file)
@@ -32,7 +32,7 @@ static const cpchar kind_name[] = { "HexaCell", "QuadCell", "EdgeCell",
 Group::Group   (Document* dad, cpchar nom, EnumGroup grp)
      : EltBase (dad, EL_GROUP) 
 {
-   string name = std::string(nom);
+   std::string name = std::string(nom);
    name.erase (name.find_last_not_of (" \n\r\t" ) + 1);
    name.erase (0, name.find_first_not_of (" \n\r\t" ));
 
index c9307d8b9e146d851d9f6a96e1e754120879fdc4..9172c26c6c8d100f8846d5c7c97c2154ab201419 100644 (file)
@@ -47,7 +47,7 @@ public :
    EnumElt   getTypeElt ()                 { return grp_typelt ; }
 
    static EnumGroup getKind (cpchar kind);
-   static EnumGroup getKind (const string& k) { return getKind (k.c_str());}
+   static EnumGroup getKind (const std::string& k) { return getKind (k.c_str());}
 
 private :
    int grp_id;
index 689c1e0a2254583262d644ebdf41840a19833728..3dc9903cacfb5f8d0783f6668cebefb195a81cac 100644 (file)
@@ -422,7 +422,7 @@ void Hexa::propager (Propagation* prop, int nro)
 void Hexa::saveXml (XmlWriter* xml)
 {
    char ident[12];
-   string quads;
+   std::string quads;
 
    for (int nro=0 ; nro<HQ_MAXI ; nro++)
        {
index f86b969518e3521a02ad47852f4350de2cbeec89..d16a01a6ef7f30ad116f82e52a43167d9645f7a3 100644 (file)
@@ -44,13 +44,13 @@ bool same_coords (gp_Pnt& pa, gp_Pnt& pb, double epsilon)
    return d2 < epsilon;
 }
 // ====================================================== save_brep
-void save_brep (cpchar nom, string brep, int& compteur)
+void save_brep (cpchar nom, std::string brep, int& compteur)
 {
     char buff[8];
     compteur ++;
     sprintf (buff ,"%d", compteur);
 
-    string name (nom);
+    std::string name (nom);
     name += buff;
     name += ".brep";
     FILE*    fic = fopen (name.c_str(), "w");
@@ -58,9 +58,9 @@ void save_brep (cpchar nom, string brep, int& compteur)
     fclose  (fic);
 }
 // ====================================================== geom_make_brep
-void geom_make_brep (TopoDS_Shape& shape, string& brep)
+void geom_make_brep (TopoDS_Shape& shape, std::string& brep)
 {
-   ostringstream  stream_shape;
+   std::ostringstream  stream_shape;
    BRepTools::Write (shape, stream_shape);
    brep = stream_shape.str();
 }
@@ -68,7 +68,7 @@ void geom_make_brep (TopoDS_Shape& shape, string& brep)
 TopoDS_Shape geom_brep2shape (rcstring brep)
 {
    TopoDS_Shape topo;
-   istringstream streamBrep(brep);
+   std::istringstream streamBrep(brep);
    BRep_Builder aBuilder;
    BRepTools::Read (topo, streamBrep, aBuilder);
    return topo;
@@ -76,7 +76,7 @@ TopoDS_Shape geom_brep2shape (rcstring brep)
 // ====================================================== geom_brep2shape
 int geom_brep2shape (rcstring brep, TopoDS_Shape& shape)
 {
-   istringstream streamBrep(brep);
+   std::istringstream streamBrep(brep);
    BRep_Builder  aBuilder;
    BRepTools::Read (shape, streamBrep, aBuilder);
    return HOK;
@@ -106,16 +106,16 @@ int geom_brep2point (rcstring brep, double& px, double& py, double& pz)
    //  edge->getVertex(V_AVAL )->clearAssociation();
 //  }
 // ====================================================== clean_brep
-void clean_brep (string& brep)
+void clean_brep (std::string& brep)
 {
    TopoDS_Shape  shape;
    BRep_Builder  builder;
-   istringstream stream_brep (brep);
+   std::istringstream stream_brep (brep);
 
    BRepTools::Read  (shape, stream_brep, builder);
    BRepTools::Clean (shape);
 
-   ostringstream    stream_shape;
+   std::ostringstream    stream_shape;
    BRepTools::Write (shape, stream_shape);
    brep = stream_shape.str();
 }
index cbf0cdd67b85562eeb2b910df08c50a895a54965..0004bdb4afb0e6d674dd1e09356de961a8ee890b 100644 (file)
@@ -36,10 +36,10 @@ int HexaExport geom_create_cylcyl (double* borig, double* bnorm, double* bbase,
 int HexaExport geom_asso_cylcyl (Edge* edge);
 
 bool HexaExport same_coords (gp_Pnt& pa, gp_Pnt& pb, double epsil2=1e-6);
-void HexaExport save_brep   (cpchar nom, string brep, int& nro);
-void HexaExport clean_brep  (string& brep);
+void HexaExport save_brep   (cpchar nom, std::string brep, int& nro);
+void HexaExport clean_brep  (std::string& brep);
 
-void HexaExport geom_make_brep  (TopoDS_Shape& shape, string& brep);
+void HexaExport geom_make_brep  (TopoDS_Shape& shape, std::string& brep);
 int  HexaExport geom_brep2point (rcstring brep, double& px, double& py, double& pz);
 int  HexaExport geom_brep2shape (rcstring brep, TopoDS_Shape& shape);
 
index 40c3a0c81b0cdc012cb7ebe636c764849adc1799..56e1eb6e993097784665d33fe2c23cac4c364fff 100644 (file)
@@ -437,7 +437,7 @@ int NewShape::addPoint (double* point)
    int  subid = tab_vertex.size() + 2;
 
    sprintf (suffix, ":vertex_%02d", subid);
-   string name = el_name + suffix;
+   std::string name = el_name + suffix;
 
    VertexShape* sub_shape = new VertexShape (this, subid, point);
    sub_shape->setName (name);
@@ -447,7 +447,7 @@ int NewShape::addPoint (double* point)
 // ===================================================== saveBrep
 int NewShape::saveBrep ()
 {
-   string filename = el_name + ".brep";
+   std::string filename = el_name + ".brep";
 
    int ier   = updateBrep ();
    if (ier != HOK)
@@ -518,7 +518,7 @@ void NewShape::parseShape (const TopoDS_Shape& shape)
 void NewShape::addSubShape (const TopoDS_Shape& shape)
 {
    char chnum [32];
-   string name;
+   std::string name;
    sh_indice ++;
 
    int subid = map_shape.Add (shape);
index b356abb6389c440849b9e95c7be011e17ced92ae..86eb1f806070c0961bb6c00ba4f993925c5311e6 100644 (file)
@@ -103,7 +103,7 @@ private :     // ________________________________________________________
    TopoDS_Shape    geo_shape;
 
    EnumShape    sh_origin;
-   string       geo_brep;
+   std::string  geo_brep;
    bool         brep_defined, shape_defined;
 
    TopTools_IndexedMapOfShape map_shape;
index ac77d4c1cb6f6a79b3e922bc78db16356e418d13..32df27c42876670f7b2bdd2d8bcfd4a899dda71f 100644 (file)
@@ -94,9 +94,9 @@ private :
     void projeter  (Vertex* vertex, double& ux, double& uy);
 
 private :
-   vector <QpatVertex> pat_vertex;
-   vector <QpatEdge  > pat_edge;
-   vector <QpatQuad  > pat_quad;
+   std::vector <QpatVertex> pat_vertex;
+   std::vector <QpatEdge  > pat_edge;
+   std::vector <QpatQuad  > pat_quad;
 
    Quads    old_top, old_bottom;
    Hexas    old_hexa;
index 553a613c14caa6db1d479760b16a15ac8574d4de..048bcc09b36cce78d1d8094e8198c3c53d8bdd23 100644 (file)
@@ -470,7 +470,7 @@ Edge* Quad::getOpposEdge (Edge* start, int& sens)
 void Quad::saveXml (XmlWriter* xml)
 {
    char buffer[12];
-   string edges;
+   std::string edges;
 
    for (int nro=0 ; nro<QUAD4 ; nro++)
        {
index 7550af92c32185df872b778c6d5ca82683c7b58f..89fc9a84bd9d094510bf47c98c420517eddd9d33 100644 (file)
 BEGIN_NAMESPACE_HEXA
 
 // ====================================================== Constructeur
-Shape::Shape  (string brep)
+Shape::Shape  (std::string brep)
 {
    b_rep  = brep;
    debut  = 0;
    fin    = 1;
    ident  = "";
 }
-void clean_brep (string& brep);
+void clean_brep (std::string& brep);
 // ====================================================== saveXml
 void Shape::saveXml (XmlWriter* xml)
 {
index b5f625ef4197d8172285914842083703ce156aa2..788d4be7de613c8bf1cf9781968cf697db8db0cd 100644 (file)
@@ -30,18 +30,18 @@ BEGIN_NAMESPACE_HEXA
 class HexaExport Shape 
 {
 public :
-    Shape (string brep);
-    string getBrep  () { return b_rep; }
-    string getIdent () { return ident; }
-    string getIor   () { return ior; }
+    Shape (std::string brep);
+    std::string getBrep  () { return b_rep; }
+    std::string getIdent () { return ident; }
+    std::string getIor   () { return ior; }
 
     double getStart () { return debut;  }
     double getEnd   () { return fin;   }
     void   getBounds (double& pdeb, double& pfin)  { pdeb=debut ; pfin = fin; }
 
-    void  setBrep   (string brep)               { b_rep = brep; }
-    void  setIdent  (string name)               { ident = name; }
-    void  setIor    (string val)                { ior   = val; }
+    void  setBrep   (std::string brep)               { b_rep = brep; }
+    void  setIdent  (std::string name)               { ident = name; }
+    void  setIor    (std::string val)                { ior   = val; }
 
     void  setBounds (double pdeb, double pfin)  { debut = pdeb ; fin = pfin; }
     void  setStart  (double val)                { debut = val ; }
@@ -52,8 +52,8 @@ public :
 private :
     double debut;
     double fin;
-    string ident;
-    string ior;
+    std::string ident;
+    std::string ior;
 
     std::string b_rep;
 };
index 2124fa21433cc41213dfb4fdfec6d91044cd6953..0abb48e8bcf2c07e3a1ae8999945843944b8c92b 100644 (file)
@@ -39,7 +39,7 @@ public :
     int         getDim   ()             { return sub_dim ; }
     virtual EnumKindOfShape kindOf ()   { return kind_of ; }
 
-    const string&       getBrep  ();
+    const std::string&       getBrep  ();
     virtual const TopoDS_Shape& getShape ();
 
     void   saveXml (XmlWriter* xml);
@@ -55,7 +55,7 @@ protected :
     int       sub_dim;     // 0 = point, 1 = arete, 2 = face;
 
     TopoDS_Shape    geo_shape;
-    string          geo_brep;
+    std::string          geo_brep;
     bool            maj_brep, maj_shape;
     EnumKindOfShape kind_of;
 };
index 985abd3da0477a642112ef87f537bbf872150394..af45ba55ce0e1ae0c8cadf160f4b7da5da157ab5 100644 (file)
@@ -50,7 +50,7 @@ private :
     Real3  ss_coord;   // Pour les vertex
     bool   maj_coords;
     bool   free_point;
-    vector <Vertex*> tab_assoc;
+    std::vector <Vertex*> tab_assoc;
 };
 END_NAMESPACE_HEXA
 #endif
index 6979180b4a44a10d71066cb58830f35a2212ce06..154f017820018f5e4e1b3e571fb036a79a40a426 100644 (file)
@@ -98,12 +98,12 @@ void Witness::printMessage ()
    if (nbre ==0)
        return;
 
-   cout << endl 
-        << " ... In function :" << endl;
-   cout << bla_bla [0] << endl << endl;
+   std::cout << std::endl 
+        << " ... In function :" << std::endl;
+   std::cout << bla_bla [0] << std::endl << std::endl;
    for (int nro=1 ; nro<nbre ; nro++)
-       cout << bla_bla [nro] << endl;
-   cout << endl;
+       std::cout << bla_bla [nro] << std::endl;
+   std::cout << std::endl;
 }
 // =================================================== getMessage
 TabText& Witness::getMessage ()
index de5b60ab2d02716972910dcb912d5acea0be9878..ca7060b2c8e4a319c807c8bdd337d7be9e1ea9c7 100644 (file)
@@ -27,7 +27,7 @@ BEGIN_NAMESPACE_HEXA
 enum { HEND_FILE = -2, HEND_LINE = -1, CRLF = 13 };
 
 // ====================================================== Constructeur
-XmlTree::XmlTree (const string& nom, XmlTree* dad)
+XmlTree::XmlTree (const std::string& nom, XmlTree* dad)
 {
    item_name     = nom;
    item_vide     = "";
@@ -50,7 +50,7 @@ XmlTree::~XmlTree ()
 {
 }
 // ====================================================== findChild
-XmlTree* XmlTree::findChild (const string& nom)
+XmlTree* XmlTree::findChild (const std::string& nom)
 {
    for (int nro = 0 ; nro<nbr_items ; nro++)
        {
@@ -60,7 +60,7 @@ XmlTree* XmlTree::findChild (const string& nom)
    return NULL;
 }
 // ====================================================== findAttribute
-int XmlTree::findAttribute (const string& nom)
+int XmlTree::findAttribute (const std::string& nom)
 {
    for (int nro = 0 ; nro<nbr_attributs ; nro++)
        {
@@ -70,7 +70,7 @@ int XmlTree::findAttribute (const string& nom)
    return NOTHING;
 }
 // ====================================================== findValue
-const string& XmlTree::findValue (const string& nom)
+const std::string& XmlTree::findValue (const std::string& nom)
 {
    for (int nro = 0 ; nro<nbr_attributs ; nro++)
        {
@@ -80,10 +80,10 @@ const string& XmlTree::findValue (const string& nom)
    return item_vide;
 }
 // ====================================================== findInteger
-int XmlTree::findInteger (const string& nom)
+int XmlTree::findInteger (const std::string& nom)
 {
    int   val = 0;
-   const string chnum = findValue (nom);
+   const std::string chnum = findValue (nom);
    if (chnum==item_vide)
       return val;
 
@@ -97,7 +97,7 @@ int XmlTree::findInteger (const string& nom)
    return val;
 }
 // ====================================================== parseFile
-int XmlTree::parseFile (const string& ficnom)
+int XmlTree::parseFile (const std::string& ficnom)
 {
    fic_buffer  = "";
    len_buffer  = 0;
@@ -110,8 +110,8 @@ int XmlTree::parseFile (const string& ficnom)
    xml_file = fopen (ficnom.c_str(), "r");
    if (xml_file==NULL)
       {
-      cout << " **** Fichier XML '" << ficnom << "' inaccessible"
-           << endl;
+      std::cout << " **** Fichier XML '" << ficnom << "' inaccessible"
+           << std::endl;
       return HERR;
       }
 
@@ -143,7 +143,7 @@ int XmlTree::parseXml ()
 
    XmlTree* node = this;
    EnumItem item_lu;
-   string   nom, valeur, foo;
+   std::string   nom, valeur, foo;
    while ((item_lu=readItem (nom)) != M_NONE)
       {
       switch (item_lu)
@@ -203,7 +203,7 @@ int XmlTree::parseXml ()
    return HOK;
 }
 // ====================================================== getItem
-EnumItem XmlTree::getItem (string& value, EnumItem waited)
+EnumItem XmlTree::getItem (std::string& value, EnumItem waited)
 {
    EnumItem item = readItem (value);
 
@@ -213,7 +213,7 @@ EnumItem XmlTree::getItem (string& value, EnumItem waited)
    return item;
 }
 // ====================================================== readItem
-EnumItem XmlTree::readItem (string& value)
+EnumItem XmlTree::readItem (std::string& value)
 {
    value  = "";
 
@@ -274,7 +274,7 @@ EnumItem XmlTree::readItem (string& value)
          }
 }
 // ====================================================== getIdent
-int XmlTree::getIdent (string& ident)
+int XmlTree::getIdent (std::string& ident)
 {
    ident = "";
 
@@ -315,7 +315,7 @@ int XmlTree::goTo (cpchar ouca)
    return HERR;
 }
 // ====================================================== getString
-int XmlTree::getString (string& chaine)
+int XmlTree::getString (std::string& chaine)
 {
    chaine  = "";
    int car = ' ';
@@ -395,7 +395,7 @@ void XmlTree::putError (cpchar mess)
      //  exit (102);
 }
 // ====================================================== addChild
-XmlTree* XmlTree::addChild (const string& nom)
+XmlTree* XmlTree::addChild (const std::string& nom)
 {
    XmlTree* child = new XmlTree (nom, this);
    tab_items.push_back (child);
@@ -403,7 +403,7 @@ XmlTree* XmlTree::addChild (const string& nom)
    return child;
 }
 // ====================================================== addAttribut
-void XmlTree::addAttribut (const string& nom, const string& value)
+void XmlTree::addAttribut (const std::string& nom, const std::string& value)
 {
    tab_attributs.push_back (nom);
    tab_values   .push_back (value);
@@ -413,17 +413,17 @@ void XmlTree::addAttribut (const string& nom, const string& value)
 // ====================================================== dump
 void XmlTree::dump (int niveau)
 {
-   string marge = "";
+   std::string marge = "";
    for (int niv=0 ; niv<niveau ; niv++)
        marge += " | ";
 
-   cout << marge << item_name << endl;
+   std::cout << marge << item_name << std::endl;
 
    for (int nc=0 ; nc<nbr_attributs ; nc++)
        {
-       cout << marge  << " : "
+       std::cout << marge  << " : "
             << tab_attributs [nc] << " = '" << tab_values [nc]
-            << "'" << endl;
+            << "'" << std::endl;
        }
 
    for (int nc=0 ; nc<nbr_items ; nc++)
index 133be426c7242494e8bb14b07a7301ae2f019f02..93597cccd06508e41e3ff302eb35f750fb3210f0 100644 (file)
@@ -35,32 +35,32 @@ BEGIN_NAMESPACE_HEXA
 class HexaExport XmlTree
 {
 public :
-   XmlTree (const string& name, XmlTree* dad=NULL);
+   XmlTree (const std::string& name, XmlTree* dad=NULL);
   ~XmlTree ();
 
-   int  parseFile   (const string& name);
+   int  parseFile   (const std::string& name);
    int  parseStream (cpchar flux, int& posit);
 
    cpchar getName  ()   { return item_name.c_str() ; }
    int    getNbrAttributs  ()   { return nbr_attributs ; }
    int    getNbrChildren   ()   { return nbr_items     ; }
 
-   int           findAttribute (const string& nom);
-   const string& findValue     (const string& nom);
-   int           findInteger   (const string& nom);
+   int           findAttribute (const std::string& nom);
+   const std::string& findValue     (const std::string& nom);
+   int           findInteger   (const std::string& nom);
 
    cpchar   getAttribute  (int nro)    { return tab_attributs [nro].c_str(); }
    cpchar   getValue      (int nro)    { return tab_values    [nro].c_str(); }
 
-   XmlTree* findChild    (const string& nom);
+   XmlTree* findChild    (const std::string& nom);
    XmlTree* getChild     (int nro)    { return tab_items [nro]; }
    XmlTree* getParent    ()           { return xml_parent; }
 
                   // ------------------------- Modifications
 
-   XmlTree* addChild    (const string& nom);
-   void     addAttribut (const string& nom, const string& valeur);
-   void     setName     (const string&  nom)   { item_name = nom; }
+   XmlTree* addChild    (const std::string& nom);
+   void     addAttribut (const std::string& nom, const std::string& valeur);
+   void     setName     (const std::string&  nom)   { item_name = nom; }
    void     dump        (int niveau=0);
 
    int      goTo        (cpchar  ouca);
@@ -68,25 +68,25 @@ public :
 private :
    int  parseXml ();
    int  readLine ();
-   EnumItem  readItem  (string& item);
-   EnumItem  getItem   (string& item, EnumItem waited=M_NONE);
-   int       getString (string& item);
-   int       getIdent  (string& item);
+   EnumItem  readItem  (std::string& item);
+   EnumItem  getItem   (std::string& item, EnumItem waited=M_NONE);
+   int       getString (std::string& item);
+   int       getIdent  (std::string& item);
    int       getChar   ();
    void      putError  (cpchar why);
 
 private :
-   string   item_name;
-   string   item_vide;
+   std::string   item_name;
+   std::string   item_vide;
    int      nbr_attributs;
    int      nbr_items;
    XmlTree* xml_parent;
 
-   vector <string>   tab_attributs;
-   vector <string>   tab_values;
-   vector <XmlTree*> tab_items;
+   std::vector <std::string>   tab_attributs;
+   std::vector <std::string>   tab_values;
+   std::vector <XmlTree*> tab_items;
                                // Lecture
-   string   fic_buffer;
+   std::string   fic_buffer;
    int      len_buffer;
    int      nro_ligne;
    int      fic_pos;
index 39c09251ae05a8d717983db23e02bafe600c2f44..7926453880f19e3f5b1b0d463be34ec7ace54657 100644 (file)
@@ -71,12 +71,12 @@ int XmlWriter::setFileName (cpchar nomfic)
    int  pext = strlen (nomfic) - 4;
    if (pext > 0)
       {
-      string sext = &nomfic[pext];
+      std::string sext = &nomfic[pext];
       set_minus (sext);
       suff = sext != ".xml";
       }
 
-   string fname = nomfic;
+   std::string fname = nomfic;
    if (suff) 
       fname   += ".xml";
 
@@ -136,7 +136,7 @@ void XmlWriter::endMark ()
 void XmlWriter::openMark (cpchar balise)
 {
    jumpLine ();
-   string mot = "<";
+   std::string mot = "<";
    mot +=  balise;
    ecrire (mot);
 
@@ -147,8 +147,8 @@ void XmlWriter::openMark (cpchar balise)
 // ========================================================= closeMark
 void XmlWriter::closeMark (bool jump)
 {
-   string balise = pile_mark.top ();
-   string mot    = "</";
+   std::string balise = pile_mark.top ();
+   std::string mot    = "</";
    int    etat   = pile_etat.top ();
 
    xml_level --;
@@ -177,7 +177,7 @@ void XmlWriter::jumpLine ()
    xml_pos = xml_level * xml_decal;
    if (xml_pos > 0)
       {
-      string  space (xml_pos, ' ');
+      std::string  space (xml_pos, ' ');
       addMot (space.c_str());
       }
 }
@@ -207,7 +207,7 @@ void XmlWriter::alaLigne (bool force)
 // ========================================================= addAttribute 
 void XmlWriter::addAttribute (cpchar cle, cpchar valeur)
 {
-   string phrase = " ";
+   std::string phrase = " ";
    phrase += cle;
    phrase += " = \"";
    phrase += valeur;
index e99ef1f66f55b62c5c5ec05b98765f2101182425..cee32cc1738474a960501af87ef5ad036d16346a 100644 (file)
@@ -49,13 +49,13 @@ public :
    void addAttribute (cpchar attrib, cpchar  valeur); // attrib="valeur"
    void addAttribute (cpchar attrib, int     valeur);
    void addAttribute (cpchar attrib, double  valeur);
-   void addAttribute (cpchar attrib, string& valeur);
+   void addAttribute (cpchar attrib, std::string& valeur);
 
 private :
     void jumpLine ();
     void alaLigne (bool force=false);
     void ecrire   (cpchar  mot);
-    void ecrire   (string& mot) { ecrire (mot.c_str()) ; }
+    void ecrire   (std::string& mot) { ecrire (mot.c_str()) ; }
     void addMot   (cpchar  mot);
 
 private :
@@ -85,7 +85,7 @@ inline void XmlWriter::addAttribute (cpchar attrib, double valeur)
    addAttribute (attrib, buffer);
 }
 // ====================================================== addAttribute (stl)
-inline void XmlWriter::addAttribute (cpchar attrib, string& valeur)
+inline void XmlWriter::addAttribute (cpchar attrib, std::string& valeur)
 {
    addAttribute (attrib, valeur.c_str());
 }
index 1815540fd86e1706cc1401230270cc202ad9662d..d322d494f44a7438928754c233cf06bc25aa6488 100644 (file)
@@ -83,13 +83,12 @@ typedef FILE*       pfile;
 typedef const std::string& rcstring;
                        // Impressions de mise au point
 #include <iostream>
-using namespace std;
 
-#define HexDisplay(x)   cout << " ... " #x " = " << x << endl
-#define PutData(x)      cout << " ... " #x " = " << x << endl
-#define PutCoord(x)     cout << " ... " #x " = (" << x[0] << ", " \
-                              << x[1] << ", " << x[2] << ")"  << endl
-#define Echo(m)         cout << " _______________ " << m << endl
+#define HexDisplay(x)   std::cout << " ... " #x " = " << x << std::endl
+#define PutData(x)      std::cout << " ... " #x " = " << x << std::endl
+#define PutCoord(x)     std::cout << " ... " #x " = (" << x[0] << ", " \
+                              << x[1] << ", " << x[2] << ")"  << std::endl
+#define Echo(m)         std::cout << " _______________ " << m << std::endl
 
 //  #define Libere(obj)     { if (obj!=NULL) free (obj)      ;  obj=NULL; }
 //  #define Destroy(obj)    { delete obj       ;  obj=NULL   ;            }
@@ -279,15 +278,15 @@ HexaExport bool   on_debug();     // == getenv ("HEXA_DB") > 0
 HexaExport bool   in_test ();     // == getenv ("HEXA_TEST") > 0
 HexaExport int    niv_debug();    // Implemente prochainement
 
-HexaExport void   set_minus (string& chaine);
+HexaExport void   set_minus (std::string& chaine);
 
 HexaExport bool   special_option ();
 HexaExport void   set_special_option (bool opt);
 
 HexaExport int    sizeof_file (cpchar filename);
 HexaExport char*  read_file   (cpchar filename, int& size);
-HexaExport cpchar get_time   (string& buffer);
-HexaExport int make_basename (cpchar filename, string& base);
+HexaExport cpchar get_time   (std::string& buffer);
+HexaExport int make_basename (cpchar filename, std::string& base);
 
 const double Epsil   = 1e-6;
 const double UnEpsil = 0.999999;
index 57bb9696c27af747054ca1f3e2b3816f2ba96274..5e133d378d5c9c4fef31af47b15a4d717e855110 100644 (file)
@@ -64,7 +64,7 @@ bool in_test ()
 
 }
 // ======================================================== set_minus
-void set_minus (string& chaine)
+void set_minus (std::string& chaine)
 {
    int lg = chaine.size();
    for (int nc=0 ; nc<lg ; nc++)
@@ -251,7 +251,7 @@ char* read_file (cpchar filename, int& size)
    return buffer;
 }
 // ====================================================== get_time
-cpchar get_time (string& buffer)
+cpchar get_time (std::string& buffer)
 {
    char   quand[24];
    time_t tps;
@@ -278,7 +278,7 @@ bool requals (const double* lun, const double* lautre)
           && requals (lun [1], lautre [1]) && requals (lun [2], lautre [2]) ;
 }
 // ======================================================== make_basename
-int make_basename (cpchar filename, string& base)
+int make_basename (cpchar filename, std::string& base)
 {
    const char slash = '/';
    const char antis = '\\';
index 40646628fdc649d3948e0569ccfa7988704cc6f0..5138d27d80ef3aecc5507e72fb7eb1820101804f 100644 (file)
@@ -77,14 +77,14 @@ Hex::Vertex* nearest (Hex::Elements* grid, Hex::Vertex* vertex)
            }
         }
 
-    cout << " nearest : " << vertex->getName()
+    std::cout << " nearest : " << vertex->getName()
          << " -> "        << result->getName()
-         << " ( " << px << ",  " << py << ",  " << pz << ") " << endl;
+         << " ( " << px << ",  " << py << ",  " << pz << ") " << std::endl;
     return result;
 }
 
 // ======================================================== eplucher
-void eplucher (Hex::Document* doc, Hex::Elements* grid, string& radical)
+void eplucher (Hex::Document* doc, Hex::Elements* grid, std::string& radical)
 {
    int nbfic = 0;
    int nbre  = grid->countHexa();
@@ -355,25 +355,25 @@ int test_pipes6 (int nbargs, cpchar tabargs[])
 
    for (int narg=1 ; narg<nbargs ; narg++)
        {
-       string arg = tabargs [narg];
+       std::string arg = tabargs [narg];
        if (arg=="-cyl")        pipe    = false;
        else if (arg=="-pipe")  pipe    = true;
        else if (arg=="-left")  t_left  = true;
        else if (arg=="-right") t_right = true;
        else
           {
-          cout << " Syntax : " << endl;
-          cout << " $ " << tabargs[0]  << " <args> " << endl;
-          cout << " avec args parmi :" << endl;
-          cout << " -cyl   : croisement de 2 cylindres " << endl;
-          cout << " -pipe  : croisement de 2 tuyaux "    << endl;
-          cout << " -left  : Forme en T, barre a gauche " << endl;
-          cout << " -right : Forme en T, barre a droite " << endl;
+          std::cout << " Syntax : " << std::endl;
+          std::cout << " $ " << tabargs[0]  << " <args> " << std::endl;
+          std::cout << " avec args parmi :" << std::endl;
+          std::cout << " -cyl   : croisement de 2 cylindres " << std::endl;
+          std::cout << " -pipe  : croisement de 2 tuyaux "    << std::endl;
+          std::cout << " -left  : Forme en T, barre a gauche " << std::endl;
+          std::cout << " -right : Forme en T, barre a droite " << std::endl;
           return HOK;
           }
        }
 
-   string radical = pipe ? "makePipes" : "makeCylinders";
+   std::string radical = pipe ? "makePipes" : "makeCylinders";
 
    double rext1 =  2*sqrt (2.0);
    double rext2 =  3*sqrt (2.0);
@@ -720,7 +720,7 @@ int test_monica (int nbargs, cpchar tabargs[])
    save_file ();
 
    Hex::Hexa* trou = plaque->getHexaIJK (1, 1, 0);
-   vector <Hex::Vertex*> tabv0, tabv1;
+   std::vector <Hex::Vertex*> tabv0, tabv1;
    for (int nv=0 ; nv<8 ; nv++)
        tabv1.push_back (trou->getVertex(nv));
 
@@ -740,7 +740,7 @@ int test_monica (int nbargs, cpchar tabargs[])
    for (int nv=0 ; nv<8 ; nv++)
        {
        int ier = doc->mergeVertices (tabv0[nv], tabv1[nv]);
-       cout << " nro = " << nv << ", ier = " << ier << endl;
+       std::cout << " nro = " << nv << ", ier = " << ier << std::endl;
        Hex::what ();
        save_file ();
        }
index 1ae63640183823185435eab59fda14f1bc5884cc..60b97c1334446406a722a75dadbea2e9b93dc755 100644 (file)
@@ -2598,7 +2598,7 @@ QModelIndex DocumentModel::makeCartesianUni(const QModelIndex& icenter,
 
 QModelIndex DocumentModel::makeCartesian(const QModelIndex& icenter,
                                          const QModelIndex& ibase, const QModelIndex& ivec, const QModelIndex& iaxis,
-                                         vector<double>& radius, vector<double>& angles, vector<double>& heights)
+                                         std::vector<double>& radius, std::vector<double>& angles, std::vector<double>& heights)
 {
     QModelIndex result;
 
@@ -2656,7 +2656,7 @@ QModelIndex DocumentModel::makeSphereUni (QModelIndex& icenter,
 
 QModelIndex DocumentModel::makeSphere    (QModelIndex& icenter,
                                           QModelIndex& ivec_x, QModelIndex& ivec_z,
-                                          vector<double>& tray, vector<double>& tang, vector<double>& thaut)
+                                          std::vector<double>& tray, std::vector<double>& tang, std::vector<double>& thaut)
 {
     QModelIndex result;
 
@@ -2709,7 +2709,7 @@ QModelIndex DocumentModel::makeSphericalUni (QModelIndex& icenter,
 
 QModelIndex DocumentModel::makeSpherical    (QModelIndex& icenter,
                                              QModelIndex& ivec_x, QModelIndex& ivec_z,
-                                             vector<double>& rayon,
+                                             std::vector<double>& rayon,
                                              int crit)
 {
     QModelIndex result;
@@ -2766,7 +2766,7 @@ QModelIndex DocumentModel::makeRindUni (QModelIndex& icenter,
 
 QModelIndex DocumentModel::makeRind    (QModelIndex& icenter,
                                         QModelIndex& ivec_x, QModelIndex& ivec_z,
-                                        vector<double>& tray, vector<double>& tang, vector<double>& thaut)
+                                        std::vector<double>& tray, std::vector<double>& tang, std::vector<double>& thaut)
 {
     QModelIndex result;
 
@@ -2819,7 +2819,7 @@ QModelIndex DocumentModel::makeCylinderUni(QModelIndex& iorig, QModelIndex& ivec
 }
 
 QModelIndex DocumentModel::makeCylinder(QModelIndex& iorig, QModelIndex& ivecx, QModelIndex& ivecz,
-                                        vector<double>& tray, vector<double>& tang, vector<double>& thaut)
+                                        std::vector<double>& tray, std::vector<double>& tang, std::vector<double>& thaut)
 {
     QModelIndex result;
 
@@ -2893,7 +2893,7 @@ QModelIndex DocumentModel::makePipeUni(QModelIndex& iorig, QModelIndex& ivecx, Q
 }
 
 QModelIndex DocumentModel::makePipe(QModelIndex& iorig, QModelIndex& ivecx, QModelIndex& ivecz,
-                                    vector<double>& tray, vector<double>& tang, vector<double>& thaut)
+                                    std::vector<double>& tray, std::vector<double>& tang, std::vector<double>& thaut)
 {
     QModelIndex result;
 
@@ -2954,7 +2954,7 @@ QModelIndex DocumentModel::joinQuadUni(QModelIndex&  istart, QModelIndex& idest,
 }
 
 QModelIndex DocumentModel::joinQuad(QModelIndex&  istart, QModelIndex& idest, QModelIndex& iva1, QModelIndex& ivb1,
-                     QModelIndex& iva2, QModelIndex& ivb2, vector<double>& tlen)
+                     QModelIndex& iva2, QModelIndex& ivb2, std::vector<double>& tlen)
 {
     QModelIndex result;
 
@@ -3000,7 +3000,7 @@ QModelIndex DocumentModel::joinQuadsUni(QModelIndexList& istarts, QModelIndex& i
 }
 
 QModelIndex DocumentModel::joinQuads(QModelIndexList& istarts, QModelIndex& idest, QModelIndex& iva1, QModelIndex& ivb1,
-                                     QModelIndex& iva2, QModelIndex& ivb2, vector<double>& tlen)
+                                     QModelIndex& iva2, QModelIndex& ivb2, std::vector<double>& tlen)
 {
     QModelIndex result;
 
@@ -3044,7 +3044,7 @@ QModelIndex DocumentModel::revolutionQuadUni(QModelIndex& istart, QModelIndex& i
 }
 
 QModelIndex DocumentModel::revolutionQuad(QModelIndex& istart, QModelIndex& icenter, QModelIndex& iaxis,
-                                          vector<double>& angles)
+                                          std::vector<double>& angles)
 {
     QModelIndex result;
 
@@ -3084,7 +3084,7 @@ QModelIndex DocumentModel::revolutionQuadsUni(QModelIndexList& istarts, QModelIn
 }
 
 QModelIndex DocumentModel::revolutionQuads(QModelIndexList& istarts, QModelIndex& icenter, QModelIndex& iaxis,
-                                           vector<double>& angles)
+                                           std::vector<double>& angles)
 {
     QModelIndex result;
 
@@ -3137,7 +3137,7 @@ QModelIndex DocumentModel::extrudeQuadUni(QModelIndex& istart, QModelIndex& dv,
     return result;
 }
 
-QModelIndex DocumentModel::extrudeQuad(QModelIndex& istart, QModelIndex& dv, vector<double>& tlen)
+QModelIndex DocumentModel::extrudeQuad(QModelIndex& istart, QModelIndex& dv, std::vector<double>& tlen)
 {
     QModelIndex result;
 
@@ -3188,7 +3188,7 @@ QModelIndex DocumentModel::extrudeQuadsUni (QModelIndexList& istarts, QModelInde
     return result;
 }
 
-QModelIndex DocumentModel::extrudeQuads(QModelIndexList& istarts, QModelIndex& iaxis, vector<double>& tlen)
+QModelIndex DocumentModel::extrudeQuads(QModelIndexList& istarts, QModelIndex& iaxis, std::vector<double>& tlen)
 {
     QModelIndex result;
 
@@ -3222,7 +3222,7 @@ QModelIndex DocumentModel::cutUni(QModelIndex& iEdge, int nbre)
     return result;
 }
 
-QModelIndex DocumentModel::cut(QModelIndex& iEdge, vector<double>& tlen)
+QModelIndex DocumentModel::cut(QModelIndex& iEdge, std::vector<double>& tlen)
 {
     QModelIndex result;
 
index cf65a53384956afe3c4a0c06f68a28c32400a405..88b7ea56bd12522d90812f64648f2727f5d6a733 100644 (file)
@@ -207,7 +207,7 @@ namespace HEXABLOCK
       QModelIndex makeCartesianUni(const QModelIndex& icenter, const QModelIndex& ibase, const QModelIndex& ivec,
                                    const QModelIndex& iaxis, double lx, double ly, double lz, int nx, int ny, int nz);
       QModelIndex makeCartesian(const QModelIndex& icenter, const QModelIndex& ibase, const QModelIndex& ivec,
-                                const QModelIndex& iaxis, vector<double>& radius, vector<double>& angles, vector<double>& heights);
+                                const QModelIndex& iaxis, std::vector<double>& radius, std::vector<double>& angles, std::vector<double>& heights);
 
       // ====== SPHERE
 
@@ -221,7 +221,7 @@ namespace HEXABLOCK
 
       QModelIndex makeSphere    (QModelIndex& icenter,
                                  QModelIndex& ivec_x, QModelIndex& ivec_z,
-                                 vector<double>& tray, vector<double>& tang, vector<double>& thaut);
+                                 std::vector<double>& tray, std::vector<double>& tang, std::vector<double>& thaut);
 
       // ====== SPHERICAL
 
@@ -234,7 +234,7 @@ namespace HEXABLOCK
 
       QModelIndex makeSpherical    (QModelIndex& icenter,
                                     QModelIndex& ivec_x, QModelIndex& ivec_z,
-                                    vector<double>& rayon,
+                                    std::vector<double>& rayon,
                                     int crit);
 
       // =========== RIND
@@ -248,7 +248,7 @@ namespace HEXABLOCK
 
       QModelIndex makeRind   (QModelIndex& icenter,
                               QModelIndex& ivec_x, QModelIndex& ivec_z,
-                              vector<double>& tray, vector<double>& tang, vector<double>& thaut);
+                              std::vector<double>& tray, std::vector<double>& tang, std::vector<double>& thaut);
 
       // ======== Cylinder
       QModelIndex makeCylinderTop(int nr, int na, int nh);
@@ -258,7 +258,7 @@ namespace HEXABLOCK
                                    int nr, int na, int nh);
 
       QModelIndex makeCylinder   (QModelIndex& iorig, QModelIndex& ivecx, QModelIndex& ivecz,
-                                  vector<double>& tray, vector<double>& tang, vector<double>& thaut);
+                                  std::vector<double>& tray, std::vector<double>& tang, std::vector<double>& thaut);
 
       // ======== Cylinders
       QModelIndex makeCylinders  (QModelIndex& iorig1, QModelIndex& ivecz1,  double r1, double h1,
@@ -272,7 +272,7 @@ namespace HEXABLOCK
                                int nr, int na, int nh);
 
       QModelIndex makePipe    (QModelIndex& iorig, QModelIndex& ivecx, QModelIndex& ivecz,
-                               vector<double>& tray, vector<double>& tang, vector<double>& thaut);
+                               std::vector<double>& tray, std::vector<double>& tang, std::vector<double>& thaut);
 
       // ======== Pipes
       QModelIndex makePipes  (QModelIndex& iorig1, QModelIndex& ivecz1, double rint1, double rex1, double h1,
@@ -283,39 +283,39 @@ namespace HEXABLOCK
                               QModelIndex& iv3, QModelIndex& iv4, int nb);
 
       QModelIndex joinQuad   (QModelIndex&  istart, QModelIndex& idest, QModelIndex& iva1, QModelIndex& ivb1,
-                              QModelIndex& iva2, QModelIndex& ivb2, vector<double>& tlen);
+                              QModelIndex& iva2, QModelIndex& ivb2, std::vector<double>& tlen);
 
       QModelIndex joinQuadsUni (QModelIndexList& istarts, QModelIndex& idest, QModelIndex& iv1, QModelIndex& iv2,
                                 QModelIndex& iv3, QModelIndex& iv4, int nb);
 
       QModelIndex joinQuads    (QModelIndexList& istarts, QModelIndex& idest, QModelIndex& iva1, QModelIndex& ivb1,
-                                QModelIndex& iva2, QModelIndex& ivb2, vector<double>& tlen);
+                                QModelIndex& iva2, QModelIndex& ivb2, std::vector<double>& tlen);
 
       // ======== Quad Revolution
       QModelIndex revolutionQuadUni(QModelIndex& istart, QModelIndex& icenter, QModelIndex& iaxis,
                                     double angle, int nbre);
 
       QModelIndex revolutionQuad(QModelIndex& istart, QModelIndex& icenter, QModelIndex& iaxis,
-                                 vector<double>& angles);
+                                 std::vector<double>& angles);
 
       QModelIndex revolutionQuadsUni(QModelIndexList& istarts, QModelIndex& icenter, QModelIndex& iaxis,
                                      double angle, int nbre);
 
       QModelIndex revolutionQuads(QModelIndexList& istarts, QModelIndex& icenter, QModelIndex& iaxis,
-                                  vector<double>& angles);
+                                  std::vector<double>& angles);
 
       // ==== PrismQuad or ExtrudeQuad
       QModelIndex extrudeQuadTop (QModelIndex& istart, int nbre);
       QModelIndex extrudeQuadUni (QModelIndex& istart, QModelIndex& dv, double len, int nbre);
-      QModelIndex extrudeQuad    (QModelIndex& istart, QModelIndex& dv, vector<double>& tlen);
+      QModelIndex extrudeQuad    (QModelIndex& istart, QModelIndex& dv, std::vector<double>& tlen);
 
       QModelIndex extrudeQuadsTop (QModelIndexList& istarts, int nbre);
       QModelIndex extrudeQuadsUni (QModelIndexList& istarts, QModelIndex& axis, double len, int nbre);
-      QModelIndex extrudeQuads    (QModelIndexList& istarts, QModelIndex& iaxis, vector<double>& tlen);
+      QModelIndex extrudeQuads    (QModelIndexList& istarts, QModelIndex& iaxis, std::vector<double>& tlen);
 
       // ==== Cut Edge
       QModelIndex cutUni     (QModelIndex& iEdge, int nbre);
-      QModelIndex cut        (QModelIndex& iEdge, vector<double>& tlen);
+      QModelIndex cut        (QModelIndex& iEdge, std::vector<double>& tlen);
 
       // ============================== END NEW ================================
 
index 34c4f35bc50ac0131a8d88c0ba2a163b7803c311..0213b0cc0f4e1a2af4d78df0163e8d259f6cb257 100644 (file)
 %include "std_vector.i"
 namespace std
 {
-%template(VectorHexas)    vector <Hex::Hexa*>;
-%template(VectorQuads)    vector <Hex::Quad*>;
-%template(VectorEdges)    vector <Hex::Edge*>;
-%template(VectorVertices) vector <Hex::Vertex*>;
-%template(VectorShapes)   vector <Hex::NewShape*>;
-%template(VectorReal)    vector <double>;
-%template(VectorInt)     vector <int>;
+%template(VectorHexas)    std::vector <Hex::Hexa*>;
+%template(VectorQuads)    std::vector <Hex::Quad*>;
+%template(VectorEdges)    std::vector <Hex::Edge*>;
+%template(VectorVertices) std::vector <Hex::Vertex*>;
+%template(VectorShapes)   std::vector <Hex::NewShape*>;
+%template(VectorReal)    std::vector <double>;
+%template(VectorInt)     std::vector <int>;
 }
 
 %include "hexa_base.hxx"
index 4d790002e12c1431b91d9252560a296064df2810..6668174a16062d245233b9746fc7fbed74d521b2 100644 (file)
@@ -20923,7 +20923,7 @@ fail:
 
 SWIGINTERN PyObject *_wrap_set_minus(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
   PyObject *resultobj = 0;
-  string *arg1 = 0 ;
+  std::string *arg1 = 0 ;
   void *argp1 = 0 ;
   int res1 = 0 ;
   PyObject * obj0 = 0 ;
@@ -20936,7 +20936,7 @@ SWIGINTERN PyObject *_wrap_set_minus(PyObject *SWIGUNUSEDPARM(self), PyObject *a
   if (!argp1) {
     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "set_minus" "', argument " "1"" of type '" "string &""'"); 
   }
-  arg1 = reinterpret_cast< string * >(argp1);
+  arg1 = reinterpret_cast< std::string * >(argp1);
   Hex::set_minus(*arg1);
   resultobj = SWIG_Py_Void();
   return resultobj;
@@ -21043,7 +21043,7 @@ fail:
 
 SWIGINTERN PyObject *_wrap_get_time(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
   PyObject *resultobj = 0;
-  string *arg1 = 0 ;
+  std::string *arg1 = 0 ;
   void *argp1 = 0 ;
   int res1 = 0 ;
   PyObject * obj0 = 0 ;
@@ -21057,7 +21057,7 @@ SWIGINTERN PyObject *_wrap_get_time(PyObject *SWIGUNUSEDPARM(self), PyObject *ar
   if (!argp1) {
     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "get_time" "', argument " "1"" of type '" "string &""'"); 
   }
-  arg1 = reinterpret_cast< string * >(argp1);
+  arg1 = reinterpret_cast< std::string * >(argp1);
   result = (cpchar)Hex::get_time(*arg1);
   resultobj = SWIG_FromCharPtr((const char *)result);
   return resultobj;
@@ -21069,7 +21069,7 @@ fail:
 SWIGINTERN PyObject *_wrap_make_basename(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
   PyObject *resultobj = 0;
   cpchar arg1 = (cpchar) 0 ;
-  string *arg2 = 0 ;
+  std::string *arg2 = 0 ;
   int res1 ;
   char *buf1 = 0 ;
   int alloc1 = 0 ;
@@ -21092,7 +21092,7 @@ SWIGINTERN PyObject *_wrap_make_basename(PyObject *SWIGUNUSEDPARM(self), PyObjec
   if (!argp2) {
     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "make_basename" "', argument " "2"" of type '" "string &""'"); 
   }
-  arg2 = reinterpret_cast< string * >(argp2);
+  arg2 = reinterpret_cast< std::string * >(argp2);
   result = (int)Hex::make_basename((char const *)arg1,*arg2);
   resultobj = SWIG_From_int(static_cast< int >(result));
   if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
@@ -22469,7 +22469,7 @@ fail:
 SWIGINTERN PyObject *_wrap_EltBase_setName__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
   PyObject *resultobj = 0;
   Hex::EltBase *arg1 = (Hex::EltBase *) 0 ;
-  string *arg2 = 0 ;
+  std::string *arg2 = 0 ;
   void *argp1 = 0 ;
   int res1 = 0 ;
   void *argp2 = 0 ;
@@ -22490,8 +22490,8 @@ SWIGINTERN PyObject *_wrap_EltBase_setName__SWIG_0(PyObject *SWIGUNUSEDPARM(self
   if (!argp2) {
     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "EltBase_setName" "', argument " "2"" of type '" "string const &""'"); 
   }
-  arg2 = reinterpret_cast< string * >(argp2);
-  (arg1)->setName((string const &)*arg2);
+  arg2 = reinterpret_cast< std::string * >(argp2);
+  (arg1)->setName((std::string const &)*arg2);
   resultobj = SWIG_Py_Void();
   return resultobj;
 fail:
@@ -22707,7 +22707,7 @@ SWIGINTERN PyObject *_wrap_EltBase_getNextName(PyObject *SWIGUNUSEDPARM(self), P
   void *argp1 = 0 ;
   int res1 = 0 ;
   PyObject * obj0 = 0 ;
-  string result;
+  std::string result;
   
   if (!PyArg_ParseTuple(args,(char *)"O:EltBase_getNextName",&obj0)) SWIG_fail;
   res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Hex__EltBase, 0 |  0 );
@@ -22716,7 +22716,7 @@ SWIGINTERN PyObject *_wrap_EltBase_getNextName(PyObject *SWIGUNUSEDPARM(self), P
   }
   arg1 = reinterpret_cast< Hex::EltBase * >(argp1);
   result = (arg1)->getNextName();
-  resultobj = SWIG_NewPointerObj((new string(static_cast< const string& >(result))), SWIGTYPE_p_string, SWIG_POINTER_OWN |  0 );
+  resultobj = SWIG_NewPointerObj((new std::string(static_cast< const std::string& >(result))), SWIGTYPE_p_string, SWIG_POINTER_OWN |  0 );
   return resultobj;
 fail:
   return NULL;
@@ -32594,7 +32594,7 @@ fail:
 SWIGINTERN PyObject *_wrap_Hex_findDocument__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
   PyObject *resultobj = 0;
   Hex::Hex *arg1 = (Hex::Hex *) 0 ;
-  string *arg2 = 0 ;
+  std::string *arg2 = 0 ;
   void *argp1 = 0 ;
   int res1 = 0 ;
   void *argp2 = 0 ;
@@ -32616,8 +32616,8 @@ SWIGINTERN PyObject *_wrap_Hex_findDocument__SWIG_1(PyObject *SWIGUNUSEDPARM(sel
   if (!argp2) {
     SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Hex_findDocument" "', argument " "2"" of type '" "string const &""'"); 
   }
-  arg2 = reinterpret_cast< string * >(argp2);
-  result = (Hex::Document *)(arg1)->findDocument((string const &)*arg2);
+  arg2 = reinterpret_cast< std::string * >(argp2);
+  result = (Hex::Document *)(arg1)->findDocument((std::string const &)*arg2);
   resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Hex__Document, 0 |  0 );
   return resultobj;
 fail: