LibOFX: ofx_utilities.hh Source File

- Main Page
- Namespaces
- Data Structures
- Files

- File List
- Globals

# ofx_utilities.hh

Go to the documentation of this file.

    00001 /***************************************************************************
    00002                           ofx_util.h
    00003                              -------------------
    00004     copyright            : (C) 2002 by Benoit Grégoire
    00005     email                : bock@step.polymtl.ca
    00006  ***************************************************************************/
    00010 /***************************************************************************
    00011  *                                                                         *
    00012  *   This program is free software; you can redistribute it and/or modify  *
    00013  *   it under the terms of the GNU General Public License as published by  *
    00014  *   the Free Software Foundation; either version 2 of the License, or     *
    00015  *   (at your option) any later version.                                   *
    00016  *                                                                         *
    00017  ***************************************************************************/
    00018 #ifndef OFX_UTIL_H
    00019 #define OFX_UTIL_H
    00020 #include <string.h>
    00021 #include <time.h>               // for time_t
    00022 #include "ParserEventGeneratorKit.h"
    00023 using namespace std;
    00024  /* This file contains various simple functions for type conversion & al */
    00025
    00026 /*wostream &operator<<(wostream &os, SGMLApplication::CharString s); */
    00027
    00029 ostream &operator<<(ostream &os, SGMLApplication::CharString s);
    00030
    00032 wchar_t* CharStringtowchar_t(SGMLApplication::CharString source, wchar_t *dest);
    00033
    00035 string CharStringtostring(const SGMLApplication::CharString source, string &dest);
    00036
    00038 string AppendCharStringtostring(const SGMLApplication::CharString source, string &dest);
    00039
    00041 time_t ofxdate_to_time_t(const string ofxdate);
    00042
    00044 double ofxamount_to_double(const string ofxamount);
    00045
    00047 string strip_whitespace(const string para_string);
    00048
    00049 int mkTempFileName(const char *tmpl, char *buffer, unsigned int size);
    00050
    00051 #endif