Salome HOME
Switch development flag to 1
[modules/hexablock.git] / src / HEXABLOCK / Hex.hxx
index da255db341489458e6b9c1ff0d1dbd3e9bdb0fad..113f7349b0709641f4c3ca849d44c49628180ce5 100755 (executable)
@@ -1,12 +1,12 @@
 
 // class : La clase principale de Hexa
 
-// Copyright (C) 2009-2012  CEA/DEN, EDF R&D
+// Copyright (C) 2009-2016  CEA/DEN, EDF R&D
 //
 // 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
@@ -17,8 +17,7 @@
 // License along with this library; if not, write to the Free Software
 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
 //
-// See http://www.salome-platform.org/ 
-// or email : webmaster.salome@opencascade.com
+// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
 //
 
 #ifndef __HEX_H
 
 #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 ();
@@ -42,7 +47,11 @@ public:
    Document* findDocument (cpchar name);
    Document* findDocument (const 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);
@@ -59,7 +68,10 @@ private:
    static Hex* first_instance;
    vector <Document*> liste_documents;
    Globale*    glob;
+#endif    // not SWIG
 };
 
+HexaExport void what ();
+
 END_NAMESPACE_HEXA
 #endif