Simpatico  v1.10
Command.cpp
1 /*
2 * Simpatico - Simulation Package for Polymeric and Molecular Liquids
3 *
4 * Copyright 2010 - 2017, The Regents of the University of Minnesota
5 * Distributed under the terms of the GNU General Public License.
6 */
7 
8 #include "Command.h"
9 #include <util/archives/Serializable_includes.h>
10 
11 namespace McMd
12 {
13 
14  using namespace Util;
15 
16  /*
17  * Constructor.
18  */
19  Command::Command(std::string name)
20  : name_(name)
21  {}
22 
23  /*
24  * Default destructor.
25  */
27  {}
28 
29  /*
30  * Attempt to match a string to the name identifier for this command.
31  */
32  bool Command::match(std::string name)
33  { return (name == name_); }
34 
35 }
Utility classes for scientific computation.
Definition: accumulators.mod:1
virtual bool match(std::string name)
Compare a string to the name of this command.
Definition: Command.cpp:32
virtual ~Command()
Destructor.
Definition: Command.cpp:26
Single-processor Monte Carlo (MC) and molecular dynamics (MD).
Command(std::string name)
Constructor.
Definition: Command.cpp:19