Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F68954220
colvarscript.h
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sat, Jun 29, 15:40
Size
1 KB
Mime Type
text/x-c++
Expires
Mon, Jul 1, 15:40 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
18617557
Attached To
rLAMMPS lammps
colvarscript.h
View Options
/// -*- c++ -*-
#ifndef COLVARSCRIPT_H
#define COLVARSCRIPT_H
#include <string>
#include "colvarmodule.h"
#include "colvarvalue.h"
#include "colvarbias.h"
#include "colvarproxy.h"
#define COLVARSCRIPT_ERROR -1
#define COLVARSCRIPT_OK 0
class colvarscript {
private:
colvarproxy *proxy;
colvarmodule *colvars;
inline colvarscript() {} // no-argument construction forbidden
public:
friend class colvarproxy;
colvarscript(colvarproxy * p);
inline ~colvarscript() {}
/// If an error is caught by the proxy through fatal_error(), this is set to COLVARSCRIPT_ERROR
int proxy_error;
/// If an error is returned by one of the methods, it should set this to the error message
std::string result;
/// Run script command with given positional arguments
int run(int argc, char const *argv[]);
private:
/// Run subcommands on colvar
int proc_colvar(int argc, char const *argv[]);
/// Run subcommands on bias
int proc_bias(int argc, char const *argv[]);
/// Builds and return a short help
std::string help_string(void);
};
#endif
Event Timeline
Log In to Comment