00001 /********************************************************************** 00002 *< 00003 FILE: IRefTargContainer.h 00004 00005 DESCRIPTION: Defines IRefTargContainer class 00006 A Reference Maker class that stores a variable list of ReferenceTarget* items. 00007 All actions performed on this class are undoable. 00008 00009 CREATED BY: Larry Minton 00010 00011 HISTORY: created 5/19/04 00012 00013 *> Copyright (c) 2004, All Rights Reserved. 00014 **********************************************************************/ 00015 #pragma once 00016 00017 #include "ref.h" 00018 00019 // SClass_ID is REF_TARGET_CLASS_ID 00020 #define REFTARG_CONTAINER_CLASS_ID Class_ID(0xa1692edf, 0xd681173f) 00021 00039 class IRefTargContainer : public ReferenceTarget 00040 { 00041 public: 00045 virtual int GetNumItems()=0; 00046 00051 virtual ReferenceTarget *GetItem(int i)=0; 00052 00057 virtual int AppendItem(ReferenceTarget *ref)=0; 00058 00064 virtual void SetItem(int i, ReferenceTarget *ref)=0; 00065 00073 virtual int InsertItem(int i, ReferenceTarget *ref)=0; 00074 00081 virtual void RemoveItem(int i)=0; 00082 }; 00083