Changes

Jump to: navigation, search

OOP344 Assignment Two

400 bytes added, 02:34, 2 November 2009
Add methods
IO_Form &operator<<(IO_Field& f);
</pre></big>
 
Uses the private add() method to add a non-submitter, non-dynamic IO_field.
<hr width="50%" />
 
<big><pre>
 
void setError(const char* mes);
 
void setHelp(const char* mes);
 
</pre></big>
 
Set the text of the general Error message and the general Help message of the Form.
<hr width="50%" />
 
<big><pre>
 
int lenght();
 
</pre></big>
 
Returns number of fields currently in IO_Form.
<hr width="50%" />
<big><pre>
void* data(unsigned int fieldnumber=0);
</pre></big>
Returns address of the data of "fieldnumber"th, IO_Field in the IO_Form. If "fieldnumber" is zero, then it returns the data of the current IO_Field.
<hr width="50%" />
<big><pre>
IO_Field& operator[](unsigned int index);
</pre></big>
Returns the reference of the IO_Field, number "fieldnumber-1". First Field has the index 0;
<hr width="50%" />
--- incomplete ----

Navigation menu