43 const char *pStrDisplayName,
44 const char *pStrDescription,
45 const char *pStrTooltip,
46 const char *pStrSNFCNamespace,
52 m_strName = pStrName != NULL ? std::string( pStrName ) :
"";
53 m_strDisplayName = pStrDisplayName != NULL ? std::string( pStrDisplayName ) :
"";
54 m_strDescription = pStrDescription != NULL ? std::string( pStrDescription ) :
"";
55 m_strTooltip = pStrTooltip != NULL ? std::string( pStrTooltip ) :
"";
56 m_strNamespace = pStrSNFCNamespace != NULL ? std::string( pStrSNFCNamespace ) :
"";
62 if ( NULL == pStrName )
64 rnSize =
static_cast<VmbUint32_t>( m_strName.size() );
67 else if ( m_strName.size() <= rnSize )
69 std::copy( m_strName.begin(), m_strName.end(), pStrName );
70 rnSize =
static_cast<VmbUint32_t>( m_strName.size() );
85 if ( NULL == pStrDisplayName )
87 rnSize =
static_cast<VmbUint32_t>( m_strDisplayName.size() );
90 else if ( m_strDisplayName.size() <= rnSize )
92 std::copy( m_strDisplayName.begin(), m_strDisplayName.end(), pStrDisplayName );
93 rnSize =
static_cast<VmbUint32_t>( m_strDisplayName.size() );
108 if ( NULL == pStrDescription )
110 rnSize =
static_cast<VmbUint32_t>( m_strDescription.size() );
113 else if ( m_strDescription.size() <= rnSize )
115 std::copy( m_strDescription.begin(), m_strDescription.end(), pStrDescription );
116 rnSize =
static_cast<VmbUint32_t>( m_strDescription.size() );
131 if ( NULL == pStrTooltip )
133 rnSize =
static_cast<VmbUint32_t>( m_strTooltip.size() );
136 else if ( m_strTooltip.size() <= rnSize )
138 std::copy( m_strTooltip.begin(), m_strTooltip.end(), pStrTooltip );
139 rnSize =
static_cast<VmbUint32_t>( m_strTooltip.size() );
154 if ( NULL == pStrNamespace )
156 rnSize =
static_cast<VmbUint32_t>( m_strNamespace.size() );
159 else if ( m_strNamespace.size() <= rnSize )
161 std::copy( m_strNamespace.begin(), m_strNamespace.end(), pStrNamespace );
162 rnSize =
static_cast<VmbUint32_t>( m_strNamespace.size() );
190 const char *pStrDisplayName,
191 const char *pStrDescription,
192 const char *pStrTooltip,
193 const char *pStrSNFCNamespace,
196 :
m_pImpl( new
PrivateImpl(pStrName, pStrDisplayName, pStrDescription, pStrTooltip, pStrSNFCNamespace, visibility, nValue) )
std::string m_strDisplayName
std::string m_strNamespace
VmbErrorType GetDisplayName(char *const pStrDisplayName, VmbUint32_t &rnSize) const
PrivateImpl(const char *pStrName, const char *pStrDisplayName, const char *pStrDescription, const char *pStrTooltip, const char *pStrSNFCNamespace, VmbFeatureVisibility_t visibility, VmbInt64_t nValue)
VmbErrorType GetName(std::string &name) const
VmbErrorType GetSFNCNamespace(std::string &sFNCNamespace) const
std::string m_strDescription
VmbErrorType GetTooltip(std::string &tooltip) const
VmbErrorType GetDisplayName(std::string &displayName) const
VmbErrorType GetDescription(char *const pStrDescription, VmbUint32_t &rnSize) const
IMEXPORT EnumEntry & operator=(const EnumEntry &o)
IMEXPORT VmbErrorType GetValue(VmbInt64_t &value) const
VmbErrorType GetTooltip(char *const pStrTooltip, VmbUint32_t &rnSize) const
VmbErrorType GetValue(VmbInt64_t &rnValue) const
VmbErrorType GetSFNCNamespace(char *const pStrNamespace, VmbUint32_t &rnSize) const
VmbErrorType GetVisibility(VmbFeatureVisibilityType &rVisibility) const
VmbErrorType GetDescription(std::string &description) const
VmbErrorType GetName(char *const pStrName, VmbUint32_t &rnSize) const
virtual IMEXPORT ~EnumEntry()
IMEXPORT VmbErrorType GetVisibility(VmbFeatureVisibilityType &value) const
VmbFeatureVisibilityType m_Visibility
VmbUint32_t VmbFeatureVisibility_t