<commit_before>/* Begin CVS Header
   $Source: /Volumes/Home/Users/shoops/cvs/copasi_dev/copasi/commandline/COptions.h,v $
   $Revision: 1.6 $
   $Name:  $
   $Author: stupe $ 
   $Date: 2005/02/15 22:41:35 $
   End CVS Header */

/**
 *  COptions class.
 *  The class retrieves the options from the commandline and various files.
 *  The options as well as their type can be retreived by name.
 *  
 *  Created for Copasi by <NAME> 2002
 */

#ifndef COPASI_COptions
#define COPASI_COptions

#include <string>
#include <map>

class COptions
  {
    class COptionValue
      {
      public:
        typedef void valueType;

        // Attributes
      protected:
        valueType * mpValue;

        //Operations
      protected:
        COptionValue():
            mpValue(NULL)
        {CONSTRUCTOR_TRACE;}

      public:
        virtual ~COptionValue() {DESTRUCTOR_TRACE;}

        template< class CType > void setValue(const CType & value)
          {*(CType *) mpValue = value;}

        template< class CType > void getValue(CType & value) const
            {
              if (this && mpValue) value = *(CType *) mpValue;
              else value = CType();
            }
<commit_msg>Minor modifications while adding Custom File Dialog<commit_after>/* Begin CVS Header
   $Source: /Volumes/Home/Users/shoops/cvs/copasi_dev/copasi/commandline/COptions.h,v $
   $Revision: 1.7 $
   $Name:  $
   $Author: anuragr $ 
   $Date: 2005/08/19 21:16:16 $
   End CVS Header */

/**
 *  COptions class.
 *  The class retrieves the options from the commandline and various files.
 *  The options as well as their type can be retreived by name.
 *  
 *  Created for Copasi by <NAME> 2002
 */

#ifndef COPASI_COptions
#define COPASI_COptions

#include <string>
#include <map>
#include <vector>

#include "copasi.h"

class COptions
  {
    class COptionValue
      {
      public:
        typedef void valueType;

        // Attributes
      protected:
        valueType * mpValue;

        //Operations
      protected:
        COptionValue():
            mpValue(NULL)
        {CONSTRUCTOR_TRACE;}

      public:
        virtual ~COptionValue() {DESTRUCTOR_TRACE;}

        template< class CType > void setValue(const CType & value)
          {*(CType *) mpValue = value;}

        template< class CType > void getValue(CType & value) const
            {
              if (this && mpValue) value = *(CType *) mpValue;
              else value = CType();
            }

{'fraction_non_alphanumeric': 0.10199106054449411, 'fraction_numerical': 0.016253555465258026, 'mean_word_length': 2.1932555123216604, 'pattern_counts': {'":': 0, '<': 14, '<?xml version=': 0, '>': 14, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4306167', 'n_tokens_mistral': 804, 'n_tokens_neox': 761, 'n_words': 216}