|
-
February 29th, 2012, 10:29 AM
#1
[question] Class structure
Hello again,
I need to create a program that'll compare 2 files, what i wish to do is something like this :
Code:
/--------------------------------------------------------------------\
| Header | Info | Info | Info .... |
\--------------------------------------------------------------------/
File 1
/--------------------------------------------------------------------\
| Header | Info2 | Info2 | Info2 .... |
\--------------------------------------------------------------------/
Info
_________________________________________________________________________
Class tree
_________________________________________________________________________
Compare Functions
|
|
V
File
/\
/ \
/ \
/ \
Header Info
/\
/ \
/ \
/ \
Header2 Info2
Where i would instanciate 1 Comp class and 2 files. I wish to store the data of each files in a series of classes.
1) Will I be able to say for example (pseudo code)
File(1).Info(2).Info2(1) == File(2).Info(7).Info2(2) ?
2) How can I access the set of functions I created in a separate class Function (may include some global variables). I mean, if i do something like this Function f = new Function() and Info2 do f.SetAVariable(myValue)
can Header do f.GetAVariable and get myValue ?
Thanks for your time guys
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|