Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - fares1

Pages: [1]
1
General Board / Code Generation - Notes/Comments Problems
« on: March 20, 2003, 02:10:35 pm »
I've been having some problems with code generation from C++ classes I've created.

I've written some stub code into some class-notes (to use as my "includes") and in class-operations-behavior section (to use as stub code such as "return foo;" and "foo = newval;" for getters/setters.

Problems as follows:
1. I have changed the "C++ Specification", "Comment String - Start/End" and changed the default "/*" and "*/" to a {space}/blank... in hopes that I could write some stub code into these notes and have them available in the classes.  I wind up with an "* " {asterisk+space} being placed before each line of note/behavior.

2. Quite often when I edit class-operation(s) and edit/add to the behavior details, it does NOT automatically update in the onscreen viewing of the model (when these attributes are turn visible)... even when I explicitly hit "save"... sometimes they appear in the visual display, sometimes not... when they do not appear visually (but I can open the operation and see the changes!), the source code generated matches the visual view of the class operations/operation-behavior and NOT what has actually been edited/entered for the class-operation(s).  What's up?  How do I get the "visual" model to update?  They only way I've found is to save current class diagram, click-on/load another, and then go back to the previous diagram and the "visual" classes are properly updated and then I am able to generate accurate code from my classes.

3. "//" in my operation-behavior VS. "/*" & "*/" in my class-notes - what's up with that?  I can (theoretically) change the "/*" & "*/" (caveat in item 1 above), but can't find where to address the use of "//".  Can I change this?

Obviously my goal here is two-fold... Generating stub-code for operations/includes for classes , and having complete control over how Comments/notes/behavior is "commented" in the source code generated.

I've tried some "work arounds" such as placing something like "CODE:" in front of all of my stub-code... then using global search-replace with {blank}, but items 1-3 above make this very problematic and not consistent.  I can always place a "//" in font of lines that I actually WANT generated as comments, if I was able to remove/control this AUTO-COMMENTING.  

Are there some files that control this (i.e. where I could change the default "//" or the default "* " to {blank}?  Or just some other area of the program that holds this information?

Hope that I've explained this well enough and that someone can offer some advice.  

Thanks again for the excellent/informative forums!
-Doug
P.S. Should item 2 above be posted as a "bug"?

2
General Board / Re: database schema
« on: March 19, 2003, 10:27:52 am »
Oops.  Hadn't logged in and can't edit the grammar/spelling mistakes.  Will preview next time!  :)

BTW - Great forums!  
I've purchased two copies of EA Corp. for the project I'm working on and love the tool.  After using it for the past couple of weeks, RRose's obscene price seems even more obscene.  :P

-Doug

3
General Board / Database Datatypes
« on: March 19, 2003, 10:51:26 am »
Just wondering if anyone has had any luck with using the custom Database Datatypes to configure dll output acceptible for common/basic databases (file=table) such as: DBase or Paradox files ?
The project I'm working on will ultimately be delivered to 10s of thousands of users and will need to connect to a variety of databases;  For the small stand-alone users, I was considering a cheap or royalty free database format such as DBase or Pardox tables.
Aside from distribution, I would imagine that using these dbs would be desirable for quick, down-and-dirty, prototyping of models.

I have not been able to get Constraints or Primary keys to output properly for either of the two dbs mentioned above.

I'm going to return to the help file to see if there's something I'm missing, but if anyone has already created a working DBase or Pardox table custom Database Datatypes, it would be greatly appreciated if someone was willing to send me an empty model with the proper datatypes.

Pages: [1]