picofuse-objc

Instance Methods | Class Methods | List of all members
NXArgument Class Reference

A flag which can be given on the command line, as –name or -n, which NXEnvironment parses. More...

#import <Foundation/Foundation.h>

Inheritance diagram for NXArgument:
Inheritance graph
[legend]
Collaboration diagram for NXArgument:
Collaboration graph
[legend]

Instance Methods

(NXString *) - name
 Returns the long name.
 
(NXString *) - shortName
 Returns the short name, or nil.
 
- Instance Methods inherited from NXObject
(void) - dealloc
 Frees the instance. More...
 
(NXZone *) - zone
 Returns the zone in which the instance was allocated. More...
 
(id) - retain
 Increases the retain count of the receiver. More...
 
(void) - release
 Decreases the retain count of the receiver. More...
 
(id) - autorelease
 Releases the receiver later, when the current autorelease pool of the thread is drained. More...
 
(id) - copy
 Returns a copy which can't be changed by anything else, which the caller owns and has to release. More...
 
(uintptr_t) - hash
 Returns a number for the object, which is the same for objects which are equal by isEqual:. More...
 
(NXString *) - description
 Returns a string which describes the instance, for logging. More...
 
- Instance Methods inherited from Object
(id) - init
 Initialize the instance, after allocation. More...
 
(Class) - class
 Returns the class of the instance. More...
 
(Class) - superclass
 Returns the superclass of the instance. More...
 
(BOOL) - isEqual:
 Compares the receiver to another object for equality. More...
 
(BOOL) - isKindOfClass:
 Returns a Boolean value that indicates whether the receiver is an instance of a given class. More...
 
(BOOL) - conformsTo:
 Checks if the receiver's class conforms to a protocol. More...
 
- Instance Methods inherited from <ObjectProtocol>
(BOOL) - respondsToSelector:
 Checks if the receiver responds to a selector. More...
 

Class Methods

(NXArgument *) + argumentWithName:short:
 Returns a bool flag, which is NO unless it's given. More...
 
(NXArgument *) + argumentWithName:short:default:
 Returns a flag whose type and default are a value's. More...
 
(NXArgument *) + argumentWithName:short:duration:
 Returns a duration flag, whose value is an NXNumber of nanoseconds. More...
 
- Class Methods inherited from NXObject
(id) + alloc
 Allocates a new instance in the default zone, or if there isn't one, with sys_calloc(). More...
 
(id) + allocWithZone:
 Allocates a new instance in a specific zone. More...
 
(id) + new
 Allocates and initializes a new instance, as [[cls alloc] init] does. More...
 
(NXString *) + description
 Returns the name of the class.
 
- Class Methods inherited from Object
(void) + initialize
 Performs one-time initialization for the class. More...
 
(Class) + class
 Returns the class object. More...
 
(Class) + superclass
 Returns the superclass of the class. More...
 
(BOOL) + conformsTo:
 Checks if the class conforms to a protocol. More...
 

Additional Inherited Members

- Protected Attributes inherited from Object
Class isa
 A pointer to the object's class structure. More...
 

Detailed Description

A flag which can be given on the command line, as –name or -n, which NXEnvironment parses.

Its type is its default's:

A bool is true when it's given. The others take a value, as –name=value or –name value.

Definition at line 25 of file NXArgument.h.

Method Documentation

◆ argumentWithName:short:()

+ (NXArgument *) argumentWithName: (NXString *)  name
short: (NXString *)  shortName 

Returns a bool flag, which is NO unless it's given.

Parameters
nameThe long name, without –.
shortNameThe short name, without -, or nil.
Returns
The flag, or nil if a name is empty.

◆ argumentWithName:short:default:()

+ (NXArgument *) argumentWithName: (NXString *)  name
short: (NXString *)  shortName
default: (id)  value 

Returns a flag whose type and default are a value's.

Parameters
nameThe long name, without –.
shortNameThe short name, without -, or nil.
valueThe default: an NXNumber, an NXString or an NXDate.
Returns
The flag, or nil if a name is empty, or the default is nil or of another class.

◆ argumentWithName:short:duration:()

+ (NXArgument *) argumentWithName: (NXString *)  name
short: (NXString *)  shortName
duration: (NXDuration)  value 

Returns a duration flag, whose value is an NXNumber of nanoseconds.

Parameters
nameThe long name, without –.
shortNameThe short name, without -, or nil.
valueThe default.
Returns
The flag, or nil if a name is empty.

The documentation for this class was generated from the following file: