From a407bd07dec4b9f3b7cd433a7a9b23896f7360f2 Mon Sep 17 00:00:00 2001 From: Charles Toulemonde Date: Wed, 25 Jan 2012 06:34:27 +0000 Subject: [PATCH] =?utf8?q?ajout=20du=20g=C3=A9n=C3=A9rateur=20de=20c=5Ftra?= =?utf8?q?nsverse=5Fempty=5Fpython?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../generator_c_transverse_empty_python.py | 51 +++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 generator/generator_c_transverse_empty_python.py diff --git a/generator/generator_c_transverse_empty_python.py b/generator/generator_c_transverse_empty_python.py new file mode 100644 index 00000000..359369e5 --- /dev/null +++ b/generator/generator_c_transverse_empty_python.py @@ -0,0 +1,51 @@ +# -* coding: utf-8 -*- +# CONFIGURATION MANAGEMENT OF EDF VERSION +# ====================================================================== +# COPYRIGHT (C) 1991 - 2002 EDF R&D WWW.CODE-ASTER.ORG +# THIS PROGRAM IS FREE SOFTWARE; YOU CAN REDISTRIBUTE IT AND/OR MODIFY +# IT UNDER THE TERMS OF THE GNU GENERAL PUBLIC LICENSE AS PUBLISHED BY +# THE FREE SOFTWARE FOUNDATION; EITHER VERSION 2 OF THE LICENSE, OR +# (AT YOUR OPTION) ANY LATER VERSION. +# +# THIS PROGRAM IS DISTRIBUTED IN THE HOPE THAT IT WILL BE USEFUL, BUT +# WITHOUT ANY WARRANTY; WITHOUT EVEN THE IMPLIED WARRANTY OF +# MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. SEE THE GNU +# GENERAL PUBLIC LICENSE FOR MORE DETAILS. +# +# YOU SHOULD HAVE RECEIVED A COPY OF THE GNU GENERAL PUBLIC LICENSE +# ALONG WITH THIS PROGRAM; IF NOT, WRITE TO EDF R&D CODE_ASTER, +# 1 AVENUE DU GENERAL DE GAULLE, 92141 CLAMART CEDEX, FRANCE. +# +# +# ====================================================================== +""" + Ce module contient le plugin generateur de fichier au format + SEP pour EFICAS. + +""" +import traceback +import types,string,re,os + +from generator_map import MapGenerator + +def entryPoint(): + """ + Retourne les informations necessaires pour le chargeur de plugins + + Ces informations sont retournees dans un dictionnaire + """ + return { + # Le nom du plugin + 'name' : 'c_transverse_empty_python', + # La factory pour creer une instance du plugin + 'factory' : c_transverse_empty_pythonGenerator, + } + + +class c_transverse_empty_pythonGenerator(MapGenerator): + """ + Ce generateur parcourt un objet de type JDC et produit + un texte au format eficas et + un texte au format py + """ + pass -- 2.39.2