diff options
| author | Dongdong Li <[email protected]> | 2013-11-22 15:38:36 -0800 |
|---|---|---|
| committer | Andrew Boktor <[email protected]> | 2014-08-14 13:50:59 -0700 |
| commit | ef8a5521e440baa2f86d468cdc9078f54ec7c0c0 (patch) | |
| tree | c1627660cc01983067eb5d9b09fb82b4e06d9983 /src/intersim/config_utils.hpp | |
| parent | bdc0e550448f04c7c8f030b7421209bae37e651d (diff) | |
Delete Intersim
Code Review Issue: 113001
[git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 17414]
Diffstat (limited to 'src/intersim/config_utils.hpp')
| -rw-r--r-- | src/intersim/config_utils.hpp | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/src/intersim/config_utils.hpp b/src/intersim/config_utils.hpp deleted file mode 100644 index 86cc98e..0000000 --- a/src/intersim/config_utils.hpp +++ /dev/null @@ -1,45 +0,0 @@ -#ifndef _CONFIG_UTILS_HPP_
-#define _CONFIG_UTILS_HPP_
-
-#include<stdio.h>
-#include<string>
-#include<map>
-
-extern int configparse( );
-
-class Configuration {
- static Configuration *theConfig;
- FILE *_config_file;
-
-protected:
- map<string,char *> _str_map;
- map<string,unsigned int> _int_map;
- map<string,double> _float_map;
-
-public:
- Configuration( );
-
- void AddStrField( const string &field, const string &value );
-
- void Assign( const string &field, const string &value );
- void Assign( const string &field, unsigned int value );
- void Assign( const string &field, double value );
-
- void GetStr( const string &field, string &value, const string &def = "" ) const;
- unsigned int GetInt( const string &field, unsigned int def = 0 ) const;
- double GetFloat( const string &field, double def = 0.0 ) const;
-
- void Parse( const string& filename );
- void Parse( const char* filename );
-
- int Input( char *line, int max_size );
- void ParseError( const string &msg, unsigned int lineno ) const;
-
- static Configuration *GetTheConfig( );
-};
-
-bool ParseArgs( Configuration *cf, int argc, char **argv );
-
-#endif
-
-
|
