23 #include "wxgis/catalog/catalog.h"
43 wxGxObject(
wxGxObject *oParent,
const wxString &soName = wxEmptyString,
const CPLString &soPath =
"");
45 virtual bool Create(
wxGxObject *oParent = NULL,
const wxString &soName = wxEmptyString,
const CPLString &soPath =
"");
46 virtual bool Destroy(
void);
48 virtual wxString GetName(
void)
const;
49 virtual CPLString GetPath(
void)
const;
50 virtual void SetName(
const wxString &soName);
51 virtual void SetPath(
const CPLString &soPath);
53 virtual wxString GetBaseName(
void)
const;
54 virtual wxString GetFullName(
void)
const;
55 virtual wxString GetCategory(
void)
const;
57 virtual void Refresh(
void);
58 virtual long GetId(
void)
const {
return m_nId;};
59 virtual void SetId(
long nId){m_nId = nId;};
60 virtual wxGxObject *FindGxObjectByPath(
const wxString &sPath);
61 virtual wxGxObject *FindGxObject(
const wxString &sPath);
69 WX_DECLARE_LIST_2(
wxGxObject, wxGxObjectList, wxGxObjectListNode,
class WXDLLIMPEXP_GIS_CLT);
87 virtual bool DestroyChild(
wxGxObject *child );
88 virtual bool IsNameExist(
const wxString &sName)
const;
89 virtual bool DestroyChildren();
90 virtual bool HasChildren(
void);
91 virtual bool AreChildrenViewable(
void)
const = 0;
92 virtual const wxGxObjectList& GetChildren()
const;
93 virtual bool CanCreate(
long nDataType,
long DataSubtype);
95 virtual bool Destroy(
void);
96 virtual wxGxObjectList& GetChildren();
97 virtual void Refresh(
void);
98 virtual wxGxObject *FindGxObjectByPath(
const wxString &sPath);
99 virtual wxGxObject *FindGxObject(
const wxString &sPath);
101 wxGxObjectList m_Children;
118 virtual wxString GetFullName(
void)
const;
119 virtual wxString GetCategory(
void)
const;
121 virtual bool AreChildrenViewable(
void)
const;
123 virtual wxString ConstructFullName(
const wxGxObject* pObject)
const;
124 virtual bool Destroy(
void);
126 virtual void RegisterObject(
wxGxObject* pObj);
127 virtual void UnRegisterObject(
long nId);
129 virtual wxGxObject*
const GetRegisterObject(
long nId);
131 virtual bool Init(
void);
133 virtual bool GetShowHidden(
void)
const;
134 virtual bool GetShowExt(
void)
const;
135 virtual void SetShowHidden(
bool bShowHidden);
136 virtual void SetShowExt(
bool bShowExt);
138 virtual bool CreateChildren(
wxGxObject* pParent,
char** &pFileNames, wxArrayLong & pChildrenIds) = 0;
140 virtual void ObjectAdded(
long nObjectID) = 0;
141 virtual void ObjectChanged(
long nObjectID) = 0;
142 virtual void ObjectDeleted(
long nObjectID) = 0;
143 virtual void ObjectRefreshed(
long nObjectID) = 0;
145 virtual wxString GetConfigName(
void)
const = 0;
146 virtual void LoadObjectFactories() = 0;
147 virtual void LoadChildren() = 0;
150 std::map<long, wxGxObject*> m_moGxObject;
151 bool m_bIsInitialized;
152 bool m_bShowHidden, m_bShowExt;
Definition: gxobject.h:111
Definition: gxobject.h:78
Definition: gxobject.h:37