You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by ga...@apache.org on 2003/10/20 13:47:30 UTC
cvs commit: xml-xerces/c/src/xercesc/framework XMLAttDefList.hpp
gareth 2003/10/20 04:47:30
Modified: c/src/xercesc/framework XMLAttDefList.hpp
Log:
Constructor take memory manager and get method for it.
Revision Changes Path
1.6 +39 -2 xml-xerces/c/src/xercesc/framework/XMLAttDefList.hpp
Index: XMLAttDefList.hpp
===================================================================
RCS file: /home/cvs/xml-xerces/c/src/xercesc/framework/XMLAttDefList.hpp,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- XMLAttDefList.hpp 10 Oct 2003 16:23:29 -0000 1.5
+++ XMLAttDefList.hpp 20 Oct 2003 11:47:30 -0000 1.6
@@ -56,6 +56,9 @@
/*
* $Log$
+ * Revision 1.6 2003/10/20 11:47:30 gareth
+ * Constructor take memory manager and get method for it.
+ *
* Revision 1.5 2003/10/10 16:23:29 peiyongz
* Implementation of Serialization/Deserialization
*
@@ -162,16 +165,49 @@
***/
DECL_XSERIALIZABLE(XMLAttDefList)
+
+ // -----------------------------------------------------------------------
+ // Getter methods
+ // -----------------------------------------------------------------------
+
+ /** @name Getter methods */
+ //@{
+
+ /** Get the memory manager
+ *
+ * This method returns the configurable memory manager used by the
+ * element declaration for dynamic allocation/deacllocation.
+ *
+ * @return the memory manager
+ */
+ MemoryManager* getMemoryManager() const;
+
+ //@}
+
protected :
// -----------------------------------------------------------------------
// Hidden constructors and operators
// -----------------------------------------------------------------------
- XMLAttDefList();
+ XMLAttDefList(MemoryManager* const manager = XMLPlatformUtils::fgMemoryManager);
XMLAttDefList(const XMLAttDefList&);
XMLAttDefList& operator=(const XMLAttDefList&);
+
+
+private:
+ MemoryManager* fMemoryManager;
};
+
+// ---------------------------------------------------------------------------
+// XMLAttDefList: Getter methods
+// ---------------------------------------------------------------------------
+
+inline MemoryManager* XMLAttDefList::getMemoryManager() const
+{
+ return fMemoryManager;
+}
+
// ---------------------------------------------------------------------------
// XMLAttDefList: Constructors and Destructor
// ---------------------------------------------------------------------------
@@ -183,7 +219,8 @@
// ---------------------------------------------------------------------------
// XMLAttDefList: Hidden Constructors and Operators
// ---------------------------------------------------------------------------
-inline XMLAttDefList::XMLAttDefList()
+inline XMLAttDefList::XMLAttDefList(MemoryManager* const manager):
+fMemoryManager(manager)
{
}
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-cvs-help@xml.apache.org