| | |
The PolChemDefSpec class provides metadata for accessing a given polymer chemistry definition's data on disk. More...
| Header: | #include <PolChemDefSpec.hpp> |
| PolChemDefSpec(const QString &name = QString()) | |
| ~PolChemDefSpec() | |
| QString | dirPath() |
| QString | getFilePath() const |
| const QString & | getName() const |
| void | setFilePath(const QString &file_path) |
| void | setName(const QString &name) |
| QString | m_filePath |
| QString | m_name |
See also PolChemDef.
Constructs a polymer chemistry definition specification instance using name as the PolChemDef name.
[noexcept] PolChemDefSpec::~PolChemDefSpec()Destroys the polymer chemistry definition specification instance.
Returns the absolute path to the polymer chemistry definition file.
If m_filePath is "protein-1-letter/protein-1-letter.xml", returns "<abspathtodir>/protein-1-letter"
Returns the path to the polymer chemistry definition file.
Returns the name of the polymer chemistry definition.
Sets the path to the polymer chemistry definition file to file_path.
Sets the name of the polymer chemistry definition.
This variable holds the path to the polymer chemistry defintion.
The path is relative to the polymer chemistry definitions directory in the data directory, as found in the catalogue files, like protein-1-letter/protein-1-letter.xml.
This variable holds the name of the polymer chemistry definition, like protein-1-letter or nucac, for example.
This name is typically identical to both the name of the directory where all the data defining this PolChemDef is stored and the name of the XML file that contains the definition itself.