IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

Contribuez Discussion :

C File Gen, un générateur de fichiers [Sources]


Sujet :

Contribuez

  1. #1
    Rédacteur
    Avatar de Franck.H
    Homme Profil pro
    Développeur .NET
    Inscrit en
    Janvier 2004
    Messages
    6 951
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 47
    Localisation : France, Haut Rhin (Alsace)

    Informations professionnelles :
    Activité : Développeur .NET
    Secteur : Service public

    Informations forums :
    Inscription : Janvier 2004
    Messages : 6 951
    Points : 12 462
    Points
    12 462
    Par défaut C File Gen, un générateur de fichiers
    C File Gen (CFG pour son diminutif), est un générateur de fichiers (style de template) pour le Langage C. Les fichiers générés sont ceux utilisés pour le code (*.c et *.h) mais avec toute l'organisation et l'en-tête de projet/fichier déjà en place.

    Cela fait gagner un temps considérable lorsqu'il faut créer des dizaines de fichiers avec la même organisation, plus besoin de procéder à de multitudes Copier/Coller !

    Voici ce qu'on obtenir avec CFG (avec les fichiers de gabarit par défaut) :

    Un fichier source :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    /*
     * This file is part of CFG.
     * Copyright (C) 2008 by HECHT Franck
     *
     * 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 3 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, see <http://www.gnu.org/licenses/>.
     */
     
    /* --------------------------------------------------------------------------
     
                 CFG
     
       --------------------------------------------------------------------------
       File     :  test
     
       Author   :  HECHT Franck - (C) 2008
       Mail     :  franhec@gmail.com
       Creation :  05/08/2008 14:20:41
     
       Desc     :  Short desctiption of this module.
       --------------------------------------------------------------------------
       Last modifications:
       -------------------------------------------------------------------------- */
     
     
    #ifdef __cplusplus
    #error This source file is not C++ but rather C. Please use a C-compiler
    #endif
     
     
    #include "test.h"
     
     
    /* macros =================================================================== */
    /* constants ================================================================ */
    /* types ==================================================================== */
    /* structures =============================================================== */
    /* private variables ======================================================== */
    /* private functions ======================================================== */
    /* internal public functions ================================================ */
    /* entry points ============================================================= */
    /* public variables ========================================================= */
     
     
    /* --------------------------------------------------------------------------
       File generated with: C File Gen (Alpha) v0.1.0 - by HECHT Franck (C) 2008
       -------------------------------------------------------------------------- */
    Le fichier d'en-tête associé :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    /*
     * This file is part of CFG.
     * Copyright (C) 2008 by HECHT Franck
     *
     * 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 3 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, see <http://www.gnu.org/licenses/>.
     */
     
    /* --------------------------------------------------------------------------
     
                 CFG
     
       --------------------------------------------------------------------------
       File     :  test
     
       Author   :  HECHT Franck - (C) 2008
       Mail     :  franhec@gmail.com
       Creation :  05/08/2008 14:20:41
     
       Desc     :  Short desctiption of this module.
       --------------------------------------------------------------------------
       Last modifications:
       -------------------------------------------------------------------------- */
     
     
    #ifndef H_HF_TEST_5820081420
    #define H_HF_TEST_5820081420
     
     
    #ifdef __cplusplus
    extern "C" {
    #endif
     
     
    /* macros =================================================================== */
    /* constants ================================================================ */
    /* types ==================================================================== */
    /* structures =============================================================== */
    /* internal public functions ================================================ */
    /* entry points ============================================================= */
    /* public variables ========================================================= */
     
     
    #ifdef __cplusplus
    }
    #endif
     
     
    #endif
     
     
    /* --------------------------------------------------------------------------
       File generated with: C File Gen (Alpha) v0.1.0 - by HECHT Franck (C) 2008
       -------------------------------------------------------------------------- */
    Le type de présentation peut être changé simplement en modifiant le contenu des fichiers de gabarit et il est également possible d'omettre certaines parties.

  2. #2
    Rédacteur
    Avatar de Franck.H
    Homme Profil pro
    Développeur .NET
    Inscrit en
    Janvier 2004
    Messages
    6 951
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 47
    Localisation : France, Haut Rhin (Alsace)

    Informations professionnelles :
    Activité : Développeur .NET
    Secteur : Service public

    Informations forums :
    Inscription : Janvier 2004
    Messages : 6 951
    Points : 12 462
    Points
    12 462
    Par défaut Ressources pour C File Gen
    Voici les différentes ressources pour C File Gen :


    Site : http://franckh.developpez.com/cfg/index.html
    Le blog : http://blog.developpez.com/franckh
    Documentation en ligne : http://franckh.developpez.com/cfg/doc
    Documentation PDF : http://franckh.developpez.com/cfg/do...tion-fr-v1.pdf

    Dépot SubVersion :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    svn export http://subversion.developpez.com/projets/CFG/ cfg
    Téléchargement des sources : ftp://ftp-developpez.com/franckh/cfg...v0.1.1-src.zip
    Téléchargement de la version compilée (pour Windows) : ftp://ftp-developpez.com/franckh/cfg...-bin-win32.zip

  3. #3
    Rédacteur
    Avatar de Franck.H
    Homme Profil pro
    Développeur .NET
    Inscrit en
    Janvier 2004
    Messages
    6 951
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 47
    Localisation : France, Haut Rhin (Alsace)

    Informations professionnelles :
    Activité : Développeur .NET
    Secteur : Service public

    Informations forums :
    Inscription : Janvier 2004
    Messages : 6 951
    Points : 12 462
    Points
    12 462
    Par défaut C File Gen - TODO List
    Voici la liste des choses à faire sur C File Gen pour les futures versions :

    • Ajouter sur l'interface principale un groupe d'options "Options de génération" où se trouverons des options pour laisser le choix du type de fichier à générer (que *.h, que *.c ou les 2).

  4. #4
    Rédacteur
    Avatar de Franck.H
    Homme Profil pro
    Développeur .NET
    Inscrit en
    Janvier 2004
    Messages
    6 951
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 47
    Localisation : France, Haut Rhin (Alsace)

    Informations professionnelles :
    Activité : Développeur .NET
    Secteur : Service public

    Informations forums :
    Inscription : Janvier 2004
    Messages : 6 951
    Points : 12 462
    Points
    12 462
    Par défaut Historique des versions
    14/08/08 : Version Beta 1 - 0.1.1 :
    • Redessin et ajout de l'icône 16x16 (format png) sur le cadre des fenêtres.
    • Ajout d'évènement pour améliorer l'automatisation de l'enregistrement du message d'erreur du compilateur C++ (options de génération C++)
    • Le titre du bouton 'Valider' a changé pour 'Générer' qui est plus explicite pour ce type de programme.
    • Révision d'une fonction qui empêchais la génération des fichiers.



    07/08/08 : Sortie de la version Beta 1 - 0.1.0

Discussions similaires

  1. [java.io.File] problème pour renommer un fichier
    Par RR instinct dans le forum Entrée/Sortie
    Réponses: 10
    Dernier message: 10/12/2010, 14h24
  2. Réponses: 1
    Dernier message: 03/09/2008, 18h22
  3. [Système] fonction file() renvoit pas tout le fichier
    Par Oprichnik dans le forum Langage
    Réponses: 7
    Dernier message: 02/10/2006, 17h00
  4. createElement input de type file : pb d'upload de fichier
    Par firejocker dans le forum Général JavaScript
    Réponses: 15
    Dernier message: 16/02/2006, 14h08
  5. [File] Accès concurrent à un fichier avec un programme Perl
    Par dreamincoco dans le forum Entrée/Sortie
    Réponses: 4
    Dernier message: 30/11/2005, 18h48

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo