00001 /* 00002 * AnyPrinter.hh 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 AnyPrinter.hh 00014 * 00015 * Header file for a class used to print CORBA::Anys. 00016 */ 00017 00018 #ifndef _any_printer_hh 00019 #define _any_printer_hh 00020 00021 /** 00022 * Class used to print CORBA::Anys. 00023 */ 00024 class AnyPrinter 00025 { 00026 00027 public: 00028 00029 /** 00030 * Print a CORBA::Any to the given output stream. 00031 * 00032 * @param os The destination stream. 00033 * @param value The Any to print. 00034 */ 00035 static void print_to_stream(ostream &os, const CORBA::Any &value); 00036 00037 private: 00038 00039 /** 00040 * Empty constructor. 00041 */ 00042 AnyPrinter() {}; 00043 00044 }; 00045 00046 #endif