AnimatLab  2
Test
StdUtils::CStdFont Class Reference

Standard font. More...

#include <StdFont.h>

+ Collaboration diagram for StdUtils::CStdFont:

Public Member Functions

 CStdFont ()
 Default constructor. More...
 
virtual ~CStdFont ()
 Destructor. More...
 
virtual void Load (CStdXml &oXml, std::string strParamName, bool bThrowError=false)
 Loads the font. More...
 
virtual void Save (CStdXml &oXml, std::string strParamName)
 Saves the font. More...
 

Public Attributes

bool m_bBold
 true for bold font.
 
bool m_bItalic
 true for italic font.
 
bool m_bStrikethrough
 true for Strikethrough font.
 
bool m_bUnderline
 true for Underline font.
 
float m_fltSize
 Size of the font.
 
float m_fltWeight
 The weight of the font.
 
std::string m_strName
 Name of the font.
 

Detailed Description

Standard font.

Author
dcofer
Date
5/3/2011

Definition at line 17 of file StdFont.h.

Constructor & Destructor Documentation

StdUtils::CStdFont::CStdFont ( )

Default constructor.

Author
dcofer
Date
5/3/2011

Definition at line 17 of file StdFont.cpp.

References m_bBold, m_bItalic, m_bStrikethrough, m_bUnderline, m_fltSize, m_fltWeight, and m_strName.

StdUtils::CStdFont::~CStdFont ( )
virtual

Destructor.

Author
dcofer
Date
5/3/2011

Definition at line 34 of file StdFont.cpp.

Member Function Documentation

void StdUtils::CStdFont::Load ( CStdXml oXml,
std::string  strParamName,
bool  bThrowError = false 
)
virtual

Loads the font.

Author
dcofer
Date
5/3/2011
Parameters
[in,out]oXmlThe xml to load.
strParamNameName of the font xml parameter.
bThrowErrortrue to throw error if there is a problem.

Definition at line 49 of file StdFont.cpp.

References StdUtils::CStdXml::FindChildElement(), StdUtils::CStdXml::GetChildAttribBool(), StdUtils::CStdXml::GetChildAttribFloat(), StdUtils::CStdXml::GetChildAttribString(), m_bBold, m_bItalic, m_bStrikethrough, m_bUnderline, m_fltSize, m_fltWeight, m_strName, and StdUtils::Std_InValidRange().

+ Here is the call graph for this function:

void StdUtils::CStdFont::Save ( CStdXml oXml,
std::string  strParamName 
)
virtual

Saves the font.

Author
dcofer
Date
5/3/2011
Parameters
[in,out]oXmlThe xml to save.
strParamNameName of the font xml parameter.

Definition at line 76 of file StdFont.cpp.

References StdUtils::CStdXml::AddChildElement(), m_bBold, m_bItalic, m_bStrikethrough, m_bUnderline, m_fltSize, m_fltWeight, m_strName, and StdUtils::CStdXml::SetChildAttrib().

+ Here is the call graph for this function:


The documentation for this class was generated from the following files: