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

CTagManager::CTagManager

Constructs a CTagManager object.

CTagManager::~CTagManager

Destructor.

Public Methods

Name

Description

CTagManager::ExcludeTag

Searches the internal string buffer for the specified tag and returns its value in the output string.

CTagManager::GetBuffer

Returns the string buffer that is currently being processed by the tag manager.

CTagManager::IsEmpty

Indicates whether the tag manager is empty (that is, the internal buffer has not been set or is empty).

CTagManager::LoadFromFile

Loads a buffer from an external file.

CTagManager::LoadFromResource

Loads a buffer from the application resources.

CTagManager::ParseColor

Converts a string to a COLORREF.

CTagManager::ParseColorHEX

Converts a string in hexadecimal format to a COLORREF.

CTagManager::ParseControlRenderer

Converts a string to a CMFCControlRenderer.

CTagManager::ParseControlRendererInfo

Converts a string to a CMFCControlRendererInfo.

CTagManager::ParseFont

Converts a string to a LOGFONT.

CTagManager::ParsePoint

Converts a string to a CPoint.

CTagManager::ParseRect

Converts a string to a CRect.

CTagManager::ParseSize

Converts a string to a CSize.

CTagManager::ParseString

Converts a string to an array of strings.

CTagManager::ParseToolBarImages

Converts a string to a CMFCToolBarImages.

CTagManager::ParseToolTipInfo

Converts a string to a CMFCToolTipInfo.

CTagManager::ReadBool

Reads a Boolean value from the specified tag.

CTagManager::ReadColor

Reads an RGB color value from the specified tag.

CTagManager::ReadControlRenderer

Reads a CMFCControlRenderer value from the specified tag.

CTagManager::ReadControlRendererInfo

Reads a CMFCControlRendererInfo value from the specified tag.

CTagManager::ReadFont

Reads a LOGFONT value from the specified tag.

CTagManager::ReadInt

Reads an integer value from the specified tag.

CTagManager::ReadPoint

Reads a CPoint value from the specified tag.

CTagManager::ReadRect

Reads a CRect value from the specified tag.

CTagManager::ReadSize

Reads a CSize value from the specified tag.

CTagManager::ReadToolBarImages

Reads a CMFCToolbarImages value from the specified tag

CTagManager::ReadToolTipInfo

Reads a CMFCToolTipInfo value from the specified tag.

CTagManager::SetBuffer

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

CObject

   CTagManager

Requirements

Header: afxtagmanager.h

See Also

Concepts

MFC Hierarchy Chart

Other Resources

Classes (MFC Feature Pack)