cgma
GSaveOpen.hpp
Go to the documentation of this file.
00001 //- Class:          GSaveOpen
00002 //- Description:    Save/Open tool for the geometry engine; For now,
00003 //-                 is just used to get the proper ids.  If importing
00004 //-                 a Cubit file into an existing model, an increment
00005 //-                 is added to the CA_ENTITY_ID id so that everything
00006 //-                 else can be hooked up properly.  The class CubitSaveOpen
00007 //-                 is derived from this class.
00008 //- Owner:          Steve Storm
00009 
00010 #ifndef GSAVEOPEN_HPP
00011 #define GSAVEOPEN_HPP
00012 
00013 #include "DLIList.hpp"
00014 #include "CGMGeomConfigure.h"
00015 
00016 class RefEntity;
00017 
00018 class CUBIT_GEOM_EXPORT GSaveOpen 
00019 {
00020 public:
00021     GSaveOpen();
00022     ~GSaveOpen();
00023 
00024     static int gso_sets_ids();
00025     static int get_id_inc( RefEntity *entity );
00026     static void set_error();
00027     static void add_error_id( int id );
00028     static int performingUndo;
00029 
00030 protected:
00031    static int gsoSetsIds;
00032    static int gsoIncBodyId;
00033    static int gsoIncRefVolumeId;
00034    static int gsoIncRefFaceId;
00035    static int gsoIncRefEdgeId;
00036    static int gsoIncRefVertexId;
00037 
00038    static int gsoErrorCount;
00039    static DLIList<int> gsoErrorIdList;
00040 };
00041 
00042 inline int
00043 GSaveOpen::gso_sets_ids()
00044 {return gsoSetsIds;}
00045 
00046 #endif
00047 
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines