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