cgma
|
00001 //------------------------------------------------------------------------- 00002 // Filename : FacetAttribSet.hpp 00003 // 00004 // Purpose : Common attrib functions for MBG 00005 // 00006 // Special Notes : 00007 // 00008 // Creator : Jason Kraftcheck 00009 // 00010 // Creation Date : 03/01/03 00011 //------------------------------------------------------------------------- 00012 00013 #ifndef FACET_BRIDGE_HPP 00014 #define FACET_BRIDGE_HPP 00015 00016 #include <DLIList.hpp> 00017 00018 class CubitSimpleAttrib; 00019 class FacetAttrib; 00020 class CubitString; 00021 00022 class FacetAttribSet 00023 { 00024 00025 public: 00026 00027 FacetAttribSet() : listHead(0) {} 00028 00029 ~FacetAttribSet() { remove_all_attributes(); } 00030 00031 void append_attribute( const CubitSimpleAttrib& ); 00032 00033 void remove_attribute( const CubitSimpleAttrib& ); 00034 00035 void remove_all_attributes(); 00036 00037 CubitStatus get_attributes( DLIList<CubitSimpleAttrib>& ) const; 00038 00039 CubitStatus get_attributes( const CubitString& name, 00040 DLIList<CubitSimpleAttrib>& ) const; 00041 00042 CubitStatus save_attributes( FILE* file ) const; 00043 00044 CubitStatus restore_attributes( FILE* file, unsigned int endian ); 00045 00046 int attribute_count() const; 00047 00048 private: 00049 00050 FacetAttrib* listHead; 00051 }; 00052 00053 #endif