Changes

Jump to: navigation, search

OOP344 Assignment Two

418 bytes added, 13:24, 4 November 2009
Public Methods
====display()====
<big><pre>
void IO_Edit::display()const;
</pre></big>
display, first checks to see if IO_Edit is framed. if it is it will call the IO_Frame's display().
Then it will makes a direct call to ciol's io_display() function passing IO_Field's data, row and col and also the fieldlen value form IO_Edit's attrubutes.
<big><pre>
 
int IO_Edit::edit(IO_Form* Owner);
 
</pre></big>
edit() makes a direct call to ciol's io_edit with corresponding data from the IO_Edit's attributes.
 the '''Owner''' argument is simply ignored. edit() return returns the value returned by ciol's io_edit.
====editable()====
<big><pre>
ibool IO_Edit::editable()const;
</pre></big>
Always returns true;
====set()====
 
<big><pre>
void IO_Edit::set(const void *str);
</pre></big>
 
set() copies the incoming string '''str''' into the IO_Field's '''_data''' up to '''maxdatalen''' characters.
 
(note: if using strncpy() make sure the string is null terminated)
==IO_CheckList==

Navigation menu