User Profile

Collapse

Profile Sidebar

Collapse
koren99
koren99
Last Activity: May 29 '08, 04:57 PM
Joined: Aug 8 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Design problem with List containing class inheritance

    Hi,

    i am having trouble solving a design problem i'm sure is common,
    and wanted some help.

    for berevity i'll skim the problem to a smaller example.

    I have a design where a base class is called SEGMENT and inheriting from it is FLOW. in SEGMENT i keep a List Of BaseObjects, BaseObject is a Class which FlowObject Inherits From.

    the relationship should be:
    Segment<---Flow...
    See more | Go to post

  • Thanks, your ports were very helpful.
    I'll do just that.
    See more | Go to post

    Leave a comment:


  • Thanks for the input. its probably what i'll do.

    But can you / someone else advise if there is a better approch / design that would fit ?
    a design that would not force me to detect which token is being parsed.
    this is a problem because the parser contains a tree of tokens created according to the user's input and i need to run the visitor on all of these and i don't want to add logic to detect what type of token i send...
    See more | Go to post

    Leave a comment:


  • Design for parsing and translating into a new syntext

    Hi,

    I am having problems creating a good model for this.
    and i'll appriciate any help.

    Req.
    1. parse a predefind language such as arethmatic: 4+5-7*9... with abilty to extend / add more implementations in the future
    2. be able to translate the object tree created during the parse, into a string / object in a new language (for example, if i parse arethmatic string and have 2 calculator apps, that...
    See more | Go to post

  • page life cycle events and dynamic content in gridview

    Hello,

    I have a gridview that is filled with a datasource & template fields dynamically.
    ( that has to be done because i ask the user for a datasource)

    anyway, i started out creating a static but empty grid. and added the template controls and datasource & activated grid.DataBind() in the page_load event.

    that gave me all the info when the page loaded on screen.

    now i have...
    See more | Go to post

  • A Question about C-Shell (didn't know where else to put it)

    Hi,

    i'm trying to get run a simple script to find the java version.
    this is what i wrote:

    #!/bin/csh
    set REQUIRED_VERSIO N=1.5
    set JAVA=$JAVA_HOME

    if ($#JAVA>0) then
    set JAVA_EXE=$JAVA/bin/java
    $JAVA_EXE -version 2>tmp.ver
    set VERSION=`cat tmp.ver | grep "java version"
    echo $VERSION
    rm tmp.ver
    endif...
    See more | Go to post

  • koren99
    started a topic how to setup sql server on home pc???

    how to setup sql server on home pc???

    hi,
    i'm trying to test a c# program which uses sql server tables, and need to crate a connection and database for this test.

    i've installed sql server 2000 enterprise edition, and have client tools. i've tried registering a server and i entered the automatic name that came up "WINDOWSXP" which is the computer name and selected it and it requires a password / user i no nothing of.

    so...
    1. how...
    See more | Go to post

  • koren99
    started a topic design question in c++ classes
    in C

    design question in c++ classes

    Hi,

    i'm a student and got an assignment, and was wandering what is the best way to design it, or simply put - what would a skilled programmer do?

    here goes: (it's a bit long, so sorry in advance and thank you)

    i have to create 2 containers as templates one of Queue and the other of Priority Queue (which is a queue with sorted items)

    Oueue has these Methods:
    Push - push into back...
    See more | Go to post

  • koren99
    started a topic private member access
    in C

    private member access

    Hi,

    i am just now studing c++ and came across somthing that seemed strange:

    i've ran this code:
    class ClassA
    {
    private:
    int _value;
    public:
    ClassA(const int value) : _value(value){ }

    // can access private members of val when in the ClassA implementation? ??
    ClassA(const ClassA& val) : _value(val._val ue){ }
    };

    void main()...
    See more | Go to post
No activity results to display
Show More
Working...