chenluhua1980
2026-01-10 9198ac12e4e2ff64a2cf65c32d576f02d54c346a
SourceCode/Bond/Servo/CAttribute.cpp
@@ -4,18 +4,39 @@
namespace SERVO {
   CAttribute::CAttribute()
   {
      m_nWeight = 0;
   }
   CAttribute::CAttribute(const char* pszName, const char* pszValue, const char* pszDescription)
   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;
   }
}