Changeset 288 in pacpusframework for trunk/examples/ProducerConsumerExample


Ignore:
Timestamp:
Mar 26, 2014, 9:27:30 PM (11 years ago)
Author:
Marek Kurdej
Message:

Using boost::shared_ptr for storing components.

Location:
trunk/examples/ProducerConsumerExample
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/examples/ProducerConsumerExample/ConsumerExample.cpp

    r272 r288  
    1010DECLARE_STATIC_LOGGER("pacpus.cityvip.test.ConsumerExample");
    1111
    12 /// Construct the factory
    13 static ComponentFactory<ConsumerExample> sFactory("ConsumerExample");
     12PACPUS_REGISTER_COMPONENT(ConsumerExample);
    1413
    1514ConsumerExample::ConsumerExample(QString name)
  • trunk/examples/ProducerConsumerExample/ConsumerExample.h

    r176 r288  
    1010#include <string>
    1111
    12 namespace pacpus {
     12namespace pacpus
     13{
    1314
    1415class PRODUCERCONSUMEREXAMPLE_API ConsumerExample
    15         : public QObject
    16         , public ComponentBase
     16    : public QObject
     17    , public ComponentBase
    1718{
    1819    Q_OBJECT
  • trunk/examples/ProducerConsumerExample/ProducerExample.cpp

    r202 r288  
    1212DECLARE_STATIC_LOGGER("pacpus.cityvip.test.ProducerExample");
    1313
    14 /// Construct the factory
    15 static ComponentFactory<ProducerExample> sFactory("ProducerExample");
     14PACPUS_REGISTER_COMPONENT(ProducerExample);
    1615
    1716static const char * outputFileName = "producer.txt";
Note: See TracChangeset for help on using the changeset viewer.