Command Line Parsing Module

Source For Parser

SYSTEM "Software Product License" "REGISTER"

FIELD File ""
    PARAMETER	filename		String
FIELD Key "key"
    PARAMETER	password_file		String
    PARAMETER	key			String
FIELD Body "body"
    PARAMETER	body_file		List [String]
FIELD Print "print"
    PARAMETER	print			Boolean

INTERFACE SIGN
    ONE	    File
    ONE	    Key
    MANY    Body

INTERFACE VALIDATE
    ONE	    File
    ONE	    Key
    MANY    Body

Data Structure Generated

typedef struct _SIGN {
    String	filename;
    String	password_file;
    String	key;
    List	body_file;
    } SIGN;

typedef struct _VALIDATE {
    String	filename;
    String	password_file;
    String	key;
    List	body_file;
    } VALIDATE;

typedef struct _REGISTER {
    int	  _is_a;
    union {
        struct _SIGN        *SIGN;
        struct _VALIDATE    *VALIDATE;
        }is_a;
    } REGISTER;

Application Programming Interface

REGISTER_create (REGISTER **object)
Create an instance of the REGISTER object.
REGISTER_format (REGISTER *object)
Print object to the screen in RFC-822 format.
REGISTER_parse_arguments (int mode, int argc, char *argv[], REGISTER **object)
Parse the arguments specified as if presented from the command line and return the result as object. The mode flag may have the values ARGS_mode_UNIX for UNIX style arguments, ARGS_mode_VMS for VMS style arguments or ARGS_mode_SYSTEM for the default argument mode of the system concerned.