Main Page   Namespace List   Class Hierarchy   Alphabetical List   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 extern "C" {
00022   #include "parameters.h"
00023 }
00024 //  Get routines:
00026 String ParamGetString(const String &s, const String &def);
00027 String ParamGetString(const String &s, String &value, const String &def);
00028 String ParamGetString(const String &s);
00029 int    ParamGet(const String &s, String &value);
00030 int    ParamGet(const String &s, String &value, const String &def);
00031 int    ParamGet(const String &s, int &value);
00032 int    ParamGet(const String &s, int &value, const int &def);
00033 int    ParamGet(const String &s, double &value);
00034 int    ParamGet(const String &s, double &value, const double &def);
00035 int    ParamGet(const String &s, float &value);
00036 int    ParamGet(const String &s, float &value, const float &def);
00037 int    ParamGetInt(const String &s, int def);
00038 int    ParamGetBit(const String &s, int def);
00039 double ParamGetDouble(const String &s, double def);
00040 float  ParamGetFloat(const String &s, float def);
00041 INT64  ParamGetLongLong(const String &s, INT64 def);
00042 
00043 //  Checkpointing:
00045 int    ParamCheckpointed (void);
00046 void   ParamCheckpoint (void);
00047 
00048 //  Miscellaneous:
00050 void   ParamDump (ostream &os);
00051 void   ParamPushPrefix (const String &s);
00052 void   ParamPopPrefix (void);
00053 int    ParamPushFile (const String &s);
00054 String ParamPopFile (void);
00056 void  ParamDisplay();
00057 
00058 #endif

Generated on Wed Nov 3 12:59:01 2004 for Lemur Toolkit by doxygen1.2.18