Click to See Complete Forum and Search --> : How to pass data thru a class.
renuka75
July 4th, 2007, 11:59 PM
I found one class as follows,
class Wrapper_dam
{
//
public:
Wrapper_dam(void) {};
~Wrapper_dam(void) {};
public:
int Find_Structure (fstream&) const;
void Set_Site (fstream&) const;
void Put_SGM_Data (fstream&) const;
void Put_Structure_Data (fstream&) const;
void Execution() const;
void Get_Results (fstream&);
void Visualization (fstream&);
};
In this class no argument in all method. It seems strange for me. How to pass the data thru this class? Is it possible to make this type of class without any argument? Please give me some idea about it.
Thanks in adavnce.
renuka75
July 5th, 2007, 12:05 AM
I found one class as follows,
class Wrapper_dam
{
//
public:
Wrapper_dam(void) {};
~Wrapper_dam(void) {};
public:
int Find_Structure (fstream&) const;
void Set_Site (fstream&) const;
void Put_SGM_Data (fstream&) const;
void Put_Structure_Data (fstream&) const;
void Execution() const;
void Get_Results (fstream&);
void Visualization (fstream&);
};
In this class no argument in all method. It seems strange for me. How to pass the data thru this class? Is it possible to make this type of class without any argument? Please give me some idea about it.
Thanks in adavnce.
Please Mediators move this thread to C++ forum. I made a mistake!
I dont know how to move this thread to C++ forum.
Krishnaa
July 5th, 2007, 03:35 AM
The class has methods (functions), which take arguments, in this case most of the member functions take argument of type 'fstream'.
BTW what exactly are you looking for ? You said you found this class, what were you searching ?
renuka75
July 5th, 2007, 04:48 AM
The class has methods (functions), which take arguments, in this case most of the member functions take argument of type 'fstream'.
BTW what exactly are you looking for ? You said you found this class, what were you searching ?
I am looking for a Wrapper(Interface) to plug-in my program into another program(kernel). Actually, I am research student at university. So, I want to understand wrapper architecture well.
Krishnaa
July 5th, 2007, 04:55 AM
I am looking for a Wrapper(Interface) to plug-in my program into another program(kernel). Actually, I am research student at university. So, I want to understand wrapper architecture well.
Okay, so now you understand that the class you posted here can take agruments, because arguments are passed thru the methods only...constructor is also one special methods which allows you to pass arguments while constructing the object.
renuka75
July 5th, 2007, 05:05 AM
Okay, so now you understand that the class you posted here can take agruments, because arguments are passed thru the methods only...constructor is also one special methods which allows you to pass arguments while constructing the object.
Dear Krishana,
Thank you for your useful info. Could you please explain me what is the difference between Mediator and Wrapper. I am checking some material, they just use in some places mediator and some places wrapper. I am bit confused. Please give me the basic idea of them
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.