INTRODUCTION
Overview
Download and Install
Quick Start
Documentation
Publications

NONFRAMEWORK CODE
Driver Interfaces
Drivers
Libraries
Utilities

FRAMEWORK CODE
Interfaces
Components
Libraries
Utilities

Full Software Listings

DEVELOPER
Tutorials
Examples
Dev Guide
Dashboard

PEOPLE
Contributors
Users

SourceForge.net Logo
Project
Download
Mailing lists

 

         

printutil.h

00001 #ifndef ICEGRIDMON_PRINTUTIL_H
00002 #define ICEGRIDMON_PRINTUTIL_H
00003 
00004 #include <string>
00005 #include <IceGrid/Registry.h>
00006 #include <IceGrid/Observer.h>
00007 
00008 namespace orcaicegrid {
00009 
00010 
00011 std::string toString( const IceGrid::AdapterInfo &a, int indent=0 );
00012 std::string toString( const IceGrid::ObjectInfo &a, int indent=0 );
00013 std::string toString( const IceGrid::NodeInfo &n, int indent=0 );
00014 std::string toString( const IceGrid::ServerState &s );
00015 std::string toString( const IceGrid::ServerDynamicInfo &n, int indent=0 );
00016 std::string toString( const IceGrid::AdapterDynamicInfo &n, int indent=0 );
00017 std::string toString( const IceGrid::NodeDynamicInfo &n, int indent=0 );
00018 std::string longToDateTime( long time );
00019 std::string toString( const Ice::StringSeq &s, int indent=0 );
00020 std::string toString( const IceGrid::StringStringDict &s, int indent=0 );
00021 std::string toString( const IceGrid::ApplicationDescriptor &a, int indent=0 );
00022 std::string toString( const IceGrid::ApplicationInfo &a, int indent=0 );
00023 std::string toString( const IceGrid::DistributionDescriptor &d, int indent=0 );
00024 std::string toString( const IceGrid::ApplicationUpdateDescriptor &a, int indent=0 );
00025 std::string toString( const IceGrid::ApplicationUpdateInfo &a, int indent=0 );
00026 std::string toString( const IceGrid::RegistryInfo &r, int indent=0 );
00027 
00028 
00029 template<typename Seq>
00030 std::string toString( const Seq &seq, const std::string &descr, int indent=0 )
00031 {
00032     std::string ind = "";
00033     for ( int i=0; i < indent; i++ )
00034         ind += " ";
00035 
00036     std::stringstream ss;
00037     for ( unsigned int i=0; i < seq.size(); i++ )
00038     {
00039         ss << ind << descr << " " << i << ":" << std::endl << toString(seq[i],indent+2);
00040         if ( i != seq.size()-1 ) 
00041             ss << std::endl;
00042     }
00043     return ss.str();
00044 }
00045 
00046 }
00047 
00048 #endif
 

Webmaster: Tobias Kaupp (tobasco at users.sourceforge.net)


Generated for Orca Robotics by  doxygen 1.4.5