Gaudi Framework, version v21r8

Home   Generated: 17 Mar 2010

utils.cpp File Reference

This file contains the implementations of some helper methods for ApMon. More...

#include "utils.h"
#include "ApMon.h"

Include dependency graph for utils.cpp:

Go to the source code of this file.

Functions

bool apmon_utils::urlModified (char *url, char *lastModified) throw (runtime_error)
 Returns true if the page with the specified URL was modified since the last check.
int apmon_utils::httpRequest (char *url, char *reqType, char *temp_filename) throw (runtime_error)
 Performs a HTTP request and puts the result into a temporary file.
char * apmon_utils::findIP (char *address) throw (runtime_error)
 If "address" is a hostname, it returns the corresponding IP address; if "address" is an IP address, it just returns a copy of the address.
void apmon_utils::parse_URL (char *url, char *hostname, int *port, char *identifier) throw (runtime_error)
 Parses an URL and determines the hostname, the port and the file name.
void apmon_utils::freeMat (char **mat, int nRows)
 Frees the memory for a 2-dimensional character array.
char * apmon_utils::trimString (char *s)
 Removes the leading and trailing white spaces from a string and puts the result into a malloc'ed string.
int apmon_utils::xdrSize (int type, char *value)
 Determines the size of the XDR representation for a data item.
int apmon_utils::sizeEval (int type, char *value)
 Determines the size of a data item.
void apmon_utils::logParameters (int level, int nParams, char **paramNames, int *valueTypes, char **paramValues)
 Logs the parameters included in a datagram.
bool apmon_utils::isPrivateAddress (char *addr)
 Verifies whether an IP address is private.
int apmon_utils::getVectIndex (char *item, char **vect, int vectDim)
 Finds the index of a string in a string array.
void apmon_utils::logger (int msgLevel, const char *msg, int newLevel=-1)
 If the newLevel parameter is not specified, log the message given as argument if the current logging level is greater than or equal to msgLevel.


Detailed Description

This file contains the implementations of some helper methods for ApMon.

Definition in file utils.cpp.


Generated at Wed Mar 17 18:11:28 2010 for Gaudi Framework, version v21r8 by Doxygen version 1.5.6 written by Dimitri van Heesch, © 1997-2004