Main Page Class Hierarchy Compound List File List Compound Members

# VOUtils.h

    00001 #ifndef VO_UTILS_H
    00002 #define VO_UTILS_H
    00003
    00004 #include "global.h"
    00005
    00006 #include <fstream>
    00007 using namespace std;
    00008
    00009 /*
    00010 * This class contains utlility functions used by VOTable API.
    00011 * This is an internal class used by the parser.
    00012 */
    00013 // Date created - 28 May 2002
    00014
    00015 class VOUtils
    00016 {
    00017         public:
    00018                 /*
    00019                 * check if a file exists in given path.
    00020                 */
    00021                 int static checkIfFileExists(const char * filename);
    00022
    00023                 /*
    00024                 * Make a copy of string.
    00025                 *
    00026                 * Similar to strdup() but returns proper status and
    00027                 * uses new instead of malloc to alloate memory.
    00028                 *
    00029                 * Used internally
    00030                 */
    00031                 int static copyString(char *&dest, const char *src, int *status);
    00032
    00033 };
    00034
    00035 #endif
    00036