ConfigurationParser.h

Go to the documentation of this file.
00001 
00002 /* ========================================================================
00003  * Copyright (c) 2006,
00004  * Institute for Computer Graphics and Vision
00005  * Graz University of Technology
00006  * All rights reserved.
00007  *
00008  * Redistribution and use in source and binary forms, with or without
00009  * modification, are permitted provided that the following conditions are
00010  * met:
00011  *
00012  * Redistributions of source code must retain the above copyright notice,
00013  * this list of conditions and the following disclaimer.
00014  *
00015  * Redistributions in binary form must reproduce the above copyright
00016  * notice, this list of conditions and the following disclaimer in the
00017  * documentation and/or other materials provided with the distribution.
00018  *
00019  * Neither the name of the Graz University of Technology nor the names of
00020  * its contributors may be used to endorse or promote products derived from
00021  * this software without specific prior written permission.
00022  *
00023  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
00024  * IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
00025  * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
00026  * PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER
00027  * OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
00028  * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
00029  * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
00030  * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
00031  * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
00032  * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
00033  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
00034  * ========================================================================
00035  * PROJECT: OpenTracker
00036  * ======================================================================== */
00043 /* ======================================================================= */
00044 
00045 #ifndef _CONFIGURATIONPARSER_H
00046 #define _CONFIGURATIONPARSER_H
00047 
00048 #include "../dllinclude.h"
00049 #include "../OpenTracker.h"
00050 
00051 
00052 namespace ot {
00053 
00054 
00055     class Context;
00056 
00058     typedef std::map<std::string, Node *> NodeMap;
00059 
00067     class ConfigurationParser
00068     {
00069     protected:
00070         ConfigurationParser(){};
00071     public:
00078         virtual ~ConfigurationParser(){};
00085         virtual Node * parseConfigurationFile(const std::string& filename)=0;
00086         virtual Node * parseConfigurationString(const char* xmlstring)=0;
00087 
00088     };
00089 
00090     ConfigurationParser * getConfigurationParser(Context & context_);
00091 
00092 }  // namespace ot
00093 
00094 
00095 #endif
00096 
00097 /* 
00098  * ------------------------------------------------------------
00099  *   End of ConfigurationParser.h
00100  * ------------------------------------------------------------
00101  *   Automatic Emacs configuration follows.
00102  *   Local Variables:
00103  *   mode:c++
00104  *   c-basic-offset: 4
00105  *   eval: (c-set-offset 'substatement-open 0)
00106  *   eval: (c-set-offset 'case-label '+)
00107  *   eval: (c-set-offset 'statement 'c-lineup-runin-statements)
00108  *   eval: (setq indent-tabs-mode nil)
00109  *   End:
00110  * ------------------------------------------------------------ 
00111  */

Generated on Wed Feb 28 15:18:48 2007 for NaviTrack by  doxygen 1.4.6