Initial commit
This commit is contained in:
commit
b7d90b9afe
16245 files changed
+3396666
No files matched your search
@@ -0,0 +1,84 @@
|
||||
// **************************************************************************
|
||||
//
|
||||
// (C) Copyright 2009 Swiss SIMTEC AG
|
||||
//
|
||||
// **************************************************************************
|
||||
//
|
||||
// $HeadURL$
|
||||
// $LastChangedBy$
|
||||
// $LastChangedDate$
|
||||
// $LastChangedRevision$
|
||||
//
|
||||
// **************************************************************************
|
||||
|
||||
// manual class headers
|
||||
#include "LogViewXdrStandardType.hpp"
|
||||
|
||||
namespace N_LogView
|
||||
{
|
||||
|
||||
// ---------------------------------------------------------------
|
||||
// (a_valueKind must be Unsigned, if a_dynArraySizeMethod is
|
||||
// e_DynArray...)
|
||||
// ---------------------------------------------------------------
|
||||
LogViewXdrStandardType::LogViewXdrStandardType(const QString& a_name, const int a_valueSize,
|
||||
const int a_editSize, const E_ValueKind a_valueKind,
|
||||
const E_DynArraySizeMethod a_dynArraySizeMethod, E_ByteOrder a_byteOrder)
|
||||
: LogViewXdrElement(a_name, e_KindStandardType, "LogViewXdrStandardType")
|
||||
, m_ValueSize(a_valueSize)
|
||||
, m_EditSize(a_editSize)
|
||||
, m_ValueKind(a_valueKind)
|
||||
, m_ByteOrder(a_byteOrder)
|
||||
, m_DynArraySizeMethod(a_dynArraySizeMethod)
|
||||
{}
|
||||
|
||||
|
||||
// ---------------------------------------------------------------
|
||||
uint16_t LogViewXdrStandardType::getValueSize() const
|
||||
{
|
||||
return m_ValueSize;
|
||||
}
|
||||
|
||||
// ---------------------------------------------------------------
|
||||
LogViewXdrStandardType::E_ValueKind LogViewXdrStandardType::getValueKind() const
|
||||
{
|
||||
return m_ValueKind;
|
||||
}
|
||||
|
||||
|
||||
// ---------------------------------------------------------------
|
||||
void LogViewXdrStandardType::dump() const
|
||||
{
|
||||
INFO_LOG(m_logger) << "Element[" << getName()
|
||||
<< "]: kind=" << getKindName()
|
||||
<< " valueKind=" << getValueKind()
|
||||
<< " valueSize=" << getValueSize()
|
||||
<< " editSize=" << getEditSize()
|
||||
<< " dynArrSizeMethod=" << getDynArraySizeMethod()
|
||||
<< " byteOrder=" << getByteOrder();
|
||||
}
|
||||
|
||||
// ---------------------------------------------------------------
|
||||
LogViewXdrStandardType::E_DynArraySizeMethod LogViewXdrStandardType::getDynArraySizeMethod() const
|
||||
{
|
||||
return m_DynArraySizeMethod;
|
||||
}
|
||||
|
||||
|
||||
// ---------------------------------------------------------------
|
||||
LogViewXdrStandardType::E_ByteOrder LogViewXdrStandardType::getByteOrder() const
|
||||
{
|
||||
return m_ByteOrder;
|
||||
}
|
||||
|
||||
|
||||
// ---------------------------------------------------------------
|
||||
// The 'real' size of the value, which will be allowd when
|
||||
// editing this value
|
||||
// ---------------------------------------------------------------
|
||||
uint16_t LogViewXdrStandardType::getEditSize() const
|
||||
{
|
||||
return m_EditSize;
|
||||
}
|
||||
|
||||
} // namespace N_LogView
|
||||
Reference in new issue
Block a user