This is declaration for the Person class produced by the IS generator application. User can put his own code between the BeginUserCode and EndUserCode comments. When the Person.h file is regenerated the code in this sections is preserved.
#ifndef PERSON_H
#define PERSON_H
#include <is/info.h>
#include <owl/time.h>
// <<BeginUserCode>>
// <<EndUserCode>>
/**
* Describes a human person
*
* @author generated by the IS tool
* @version 21/02/03
*/
class Person: public ISInfo {
public:
enum sex_E {male, female};
/**
* Person's name
*/
std::string name;
/**
* Person's date of birth
*/
OWLDate birth_date;
/**
* Person's sex
*/
sex_E sex;
Person( )
: ISInfo( "Person" )
{
name = "Jone";
sex = male;
// <<BeginUserCode>>
// <<EndUserCode>>
}
~Person(){
// <<BeginUserCode>>
// <<EndUserCode>>
}
protected:
Person( const char * type )
: ISInfo( type )
{
name = "Jone";
sex = male;
// <<BeginUserCode>>
// <<EndUserCode>>
}
void publishGuts( ISostream & out ){
out << name << birth_date << (int)sex;
}
void refreshGuts( ISistream & in ){
in >> name >> birth_date >> (int&)sex;
}
// <<BeginUserCode>>
// <<EndUserCode>>
};
// <<BeginUserCode>>
// <<EndUserCode>>
#endif // PERSON_H
2 July 1998 - WebMaster | Copyright © CERN 1998 |