#pragma once namespace Elmax { //! Class to access XML comment class Comment { friend class Element; private: //! Constructor Comment(void); //! Non-default Constructor Comment(MSXML2::IXMLDOMCommentPtr ptrComment) : m_ptrComment(ptrComment) {}; public: #if _HAS_CPP0X //! Copy Constructor Comment(Comment& other) : m_ptrComment(other.m_ptrComment) {}; #endif //! Destructor ~Comment(void); //! Get the Comment data std::wstring GetContent() const; //! Get the length of the Comment in wchar_t size long GetLength() const; //! Delete itself bool Delete(); //! Update the Comment bool Update(const std::wstring& comment); //! Is valid? bool IsValid(); private: //! Comment object MSXML2::IXMLDOMCommentPtr m_ptrComment; }; } // ns Elmax
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.
This article, along with any associated source code and files, is licensed under The Microsoft Public License (Ms-PL)