Open main menu

CDOT Wiki β

Changes

OOP344 Assignment Two

497 bytes added, 02:40, 5 November 2009
IO_Field
</pre></big>
===Construcotr===
'''IO_Field(int row, int col, void* data = (void*)0);'''
'''IO_Field(int row, int col);'''This constructor sets the corresponding attributes to the values of incoming arguments.
This constructor set the corresponding attributes to the values of incoming arguments and sets the data attribute to NULL.===Public Methods===
====data()====
'''void* data();'''
Returns the value of the data attribute.====getRow()===='''int getRow(void* Data()const;'''*if '''_owner''' NULL, it returns the _row attribute*if '''_owner''' is not NULL it returns the sum of _row and _owner->getTop(); (see IO_Frame for getTop())====getCol()====
Returns '''int getCol(void)const;'''*if '''_owner''' NULL, it returns the value _col attribute*if '''_owner''' is not NULL it returns the sum of the data attribute._col and _owner->getLeft(); (see IO_Frame for getLeft())
===Destructor===
'''virtual ~IOField();'''
An empty destructor (the body of the method is blank)
===Pure Virtual Methods===
'''virtual void Display() = 0;'''<br />
'''virtual int Edit(IO_Form* Owner=NULL)= 0;'''<br />