Changeset 14 in pacpussensors for trunk/ExampleComponent/ExampleComponent.cpp


Ignore:
Timestamp:
Jul 2, 2013, 12:33:42 PM (11 years ago)
Author:
Marek Kurdej
Message:

ExampleComponent: added parameters, fixed Log include.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ExampleComponent/ExampleComponent.cpp

    r12 r14  
    55
    66#include "${<PROJECT_NAME>}.h"
     7
     8#include <kernel/Log.h>
    79
    810using namespace pacpus;
     
    1315/// Constructs a static component factory
    1416static ComponentFactory<${<PROJECT_NAME>}> sFactory("${<PROJECT_NAME>}");
     17
     18static const int kDefaultVerboseLevel = 1;
    1519
    1620//////////////////////////////////////////////////////////////////////////
     
    4044ComponentBase::COMPONENT_CONFIGURATION ${<PROJECT_NAME>}::configureComponent(XmlComponentConfig config)
    4145{
     46    recording = config.getIntProperty("verbose", kDefaultVerboseLevel);
     47    recording = config.getBoolProperty("recording");
     48
    4249    return ComponentBase::CONFIGURED_OK;
    4350}
Note: See TracChangeset for help on using the changeset viewer.