00001
00002
00003
00004
00005
00006
00007 #include <stdio.h>
00008 #include <xplc/utils.h>
00009 #include "IExample.h"
00010 #include "simple.h"
00011
00012 class SimpleComponent: public IExample {
00013 IMPLEMENT_IOBJECT(SimpleComponent);
00014 public:
00015 virtual void sayHello();
00016 };
00017
00018 UUID_MAP_BEGIN(SimpleComponent)
00019 UUID_MAP_ENTRY(IObject)
00020 UUID_MAP_ENTRY(IExample)
00021 UUID_MAP_END
00022
00023 IObject* getSimpleComponent() {
00024 return new SimpleComponent;
00025 }
00026
00027 void SimpleComponent::sayHello() {
00028 printf("hello from SimpleComponent!\n");
00029 }
00030