Futilities/human/lib: Difference between revisions
< Futilities | human
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
(2 intermediate revisions by the same user not shown) | |||
Line 3: | Line 3: | ||
! class name !! abs? !! root? !! purpose | ! class name !! abs? !! root? !! purpose | ||
|- | |- | ||
| {{l/sub| | | {{l/sub|caAppBase}} || Y || Y || Application class | ||
|- | |- | ||
| {{l/sub| | | {{l/sub|cnFileInfo}} || n || || wrapper for <code>stat()</code>/<code>lstat()</code> results | ||
|- | |- | ||
| {{l/sub| | | {{l/sub|cFileSpec}} || n || || manages construction of file-paths while spidering a folder-tree | ||
|- | |- | ||
| {{l/sub|cMatchResult}} || || || wraps the result of a string-matching operation | | {{l/sub|cFolderator}} || n || || iterates a caMatch object through a folder-tree | ||
|- | |||
| {{l/sub|cMatchResult}} || n || || wraps the result of a string-matching operation | |||
|- | |- | ||
| {{l/sub|caMatch}} || Y || Y || Matcher root class. Matchers determine what constitutes a "match" and what do do when one happens | | {{l/sub|caMatch}} || Y || Y || Matcher root class. Matchers determine what constitutes a "match" and what do do when one happens | ||
Line 25: | Line 27: | ||
| {{l/sub|cPathRoot}} || n || n || a caPathPiece that ''is'' the path-root (so no point in giving it a name) | | {{l/sub|cPathRoot}} || n || n || a caPathPiece that ''is'' the path-root (so no point in giving it a name) | ||
|- | |- | ||
| {{l/sub|csTTY}} || || || slightly-intelligent handling | | {{l/sub|csTTY}} || n || || slightly-intelligent static class for handling TTY output | ||
|- | |- | ||
| {{l/sub|cLog}} || || || log-file operations | | {{l/sub|cLog}} || n || || log-file operations | ||
|- | |- | ||
| {{l/sub|cOpt}} || n || Y || wraps | | {{l/sub|cOpt}} || n || Y || wraps the result of examining a single app option vs. what's in the command-line (basically just a key-value pair) | ||
|- | |- | ||
| {{l/sub|caOptsBase}} || Y || Y || base class for parsing and managing command-line options | | {{l/sub|caOptsBase}} || Y || Y || base class for parsing and managing command-line options | ||
|} | |} |
Latest revision as of 14:47, 27 September 2022
Classes
class name | abs? | root? | purpose |
---|---|---|---|
caAppBase | Y | Y | Application class |
cnFileInfo | n | wrapper for stat() /lstat() results
| |
cFileSpec | n | manages construction of file-paths while spidering a folder-tree | |
cFolderator | n | iterates a caMatch object through a folder-tree | |
cMatchResult | n | wraps the result of a string-matching operation | |
caMatch | Y | Y | Matcher root class. Matchers determine what constitutes a "match" and what do do when one happens |
caMatchStandard | Y | n | Matcher class with some common defaults |
cPathCap | n | n | a caPathNamed where we know the name of the final path-part |
cPathBlank | n | n | a caPathNamed where we don't know the final path-part's name at first; used for directory iteration |
caPathNamed | Y | a caPathPiece that isn't the path-root | |
caPathPiece | Y | Y | class for objectifying filespecs |
cPathRoot | n | n | a caPathPiece that is the path-root (so no point in giving it a name) |
csTTY | n | slightly-intelligent static class for handling TTY output | |
cLog | n | log-file operations | |
cOpt | n | Y | wraps the result of examining a single app option vs. what's in the command-line (basically just a key-value pair) |
caOptsBase | Y | Y | base class for parsing and managing command-line options |