Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

cxxtest.cc

Go to the documentation of this file.
00001 /*
00002  * cxxtest.cc
00003  *
00004  * Copyright (c) 2004 The University of Utah and the Flux Group.
00005  * All rights reserved.
00006  *
00007  * This file is licensed under the terms of the GNU Public License.  
00008  * See the file "license.terms" for restrictions on redistribution 
00009  * of this file, and for a DISCLAIMER OF ALL WARRANTIES.
00010  */
00011 
00012 /**
00013  * @file cxxtest.cc
00014  *
00015  * C++ based shared library test for allup.
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 }

Generated on Fri Oct 22 07:50:24 2004 for CPU Broker by  doxygen 1.3.9.1