Define CBCommandLine class.
More...
#include <Coconut/Coconut.h>
#include "CBForwarders.h"
Go to the source code of this file.
Detailed Description
Define CBCommandLine class.
- Copyright
- Copyright (C) 2012 Steel Wheels Project
Function Documentation
void CBAddArgumentToCommandLine |
( |
struct CBCommandLine * |
dst, |
|
|
struct CNString * |
src |
|
) |
| |
Add argument to command line info.
- Parameters:
-
dst | Destination command line info |
src | Argument to be added |
Add option to command line info.
- Parameters:
-
dst | Destination command line info |
src | Option to be added |
struct CBCommandLine* CBAllocateCommandLine |
( |
const char * |
appname, |
|
|
struct CNResource * |
resource |
|
) |
| [read] |
Allocate command line information.
- Returns:
- Allocated command line
- Parameters:
-
appname | Name of application |
resource | Resource to allocate command line information |
static const char* CBApplicationNameInCommandLine |
( |
const struct CBCommandLine * |
src | ) |
[inline, static] |
Get application name from the command line.
- Returns:
- Application name
- Parameters:
-
static struct CNListItem* CBFirstArgumentInCommandLine |
( |
const struct CBCommandLine * |
src | ) |
[static, read] |
Get 1st item in the argument list.
- Return values:
-
item | 1st item in the argument list |
NULL | There are no item in the argument list |
- Parameters:
-
static struct CNListItem* CBFirstOptionInCommandLine |
( |
const struct CBCommandLine * |
src | ) |
[static, read] |
Get 1st item in the option list.
- Return values:
-
item | 1st item in the option list |
NULL | There are no item in the option list |
- Parameters:
-
static void CBReleaseCommandLine |
( |
struct CBCommandLine * |
dst | ) |
[inline, static] |
Release command line info.
- Parameters:
-
dst | Destination command line info |