summaryrefslogtreecommitdiffstats
path: root/private/ole32/stg/ref/h/chinst.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'private/ole32/stg/ref/h/chinst.hxx')
-rw-r--r--private/ole32/stg/ref/h/chinst.hxx81
1 files changed, 81 insertions, 0 deletions
diff --git a/private/ole32/stg/ref/h/chinst.hxx b/private/ole32/stg/ref/h/chinst.hxx
new file mode 100644
index 000000000..46637a3ef
--- /dev/null
+++ b/private/ole32/stg/ref/h/chinst.hxx
@@ -0,0 +1,81 @@
+//+--------------------------------------------------------------
+//
+// Microsoft Windows
+// Copyright (C) Microsoft Corporation, 1991 - 1992
+//
+// File: chinst.hxx
+//
+// Contents: DocFile child object maintenance code header file
+//
+// Classes: CChildInstance
+// CChildInstanceList
+//
+//---------------------------------------------------------------
+
+#ifndef __CHINST_HXX__
+#define __CHINST_HXX__
+
+class PRevertable;
+
+//+--------------------------------------------------------------
+//
+// Class: CChildInstanceList (cil)
+//
+// Purpose: Maintains a list of child instances
+//
+// Interface: See below
+//
+//---------------------------------------------------------------
+
+class CChildInstanceList
+{
+public:
+ inline CChildInstanceList(void);
+ inline ~CChildInstanceList(void);
+
+ void Add(PRevertable *prv);
+ PRevertable *FindByName(CDfName const *pdfn);
+ void DeleteByName(CDfName const *pdfn);
+ void RemoveRv(PRevertable *prv);
+ void Empty(void);
+
+ SCODE IsDenied(CDfName const *pdfn,
+ DFLAGS const dwDFlagsCheck,
+ DFLAGS const dwDFlagsAgainst);
+
+ void RenameChild(CDfName const *pdfn, CDfName const *pdfnNewName);
+
+private:
+ PRevertable *_prvHead;
+};
+
+
+//+--------------------------------------------------------------
+//
+// Member: CChildInstanceList::CChildInstanceList, pubic
+//
+// Synopsis: ctor
+//
+//---------------------------------------------------------------
+
+inline CChildInstanceList::CChildInstanceList(void)
+{
+ _prvHead = NULL;
+}
+
+//+--------------------------------------------------------------
+//
+// Member: CChildInstanceList::~CChildInstanceList, public
+//
+// Synopsis: dtor
+//
+//---------------------------------------------------------------
+
+inline CChildInstanceList::~CChildInstanceList(void)
+{
+ msfAssert(_prvHead == NULL);
+}
+
+#endif
+
+