ProtoMol - an object-oriented component based framework for Molecular Dynamics simulations.

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

InputValue.h File Reference

#include "Value.h"
#include "Configuration.h"
#include "Report.h"

Namespaces

namespace  ProtoMol

Defines

#define declareInputValue(NAME, TYPE, CONSTRAINT)
#define defineInputValue(NAME, KEYWORD)
#define defineInputValueWithAliases(NAME, KEYWORD, ALIASES)
#define defineInputValueAndText(NAME, KEYWORD, TEXT)
#define defineInputValueWithAliasesAndText(NAME, KEYWORD, ALIASES, TEXT)

Define Documentation

#define declareInputValue NAME,
TYPE,
CONSTRAINT   ) 
 

Value:

struct NAME##Identifier {                                                                   \
    virtual ~NAME##Identifier(){}                                                             \
    static const std::string keyword;                                                         \
    static const std::vector<std::string> aliases;                                            \
    static const std::string text;                                                            \
  };                                                                                          \
  typedef InputValue<NAME##Identifier,ValueType::TYPE,ConstraintValueType::CONSTRAINT> NAME

#define defineInputValue NAME,
KEYWORD   ) 
 

Value:

const string NAME##Identifier::keyword(KEYWORD);                  \
  const vector<string> NAME##Identifier::aliases;                   \
  const string NAME##Identifier::text("")

#define defineInputValueAndText NAME,
KEYWORD,
TEXT   ) 
 

Value:

const string NAME##Identifier::keyword(KEYWORD);                  \
  const vector<string> NAME##Identifier::aliases;                   \
  const string NAME##Identifier::text(TEXT)

#define defineInputValueWithAliases NAME,
KEYWORD,
ALIASES   ) 
 

Value:

const string NAME##Identifier::keyword(KEYWORD);                                                    \
  const vector<string> NAME##Identifier::aliases(static_cast<vector<string> >(Vector<string>ALIASES));\
  const string NAME##Identifier::text("")

#define defineInputValueWithAliasesAndText NAME,
KEYWORD,
ALIASES,
TEXT   ) 
 

Value:

const string NAME##Identifier::keyword(KEYWORD);                                                    \
  const vector<string> NAME##Identifier::aliases(static_cast<vector<string> >(Vector<string>ALIASES));\
  const string NAME##Identifier::text(TEXT)
Last update: . GNU GENERAL PUBLIC LICENSE, copyrighted by the University of Notre Dame and the University of Bergen, Norway.