cgma
FacetAttrib.hpp
Go to the documentation of this file.
00001 #ifndef FACET_ATTRIB_HPP
00002 #define FACET_ATTRIB_HPP
00003 
00004 #include "CubitDefines.h"
00005 #include "CubitString.hpp"
00006 class CubitSimpleAttrib;
00007 class CubitString;
00008 
00009 class FacetAttrib
00010 {
00011 public:
00012 
00013   FacetAttrib( const CubitSimpleAttrib& );
00014   
00015   ~FacetAttrib();
00016   
00017   CubitSimpleAttrib get_CSA() const;
00018   
00019   bool equals( const CubitSimpleAttrib& ) const;
00020   
00021   CubitStatus save( FILE* file ) const;
00022   
00023   static FacetAttrib* restore( FILE* file, unsigned int endian );
00024 
00025   CubitString name() const
00026     { return stringArray[0]; }
00027 
00028     // Use arrays rather than std::vector so IO routines
00029     // can use the data without making copies.
00030   CubitString* stringArray;
00031   double* doubleArray;
00032   int* integerArray;
00033   
00034   int numStrings;
00035   int numDoubles;
00036   int numIntegers;
00037   
00038   FacetAttrib* listNext;
00039 
00040 
00041 
00042 
00043 private:
00044 
00045   FacetAttrib( int string_count, CubitString* strings,
00046                int double_count, double* doubles,
00047                int integer_count, int* integers );
00048 
00049 };
00050 
00051 #endif
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines