Click or drag to resize

PfsHelper Class

As the PFSDllWrapper is to difficult to use, PfsHelper is created to provide combined methods to read/write pfs files more easilly.
Inheritance Hierarchy
SystemObject
  DHI.PFSPfsHelper

Namespace:  DHI.PFS
Assembly:  DHI.PFS (in DHI.PFS.dll) Version: 19.0.0.0 (11.1.1.1111)
Syntax
public class PfsHelper

The PfsHelper type exposes the following members.

Constructors
  NameDescription
Public methodPfsHelper
Initializes a new instance of the PfsHelper class
Top
Methods
  NameDescription
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodStatic memberPfsAddSection
Start a new section within the scope of a target.
Public methodStatic memberPfsAddTarget
Add a new target (top-level section) to a parameter file object.
Public methodStatic memberPfsClose
Terminate the access to a parameter file data structure and free the associated internal storage.
Public methodStatic memberPfsCreate
Create an empty parameter structure to be used for writing a parameter file, or for creating a parameter definition.
Public methodStatic memberPfsEndSection
Terminate a target or a section.
Public methodStatic memberPfsGetClobItem
Get the next Clob parameter as a PFSParameter handle, where you can query it for the type of parameter data.
Public methodStatic memberPfsGetDouble(IntPtr)
Return the double (8-byte double precision floating point) value from the pfsNode (parameter) passed as argument.
Public methodStatic memberPfsGetDouble(IntPtr, Int32)
Return the double (8-byte double precision floating point) value from the keyword name passed as argument.
Public methodStatic memberPfsGetErrMsg
This method is a combination of pfsGetErrorGlb and pfsGetErrorMessageFromErrorCode
Public methodStatic memberPfsGetErrMsgFromPfsClob
Extract erroe message from a pfs clob
Public methodStatic memberPfsGetKeyword
Returns a reference to the n'th instance of a specific keyword name of the pfsNode (target/section) passed as argument.
Public methodStatic memberPfsGetKeywordNum
Return the number of keywords connected to the pfsNode passed as argument
Public methodStatic memberPfsGetParam(IntPtr, Int32)
Return a reference to the n'th parameter of the pfsNode (keyword) passed as argument.
Public methodStatic memberPfsGetParam(IntPtr, String, Int32, Int32)
Returns a reference to the m'th parameter of the n'th instance of a specific keyword name of the pfsNode (target/section) passed as argument.
Public methodStatic memberCode examplePfsGetSection(IntPtr, Int32)
Return a reference to the n'th section of the pfsNode (target/section) passed as argument.
Public methodStatic memberCode examplePfsGetSection(IntPtr, String, Int32)
Returns a reference to the n'th instance of a specific subsection name of the pfsNode (target/section) passed as argument.
Public methodStatic memberPfsGetSectionByHandler
Returns the section specified in the sectionPath parameter
Public methodStatic memberCode examplePfsGetTarget
Return a reference to the n'th instance of a specific target name of a parameter file.
Public methodStatic memberPfsIsBool
Indicates if the pfsNode passed as argument refers to a string value.
Public methodStatic memberPfsIsDouble
Indicates if the pfsNode passed as argument refers to a double (8-byte double precision floating point) parameter value.
Public methodStatic memberPfsIsFilename
Return true of the node is a filename
Public methodStatic memberPfsIsFloat
Indicates if the pfsNode passed as argument refers to a float (4-byte single precision floating point) parameter value.
Public methodStatic memberPfsIsInt
Indicates if the pfsNode passed as argument refers to an integer parameter value.
Public methodStatic memberPfsIsString
Indicates if the pfsNode passed as argument refers to a string value.
Public methodStatic memberPfsLoadFile
Open an existing parameter file and create an internal data structure for further processing.
Public methodStatic memberPfsReadClobT
Read T valued data from clob
Public methodStatic memberPfsReadClobFilename
Extract a Filename from current CLOB
Public methodStatic memberPfsReadFilename(IntPtr)
Get the filename from the node
Public methodStatic memberPfsReadFilename(IntPtr, String, Int32, Int32, String)
Return the filename of paramNo'th parameter of keywordNo'th keyword of the keyword in pfsSect
Public methodStatic memberPfsReadParamT(IntPtr, T)
Return T typed value from the given pointer to parameter
Public methodStatic memberPfsReadParamT(IntPtr, String, Int32)
Return all parameters as a T typed array of the given keyword name and index
Public methodStatic memberPfsReadParamT(IntPtr, String, Int32, Int32, T)
Return the T typed value of paramNo'th parameter of keywordNo'th keyword of the keyword in pfsSect
Public methodStatic memberPfsReadString
Return a string value of the pfsNode (parameter) passed as argument.
Public methodStatic memberPfsWrite
Write the contents of a parameter file object using the parameter file syntax
Public methodStatic memberPfsWriteClob(IntPtr, Boolean, Object)
Write all values in the array to the clob
Public methodStatic memberPfsWriteClob(IntPtr, String, Object)
Write all values in the array to the clob in the created keyword
Public methodStatic memberPfsWriteClobFilename(IntPtr, Boolean, String)
Write filename to the clob
Public methodStatic memberPfsWriteClobFilename(IntPtr, String, String)
Write filename to the clob in the new created keyword
Public methodStatic memberPfsWriteFilename(IntPtr, String)
Write a null-termindated character string to keyword

Restrictions: The function is only valid within the scope of a keyword. In a Pascal program, the use of null-terminated strings must be enforced using a compiler option.

Public methodStatic memberPfsWriteFilename(IntPtr, String, String)
Write a null-termindated character string to section

Restrictions: The function is only valid within the scope of a section.

Public methodStatic memberPfsWriteKeyword
Write all values in the array to the keyword
Public methodStatic memberPfsWriteParams
Write all values in the array to the parameter
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
See Also