varpath.cpp File Reference


Detailed Description

use to manage variable path (ie: [serv1,serv2].*.*.var)

Id
varpath.cpp,v 1.7 2003/10/20 16:12:01 lecroart Exp

Definition in file varpath.cpp.

#include "stdnet.h"
#include "nel/misc/types_nl.h"
#include <stdio.h>
#include <ctype.h>
#include <math.h>
#include <vector>
#include <map>
#include "nel/misc/debug.h"
#include "nel/misc/config_file.h"
#include "nel/misc/displayer.h"
#include "nel/misc/log.h"
#include "nel/net/varpath.h"

Go to the source code of this file.

Functions

 NLMISC_COMMAND (varPath,"Test a varpath(for debug purpose)","< rawvarpath >")


Function Documentation

NLMISC_COMMAND varPath  ,
"Test a varpath(for debug purpose)"  ,
"< rawvarpath >" 
 

Definition at line 217 of file varpath.cpp.

References CVarPath::Destination, and uint.

00218 {
00219         if(args.size() != 1) return false;
00220 
00221         CVarPath vp (args[0]);
00222 
00223         log.displayNL ("VarPath contains %d destination", vp.Destination.size ());
00224         for (uint i = 0; i < vp.Destination.size (); i++)
00225         {
00226                 log.displayNL ("Dest '%s' value '%s'", vp.Destination[i].first.c_str(), vp.Destination[i].second.c_str());
00227         }
00228         log.displayNL ("End of varpath");
00229         
00230         return true;
00231 }


Generated on Tue Mar 16 06:43:29 2004 for NeL by doxygen 1.3.6