00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018 #include "config.h"
00019
00020 #include <stdio.h>
00021 #include <string.h>
00022 #include <stdarg.h>
00023 #include <assert_pp.h>
00024
00025 #include "HeyParser.hh"
00026 #include "factory_library.h"
00027
00028 int FACTORY_METHOD_SYMBOL(factory_library_op_t op, int tag, va_list args)
00029 {
00030 static HeyPropertyInfo suites[] = {
00031 HeyPropertyInfo("foo",
00032 (1L << HeyParser::LIST_PROPERTIES),
00033 "",
00034 "Hello, World!\n"),
00035 HeyPropertyInfo::HPI_NULL
00036 };
00037
00038 int retval = EXIT_FAILURE;
00039
00040 switch( op )
00041 {
00042 case FLO_QUERY:
00043 cout << "FLO_QUERY" << endl;
00044 retval = EXIT_SUCCESS;
00045 break;
00046 case FLO_HEY:
00047 cout << "FLO_HEY" << endl;
00048 cout << suites << endl;
00049 retval = EXIT_SUCCESS;
00050 break;
00051 default:
00052 break;
00053 }
00054 return( retval );
00055 }