The Machine Perception Toolbox

[Introduction]- [News]- [Download]- [Screenshots]- [Manual (pdf)]- [Forums]- [API Reference]- [Repository ]

 

Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

iniconfig.h

Go to the documentation of this file.
00001 /*
00002  *  iniconfig.h
00003  *  
00004  *
00005  *  Created by Josh Susskind 2003.
00006  *  Copyright (c) 2003 Machine Perception Laboratory
00007  *  University of California San Diego.
00008  *  Please read the disclaimer and notes about redistribution
00009  *  at the end of this file.
00010  *
00011  *  Authors: Josh Susskind
00012  */
00013 #ifndef __MP_CONFIG_H__
00014 #define __MP_CONFIG_H__
00015 
00016 #include "preprocessor.h"
00017 #include "Configuration/configuration.h"
00018 
00019 /* ================================================================ */
00020 
00021 class IniConfig
00022 {
00023         MPConfigure conf;
00024 
00025 public:
00026         IniConfig() {
00027                 conf.record_string("ip", "127.0.0.1");
00028                 conf.record_int("port", "12000");
00029                 conf.record_int("showprobs", "0");
00030                 conf.record_int("beeps", "0");
00031                 conf.record_int("socketio", "0");
00032                 conf.record_int("showcolor", "1");
00033                 conf.record_int("showmpi", "1");
00034                 conf.record_int("facebinwidth", "16");
00035                 conf.record_int("backbinwidth", "16");
00036                 conf.record_int("colorupdate", "1");
00037                 conf.record_int("noskip", "0");
00038                 conf.record_int("label", "0");
00039                 conf.record_int("writebmp", "0");
00040                 conf.record_int("savehistograms", "0");
00041                 conf.record_string("facehist", "facehist.txt");
00042                 conf.record_string("backhist", "backhist.txt");
00043                 conf.load("client.ini");
00044         }
00045 };
00046 
00047 /* ================================================================ */
00048 
00049 #endif // __MP_CONFIG_H__
00050 
00051 
00052 
00053 /*
00054  * 
00055  * Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
00056  * 
00057  *    1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
00058  *    2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
00059  *    3. The name of the author may not be used to endorse or promote products derived from this software without specific prior written permission.
00060  * 
00061  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
00062  * 
00063  */

Generated on Mon Nov 8 17:07:36 2004 for MPT by  doxygen 1.3.9.1