Changeset 6941 for sample


Ignore:
Timestamp:
Nov 17, 2009, 1:55:46 PM (15 years ago)
Author:
Christoph Mayer
Message:

-visualisierungsänderungen

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sample/pingpong/PingPong.cpp

    r5316 r6941  
    11#include "PingPong.h"
    22#include "ariba/utility/configuration/Configuration.h"
     3#include "ariba/utility/visual/DddVis.h"
    34
    45using ariba::utility::Configuration;
     
    5253                if (config.exists("pingpong.name"))
    5354                        name = config.read<string>("pingpong.name");
     55
     56                // get visualization
     57                if( config.exists("ariba.visual3d.ip") && config.exists("ariba.visual3d.port")){
     58                        string ip = config.read<string>("ariba.visual3d.ip");
     59                        unsigned int port = config.read<unsigned int>("ariba.visual3d.port");
     60                        ariba::utility::DddVis::instance().configure(ip, port);
     61                }
    5462
    5563        } // if( Configuration::haveConfig() )
Note: See TracChangeset for help on using the changeset viewer.