Main Page   Namespace List   Class Hierarchy   Compound List   File List   Compound Members  

Common.h

00001 /*
00002    Copyright (C) 2002 the Strongroom project
00003 
00004    This library is free software; you can redistribute it and/or
00005    modify it under the terms of the GNU Lesser General Public
00006    License as published by the Free Software Foundation; either
00007    version 2.1 of the License, or (at your option) any later version.
00008 
00009    Common header file
00010 
00011    @author Denis de Leeuw Duarte
00012    @author Ewald Snel
00013 */ 
00014 
00015 #ifndef __COMMON_H_
00016 #define __COMMON_H_
00017 
00018 #include <inttypes.h>
00019 #include <sys/types.h>
00020 #include <string>
00021 
00022 typedef int64_t NumID;
00023 
00024 
00025 using namespace std;
00026 
00033 bool stringToInt( string str, int &value );
00034 
00041 bool stringToInt64( string str, int64_t &value );
00042 
00049 bool stringToNumID( string str, NumID &numid );
00050 
00056 string intToString( int value );
00057 
00063 string int64ToString( int64_t value );
00064 
00070 string NumIDToString( NumID numid );
00071 
00072 #endif /*__COMMON_H_*/

Generated on Wed Feb 18 13:45:55 2004 for strongroom by doxygen1.2.18