ArcFM Desktop Developer Guide
Parser Class
Members 


Version: 10.2.1b and 10.2.1b SP1

Resource Center Home

Product Availability
ArcFM Desktop and ArcFM Engine
Required Licenses
ArcFM, Designer, ArcFM Viewer, ArcFM Engine, ArcFM Engine Editor, or ArcFM Viewer for ArcGIS Engine
.NET Assembly
Miner.System.dll
Parser for command line arguments.
Object Model
Parser Class
Syntax
'Declaration
 
Public NotInheritable Class Parser 
'Usage
 
Dim instance As Parser
public sealed class Parser 
Remarks

The parser specification is infered from the instance fields of the object specified as the destination of the parse. Valid argument types are: int, uint, string, bool, enums. Argument types of Array of these types are also valid.

Error checking options can be controlled by adding a ArgumentAttribute to the instance fields of the destination object. At most one field may be marked with the DefaultArgumentAttribute indicating that arguments without a '-' or '/' prefix will be parsed as that argument. If not specified then the parser will infer default options for parsing each instance field.

The default long name of the argument is the field name. The default short name is the first character of the long name. Long names and explicitly specified short names must be unique. Default short names will be used provided that the default short name does not conflict with a long name or an explicitly specified short name.

Arguments which are array types are collection arguments. Collection arguments can be specified multiple times.

Inheritance Hierarchy

System.Object
   Miner.CommandLine.Parser

Requirements

Target Platforms: Windows XP SP3 (32-bit and 64-bit), Windows 7 (32-bit and 64-bit)

Not all Operating Systems are supported on all products. Visit the ArcFM Solution Supported Versions page for full details.

See Also

Reference

Parser Members
Miner.CommandLine Namespace

 

 


Send Comment