picofuse-objc

NXEnvironment.h
Go to the documentation of this file.
1 
5 #pragma once
6 
27 @interface NXEnvironment : NXObject {
28 @private
29  int _argc;
30  char **_argv;
31  NXArray *_arguments;
32 }
33 
39 + (NXEnvironment *)environmentWithArgc:(int)argc argv:(char **)argv;
40 
44 - (id)initWithArgc:(int)argc argv:(char **)argv;
45 
56 - (NXMap *)parseFlags:(NXArray *)flags error:(NXString **)error;
57 
66 - (BOOL)writeUsageToStream:(NXStream *)stream flags:(NXArray *)flags;
67 
72 - (NXArray *)arguments;
73 
77 - (NXString *)name;
78 
82 - (NXString *)version;
83 
87 - (NXString *)system;
88 
92 - (NXString *)serial;
93 
94 @end
NXString * system()
Returns the system, such as "darwin", "linux" or a Pico board's name.
A stream of bytes, which can be read or written.
Definition: NXStream.h:38
Objects found by keys, which can be changed.
Definition: NXMap.h:31
NXString * version()
Returns the program's version, or nil.
NXArray * arguments()
Returns the NXString arguments after the flags, from the last parse, or an empty array if there hasn'...
bool BOOL
A Boolean value.
Definition: runtime.h:60
A string of UTF-8 text.
Definition: NXString.h:53
An ordered list of objects, which can be changed.
Definition: NXArray.h:26
The base class for objects in the Foundation framework.
Definition: NXObject.h:28
NXString * serial()
Returns the device's serial number, or nil.
struct objc_object * id
A pointer to an instance of a class.
Definition: runtime.h:18
The command line, and what the program and the system it runs on are.
Definition: NXEnvironment.h:27
NXString * name()
Returns the program's name.