Public Functions | |
| public Options | new (string optfile) |
| Creates a new Options object checking optfile. | |
| public anonHash | getCompleteConfig () |
| Parses the whole configuration file and returns it as a anonymous perl hash. | |
| public string | getProperty (string attributeName) |
| Searches attributeName in the configuration file and retunes the value pre and post whitespace deleted or sets Merror. | |
Private Functions | |
| private void | splitCfgLine (string line, anonHash hashRef) |
| Splits a configuration line refrenced by line into a hierarchic anonHash hashRef. | |
| private string | delWhitespaces (string what) |
| Deletes all leading and trainling whitespaces from what. | |
| private void | checkOptfile () |
| Checks if a optionfile is given and if it is readable. | |
| private string Options::delWhitespaces | ( | string | what | ) |
Deletes all leading and trainling whitespaces from what.
| what | String where to delete |
| public anonHash Options::getCompleteConfig | ( | ) |
Parses the whole configuration file and returns it as a anonymous perl hash.
| public string Options::getProperty | ( | string | attributeName | ) |
Searches attributeName in the configuration file and retunes the value pre and post whitespace deleted or sets Merror.
| attributeName | The attribute name |
| public Options Options::new | ( | string | optfile | ) |
| private void Options::splitCfgLine | ( | string | line, | |
| anonHash | hashRef | |||
| ) |
Splits a configuration line refrenced by line into a hierarchic anonHash hashRef.
| line | A string holding the actual configurationfile line | |
| hashRef | A hash reference where the structure will be mapped |
1.5.8