Author: Steven Lewis
This page describes how to add new commands to the resfile in Rosetta. A command is an object with a method that will make changes to the PackerTask for ONE single residue at a time.
The resfile reader parses each record into whitespace-delimited chunks of information, and attempts to match them against a group of available commands (which must be known at compile time). It then passes the necessary information to an instantiation of a command object, which applies whatever the command is supposed to do.
In coding details, the interfaces are as follows:
The object should have (at least) two methods:
Command objects should treat the input line as constant. They should increment the input line position as appropriate (++ once to account for the name itself, ++ again for each argument read and "used up").
Of course, the resfile only exists to modify the PackerTask. You will also have to modify the PackerTask_, or some child class, to include the set functions and data members you wish to modify.