/** \file
 *
 *  Contains the ParameterHandler class declaration.
 *
 *  Copyright (c) 2007,2008,2009 MBARI
 *  MBARI Proprietary Information.  All Rights Reserved
 */

#ifndef PARAMETERHANDLER_H_
#define PARAMETERHANDLER_H_

#include <stddef.h>

/**
 *  Utility class for handling parameter lists (like
 *  varName1=value1&varName2=value2...)
 *
 *  \ingroup modules_simulator
 */
class ParameterHandler
{
public:
    static size_t ChopParameterList( char* list );
    static char* GetParameter( const char* name,
                               const char* list, int listLength );
    static double AsDouble( const char* name,
                            const char* list, int listLength );
    static bool GetDouble( double& valueToSet, const char* name,
                           const char* list, int listLength );
};

#endif /*PARAMETERHANDLER_H_*/
