1 # -*- coding: iso-8859-1 -*-
2 # Copyright (C) 2011-2019 EDF R&D
4 # This library is free software; you can redistribute it and/or
5 # modify it under the terms of the GNU Lesser General Public
6 # License as published by the Free Software Foundation; either
7 # version 2.1 of the License, or (at your option) any later version.
9 # This library is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 # Lesser General Public License for more details.
14 # You should have received a copy of the GNU Lesser General Public
15 # License along with this library; if not, write to the Free Software
16 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
20 # Author : Guillaume Boulant (EDF)
23 from salome.kernel.enumerate import Enumerate
24 from salome.kernel.datamodeler import DataModeler, TypeString, TypeInteger
26 # __MEM__: Note that this module does not depend on the SPADDER
27 # component on purpose (we could have use a derived structure of
28 # SPADDER_ORB.MeshJobFile). This choice is made to ease the test
29 # and development of the gui part of the plugin. If this data
30 # structure becomes too important, we could make another arrangement
31 # and use directly a SPADDER_ORB.MeshJobFile.
33 class InputData(DataModeler):
39 maListe=MESHTYPES.listvalues()
42 DataModeler.__init__(self)
64 # ==============================================================================
65 # Basic use cases and unit tests
66 # ==============================================================================
69 testdata = InputData()
70 testdata.meshName = "myMesh"
71 testdata.meshObject = None
72 testdata.meshType = InputData.MESHTYPES.CONCRETE
73 if testdata.meshName != "myMesh" :
77 if __name__ == "__main__":
78 from salome.kernel.unittester import run
79 run("inputdata","TEST_getName")