From: Charles Toulemonde Date: Wed, 25 Jan 2012 06:34:01 +0000 (+0000) Subject: ajout du générateur de c_transverse_empty_c X-Git-Tag: LOGILAB~234 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=c5a0d1cc33d50820e5f1d0780bbeafc1064339a8;p=tools%2Feficas.git ajout du générateur de c_transverse_empty_c --- diff --git a/generator/generator_c_transverse_empty_c.py b/generator/generator_c_transverse_empty_c.py new file mode 100644 index 00000000..34f002e8 --- /dev/null +++ b/generator/generator_c_transverse_empty_c.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_c', + # La factory pour creer une instance du plugin + 'factory' : c_transverse_empty_cGenerator, + } + + +class c_transverse_empty_cGenerator(MapGenerator): + """ + Ce generateur parcourt un objet de type JDC et produit + un texte au format eficas et + un texte au format py + """ + pass