#include "stdafx.h" #include "CAttribute.h" namespace SERVO { CAttribute::CAttribute() { m_nWeight = 0; } CAttribute::CAttribute(const char* pszName, const char* pszValue, const char* pszDescription, unsigned int weight) { m_strName = pszName; m_strValue = pszValue; m_strDescription = pszDescription; m_nWeight = weight; } CAttribute::~CAttribute() { } std::string& CAttribute::getName() { return m_strName; } std::string& CAttribute::getValue() { return m_strValue; } std::string& CAttribute::getDescription() { return m_strDescription; } unsigned int CAttribute::getWeight() { return m_nWeight; } }