Menu

Source code generation

2005-11-28
2013-04-17
  • Jong Allegraud

    Jong Allegraud - 2005-11-28

    Hello all,

    Well I ve just started using ClassBuilder and it seems to be exactly the tool I was looking for. The only thing that I d like to change is the way the comments are generated. I would NOT like to have code such as:
    - "//@START_USERX" sections
    - "//@CODE_xx" or "//@NOTE_xx"
    - "INIT_SINGLE_OWNED_ACTIVE", "EXIT_SINGLE_OWNED_ACTIVE", etc...

    I haven t found the way to customize that through the GUI and I suppose the thing to do is to modify source code. I must admit I have not even caught a glimpse at it. Is it easy to change that (I mean are there sections that are critical for ClassBuilder to work properly) ?

    Thanks

    Jong

     
    • Craig Gunhouse

      Craig Gunhouse - 2005-11-28

      These are used to read back changes done outside of Classbuilder by an external editor.

      Craig Gunhouse (Gunner)

       
      • Jong Allegraud

        Jong Allegraud - 2005-11-29

        Then these comments are not quit useful if you use the "reverse engineer C++" function (except for the relations between the classes), isn t it ?

         
        • Mike Moore

          Mike Moore - 2005-11-29

          Depends on how you use the tool... I find it most productive to use Class Builder to generate my structure (including member functions) but to fill in the logic while working within MS Visual Studio... the integration works well - and the comments are required to move back and forth easily...

           
          • Jong Allegraud

            Jong Allegraud - 2005-11-29

            Well I have some concerns about portability and I wonder if instructions such as "INIT_SINGLE_OWNED_ACTIVE" are OK with any compiler (especially VC compiler, Intel C++ compiler ans g++). Well if it is the case I am quite comfortable with the code added

            Jong

             
            • Craig Gunhouse

              Craig Gunhouse - 2005-11-29

              Sorry, things like INIT_SINGLE_OWNED_ACTIVE are macros for defining relationship between classes.  You can generate the their expanded form by going to menu item "Project", then "Settings" and then check the box beside "Expand Macros".

              Craig

               
    • John van der Kist

      A feature called "Final code export" was added in version 1.85A.

      The "Save Source files" now has a checkbox "Add CB markers". Unchecking this disables the output of ClassBuilder decoration (like @NOTE, @CODE, group comments etc.)
      *** This also means that alterations cannot be read back! ***

      John

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.