#include <userinfo.h>
Public Member Functions | |
uibase (string com="Abstract class, please ignore!", uibase *par=NULL) | |
Default constructor. | |
virtual void | getsummary (std::string &S) |
returns a summary of its contents (used in dialogs) | |
virtual void | askuser () |
interaction with the user | |
virtual bool | isvalid () |
test if the info is valid | |
virtual | ~uibase () |
for future use | |
virtual void | save (std::ostream &os) |
Save to file. | |
virtual void | load (std::istream &is) |
load from file | |
int | get_level () |
access function | |
Protected Attributes | |
string | name |
String identifier of a field. | |
string | help |
Explanation for a user what the field means. | |
uibase * | parent |
Possible parent of the userinfo. | |
int | ilevel |
Indentation level, i.e. number of parents. |
This class is used to store information about parameters of an object. It support loading and saving of the information and, potentially, interaction with the user.