00001 #ifndef ATTRIBUTE_BUNDLE_IMPLEMENTATION_FILE 00002 #define ATTRIBUTE_BUNDLE_IMPLEMENTATION_FILE 00003 00004 /*****************************************************************************\ 00005 * * 00006 * Name : attribute_bundle * 00007 * Author : Chris Koeritz * 00008 * * 00009 ******************************************************************************* 00010 * Copyright (c) 2002-$now By Author. This program is free software; you can * 00011 * redistribute it and/or modify it under the terms of the GNU General Public * 00012 * License as published by the Free Software Foundation; either version 2 of * 00013 * the License or (at your option) any later version. This is online at: * 00014 * http://www.fsf.org/copyleft/gpl.html * 00015 * Please send any updates to: fred@gruntose.com * 00016 \*****************************************************************************/ 00017 00018 #include "attribute_bundle.h" 00019 00020 void attribute_bundle::pack_mod(byte_array &packed_form) const 00021 { basis::attach(packed_form, int(_mod)); } 00022 00023 bool attribute_bundle::unpack_mod(byte_array &packed_form) 00024 { 00025 int temp; 00026 if (!basis::detach(packed_form, temp)) return false; 00027 _mod = (modifications)temp; 00028 return true; 00029 } 00030 00031 00032 #endif //ATTRIBUTE_BUNDLE_IMPLEMENTATION_FILE 00033
1.5.1