cgma
TDVGFacetOwner.hpp
Go to the documentation of this file.
00001 #ifndef TD_VG_FACET_OWNER_HPP
00002 #define TD_VG_FACET_OWNER_HPP
00003 
00004 #include "ToolData.hpp"
00005 
00006 class PartitionEntity;
00007 class ToolDataUser;
00008 
00009 class TDVGFacetOwner : public ToolData
00010 {
00011 
00012   public:
00013   
00014     TDVGFacetOwner( PartitionEntity* owner )
00015       : mOwner( owner ) {}
00016     
00017     static int is_vg_facet_owner( const ToolData* td )
00018       { return !! dynamic_cast<const TDVGFacetOwner*>(td); }
00019     
00020     PartitionEntity* owner() const
00021       { return mOwner; }
00022     
00023     static PartitionEntity* get( ToolDataUser* user );
00024     static void set( ToolDataUser* user, PartitionEntity* owner );
00025     static void remove( ToolDataUser* user );
00026   
00027   private:
00028   
00029     PartitionEntity* mOwner;
00030 };
00031 
00032 #endif
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines