Salome HOME
Updated copyright comment
[modules/hexablock.git] / src / HEXABLOCK / Hex.hxx
old mode 100755 (executable)
new mode 100644 (file)
index a800d3f..2421bfa
@@ -1,12 +1,12 @@
 
 // class : La clase principale de Hexa
 
-// Copyright (C) 2009-2013  CEA/DEN, EDF R&D
+// Copyright (C) 2009-2024  CEA, EDF
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
 // License as published by the Free Software Foundation; either
-// version 2.1 of the License.
+// version 2.1 of the License, or (at your option) any later version.
 //
 // This library is distributed in the hope that it will be useful,
 // but WITHOUT ANY WARRANTY; without even the implied warranty of
 
 #include "hexa_base.hxx"
 
+#if defined WIN32
+#pragma warning ( disable: 4251 )
+#endif
+
 BEGIN_NAMESPACE_HEXA
 
-class Hex
+HexaExport Hex*  hex_instance ();
+
+class HexaExport Hex
 {
 public:
    static Hex* getInstance ();
@@ -39,12 +45,16 @@ 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  ();
+   cpchar getMessageLine (int nlig);
 
+#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();
@@ -56,9 +66,12 @@ public:
 
 private:
    static Hex* first_instance;
-   vector <Document*> liste_documents;
+   std::vector <Document*> liste_documents;
    Globale*    glob;
+#endif    // not SWIG
 };
 
+HexaExport void what ();
+
 END_NAMESPACE_HEXA
 #endif