73 lines
1.4 KiB
C++
73 lines
1.4 KiB
C++
// **************************************************************************
|
|
//
|
|
// (C) Copyright 2009 Swiss SIMTEC AG
|
|
//
|
|
// **************************************************************************
|
|
//
|
|
// $HeadURL$
|
|
// $LastChangedBy$
|
|
// $LastChangedDate$
|
|
// $LastChangedRevision$
|
|
//
|
|
// **************************************************************************
|
|
|
|
#pragma once
|
|
|
|
#include <QString>
|
|
#include "logger.h"
|
|
|
|
namespace N_LogView
|
|
{
|
|
/**
|
|
* @author alois.wismer
|
|
* @version 1.0
|
|
* @created 05-Feb-2010 11:24:56
|
|
*/
|
|
class LogViewXdrElement
|
|
{
|
|
public:
|
|
|
|
/**
|
|
* @author alois.wismer
|
|
* @version 1.0
|
|
* @created 10-Feb-2010 11:34:47
|
|
*/
|
|
enum E_ElementKind
|
|
{
|
|
e_KindStandardType,
|
|
e_KindTypedef,
|
|
e_KindStruct,
|
|
e_KindStructElement,
|
|
e_KindEnum,
|
|
e_KindEnumElement,
|
|
e_KindDefine
|
|
};
|
|
|
|
virtual ~LogViewXdrElement() = default;
|
|
|
|
protected:
|
|
/**
|
|
* Constructor of a struct or enum
|
|
*
|
|
* @param a_name
|
|
* @param a_kind
|
|
*/
|
|
LogViewXdrElement(const QString& a_name, const E_ElementKind a_kind, const char *loggerName);
|
|
|
|
public:
|
|
const QString& getName() const { return m_Name; }
|
|
LogViewXdrElement::E_ElementKind getKind() const { return m_Kind; }
|
|
|
|
virtual void dump() const;
|
|
|
|
protected:
|
|
QString m_Name;
|
|
E_ElementKind m_Kind;
|
|
QString getKindName() const;
|
|
|
|
NGL::INGLLogger &m_logger;
|
|
|
|
};
|
|
|
|
}
|