simple.cpp

00001 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
00002  *
00003  * This file is example code for XPLC (http://xplc.sourceforge.net/),
00004  * and is put into the public domain.
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 

Generated on Mon Feb 5 10:54:28 2007 for WvStreams by  doxygen 1.5.1