CTagManager Class
The CTagManager class is intended to read values that are stored in XML-like tagged format.
class CTagManager : public CObject
Members
Public Constructors
Name |
Description |
Constructs a CTagManager object. |
|
CTagManager::~CTagManager |
Destructor. |
Public Methods
Name |
Description |
Searches the internal string buffer for the specified tag and returns its value in the output string. |
|
Returns the string buffer that is currently being processed by the tag manager. |
|
Indicates whether the tag manager is empty (that is, the internal buffer has not been set or is empty). |
|
Loads a buffer from an external file. |
|
Loads a buffer from the application resources. |
|
Converts a string to a COLORREF. |
|
Converts a string in hexadecimal format to a COLORREF. |
|
Converts a string to a CMFCControlRenderer. |
|
Converts a string to a CMFCControlRendererInfo. |
|
Converts a string to a LOGFONT. |
|
Converts a string to a CPoint. |
|
Converts a string to a CRect. |
|
Converts a string to a CSize. |
|
Converts a string to an array of strings. |
|
Converts a string to a CMFCToolBarImages. |
|
Converts a string to a CMFCToolTipInfo. |
|
Reads a Boolean value from the specified tag. |
|
Reads an RGB color value from the specified tag. |
|
Reads a CMFCControlRenderer value from the specified tag. |
|
Reads a CMFCControlRendererInfo value from the specified tag. |
|
Reads a LOGFONT value from the specified tag. |
|
Reads an integer value from the specified tag. |
|
Reads a CPoint value from the specified tag. |
|
Reads a CRect value from the specified tag. |
|
Reads a CSize value from the specified tag. |
|
Reads a CMFCToolbarImages value from the specified tag |
|
Reads a CMFCToolTipInfo value from the specified tag. |
|
Sets a text buffer to be processed. |
Remarks
This class supports the MFC framework infrastructure and is not intended to be used directly from your code.
CTagManager reads values stored in a simple, XML-like format. The structure is as follows:
<TAG>
<TAG1>Value</TAG1>
</TAG>
Instantiate a CTagManager object on the stack and set a string to be parsed (either explicitly in the constructor or by using SetBuffer, or implicitly by using LoadFromFile or LoadFromResources). Then call one of the read methods in this class to parse the string.
You cannot write in the buffer by using the tag manager.
CMFCVisualManagerOffice2007 Class uses tagged style buffers to load visual style information from external sources.
Inheritance Hierarchy
Requirements
Header: afxtagmanager.h