Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members

colvarparse.h File Reference

Base class containing parsing functions; all objects which need to parse input inherit from this. More...

#include <cstring>
#include <string>
#include "colvarmodule.h"
#include "colvarvalue.h"

Go to the source code of this file.

Classes

class  colvarparse
class  colvarparse::read_block
 Helper class to read a block of the type "key { ... }" from a stream and store it in a string. More...

Defines

#define _get_keyval_scalar_proto_(_type_, _def_value_)
#define _get_keyval_vector_proto_(_type_, _def_value_)


Detailed Description

Base class containing parsing functions; all objects which need to parse input inherit from this.

Parsing functions for collective variables

/**

Definition in file colvarparse.h.


Define Documentation

#define _get_keyval_scalar_proto_ _type_,
_def_value_   ) 
 

Value:

bool get_keyval (std::string const &conf,                     \
                   char const *key,                             \
                   _type_ &value,                               \
                   _type_ const &def_value = _def_value_,       \
                   Parse_Mode const parse_mode = parse_normal)

Definition at line 92 of file colvarparse.h.

#define _get_keyval_vector_proto_ _type_,
_def_value_   ) 
 

Value:

bool get_keyval (std::string const &conf,                             \
                   char const *key,                                     \
                   std::vector<_type_> &values,                         \
                   std::vector<_type_> const &def_values =              \
                   std::vector<_type_> (0, static_cast<_type_>(_def_value_)),                \
                   Parse_Mode const parse_mode = parse_normal)

Definition at line 108 of file colvarparse.h.


Generated on Sun Nov 22 04:07:46 2009 for NAMD by  doxygen 1.3.9.1