|
// attribute_generic.cpp: implementation of the base abstract class
#include "stdafx.h"
#include "attribute_generic.h"
// Construction/Destruction
CAttribute_Generic::CAttribute_Generic(int index)
{
m_attribute_idx = index;
Units = _T("[N/A]");
}
CAttribute_Generic::~CAttribute_Generic()
{
}
void CAttribute_Generic::GetClassName(CString& szDummy)
{
try
{
szDummy = ClassName;
}
catch (...) {
}
}
void CAttribute_Generic::GetKind(CString& szDummy)
{
try
{
szDummy = Kind;
}
catch (...) {
}
}
void CAttribute_Generic::GetSize(size_t& nDummy)
{
try
{
nDummy = m_size;
}
catch (...) {
}
}
void CAttribute_Generic::GetIndex(int& nDummy)
{
try
{
nDummy = m_attribute_idx;
}
catch (...) {
}
}
void CAttribute_Generic::GetUnits(CString& szDummy)
{
try
{
szDummy = Units;
}
catch (...) {
}
}
void CAttribute_Generic::SetUnits(CString szDummy)
{
try
{
Units = szDummy;
}
catch (...) {
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
Senior Software Developer in C/C++ and Oracle.
Ex-physicist holding a Ph.D. on x-ray lasers.