1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
|
/*
* Falcon DataMatrix - Service
*/
#define FALCON_EXPORT_SERVICE
#include "dmtx_srv.h"
#include "dmtx_mod.h"
#include <falcon/vm.h>
namespace Falcon
{
DataMatrixService::DataMatrixService()
:
Falcon::Service( DMTX_SERVICENAME )
{
}
DataMatrixService::~DataMatrixService()
{
}
Falcon::Dmtx::DataMatrix*
DataMatrixService::createCodec()
{
VMachine* vm = VMachine::getCurrent();
Item* wki = vm->findWKI( "DataMatrix" );
return new Falcon::Dmtx::DataMatrix( wki->asClass() );
}
} // !namespace Falcon
|