00001 /* 00002 Font.hpp 00003 00004 Object Definition and Implementation 00005 for Font. 00006 00007 Copyright (C) 2004 by D.K. McCombs. 00008 W3 Systems Design 00009 00010 */ 00011 #ifndef Font_HPP 00012 #define Font_HPP 00013 00014 #include "read_write_base.hpp" 00015 class Font_Obj: public read_write_base 00016 { 00017 public: 00018 identifier Id; 00019 string External_Id; 00020 string Name; 00021 string Abbreviation; 00022 00023 Font_Obj():read_write_base() 00024 ,Id(0LL) 00025 ,External_Id("") 00026 ,Name("") 00027 ,Abbreviation("") 00028 { 00029 // set name 00030 data_name("Font"); 00031 // add fields 00032 addDXMap( new llongXfer("Id", &Id )); 00033 addDXMap( new stringXfer("External_Id", &External_Id )); 00034 addDXMap( new stringXfer("Name", &Name )); 00035 addDXMap( new stringXfer("Abbreviation", &Abbreviation )); 00036 } 00037 00038 /* 00039 Event hooks for business logic 00040 ========================= 00041 // Done before any action - a false return prevents action 00042 virtual bool ivalidate( void ) { return true; } 00043 virtual bool uvalidate( changeMap & changes ) { return true; } 00044 virtual bool dvalidate( void ) { return true; } 00045 00046 // Done after any action - a false return sets a warning 00047 virtual bool isupplemental( void ){ return true; } 00048 virtual bool usupplemental( changeMap & changes ){ return true; } 00049 virtual bool dsupplemental( void ){ return true; } 00050 virtual bool ssupplemental( void ){ return true; } 00051 */ 00052 }; 00053 #endif 00054
1.5.5