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

Param.hpp

Go to the documentation of this file.
00001  /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
00002  * 
00003  * The Lemur toolkit for language modeling and information retrieval.
00004  * Copyright (c) 2001 Carnegie Mellon University.  All rights reserved.
00005  *
00006  * Redistribution and use in source and binary forms, with or without
00007  * modification, are permitted for research or educational purposes,
00008  * provided that this copyright notice is maintained and note is made
00009  * of any changes to the source code.
00010  * 
00011  * This is a research system.  The code is distributed on an "as is" basis,
00012  * without any warranty, express or implied. 
00013  * 
00014  * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
00015 
00016 #ifndef _ParamH_
00017 #define _ParamH_
00018 
00019 #include "String.hpp"
00020 
00021 //  Get routines:
00023 String ParamGetString(const String &s, const String &def);
00024 String ParamGetString(const String &s, String &value, const String &def);
00025 String ParamGetString(const String &s);
00026 int    ParamGet(const String &s, String &value);
00027 int    ParamGet(const String &s, String &value, const String &def);
00028 int    ParamGet(const String &s, int &value);
00029 int    ParamGet(const String &s, int &value, const int &def);
00030 int    ParamGet(const String &s, double &value);
00031 int    ParamGet(const String &s, double &value, const double &def);
00032 int    ParamGet(const String &s, float &value);
00033 int    ParamGet(const String &s, float &value, const float &def);
00034 int    ParamGetInt(const String &s, int def);
00035 int    ParamGetBit(const String &s, int def);
00036 double ParamGetDouble(const String &s, double def);
00037 float  ParamGetFloat(const String &s, float def);
00038 
00039 //  Checkpointing:
00041 int    ParamCheckpointed (void);
00042 void   ParamCheckpoint (void);
00043 
00044 //  Miscellaneous:
00046 void   ParamDump (ostream &os);
00047 void   ParamPushPrefix (const String &s);
00048 void   ParamPopPrefix (void);
00049 int    ParamPushFile (const String &s);
00050 String ParamPopFile (void);
00052 void  ParamDisplay();
00053 
00054 #endif

Generated at Fri Jul 26 18:22:27 2002 for LEMUR by doxygen1.2.4 written by Dimitri van Heesch, © 1997-2000