mirror of
https://github.com/eclipse-openvehicle-api/openvehicle-api.git
synced 2026-07-02 05:35:11 +00:00
30
sdv_executables/sdv_idl_compiler/entities/root_entity.cpp
Normal file
30
sdv_executables/sdv_idl_compiler/entities/root_entity.cpp
Normal file
@@ -0,0 +1,30 @@
|
||||
#include "root_entity.h"
|
||||
#include "module_entity.h"
|
||||
#include "../exception.h"
|
||||
#include "../token.h"
|
||||
|
||||
|
||||
CRootEntity::CRootEntity(CParser& rParser, const CContextPtr& rptrContext) :
|
||||
CModuleEntity(rParser, rptrContext)
|
||||
{}
|
||||
|
||||
void CRootEntity::Process()
|
||||
{
|
||||
// Skip the definition and process the content directly.
|
||||
ProcessContent();
|
||||
}
|
||||
|
||||
bool CRootEntity::IsExtendable() const
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
void CRootEntity::AddMeta(const CEntityPtr& ptrMeta)
|
||||
{
|
||||
m_lstMetaEntities.push_back(ptrMeta);
|
||||
}
|
||||
|
||||
const CEntityList& CRootEntity::GetMeta() const
|
||||
{
|
||||
return m_lstMetaEntities;
|
||||
}
|
||||
Reference in New Issue
Block a user