DHI.PFS Namespace |
The DHI.PFS library can read, edit and write files in the DHI PFS format.
The PFS format is used by a majority of setup file formats for MIKE by DHI engines and tools. File extensions that use the PFS format include (the list here is not complete):
The important classes in the DHI.PFS namespace are:
Class | Description | |
---|---|---|
PFSBuilder |
The PFSBuilder is a class that can build a PFS structure
in a "line by line" manner.
| |
PFSClob |
Clob is short of Character Large Object.
A Clob can be used to store a multitude of parameters in a single PFS parameter e.g. storing vectors/matrices of coordinates. This can save space for the PFS file and improve performance of reading and handling the PFS file. Reading data from a Clob works as iterating over a list of parameters. Calling one of the Get methods will return the "current" parameter and forward the iterator to the next parameter in the Clob. The structure of the clob must be known beforehand, i.e. the number of Clob values and the order the different types of values in must match the order of methods called for retrieving the values. If that is not the case, an exception is thrown, i.e. if the next value in the Clob is a double, and the GetString method is called, an exception is thrown. | |
PFSDllWrapper |
Wrapper class for pfs2004.dll.
When possible, use instead the PFSFile, since it adds error checking and exceptions to the file handling. | |
PFSException |
Exception that is thrown in case of a failure in PFS system
or in the use of the PFS system.
| |
PFSExtensions |
Static class, providing a set of help or convenience functionality
in the form of extension methods.
| |
PFSFile |
A PFSFile object is the top level access to a PFS file.
| |
PFSKeyword |
A PFSKeword object contains a list of parameters.
Several PFSKeywords can have equal names and different parameters. | |
PFSParameter |
A PFSParameter object refers to one single parameter of a Keyword.
Every parameter contains one type of value in it. It is the users responsibility to call the get value function matching the type of the parameter. If the parameter is an integer, and ToDouble() is called, an exception is thrown. | |
PFSSection |
A PFSSection object represents a section in a PFS file.
A PFSSection can have other sections and keywords inside it. | |
PFSTokenReader |
Class for reading content of a PFS file.
It reads the PFS file token-by-token, when calling NextToken.
If data is associated with the token, these data can be retrieved using
GetTokenString.
|
Interface | Description | |
---|---|---|
IPFSBuilder |
The IPFSBuilder is an interface for building a PFS structure or file
in a "line by line" manner.
|
Delegate | Description | |
---|---|---|
pfsNodeCallback |
Call back to use with pfsExplore.
|
Enumeration | Description | |
---|---|---|
PFSErrorCode |
Error codes from PFS system
| |
PFSToken |
Tokens that can occur in a PFS file.
|