Define CBOption class.
More...
#include <Coconut/Coconut.h>
#include "CBForwarders.h"
Go to the source code of this file.
Detailed Description
Define CBOption class.
- Copyright
- Copyright (C) 2012 Steel Wheels Project
Function Documentation
void CBAddParameterToOption |
( |
struct CBOption * |
dst, |
|
|
struct CNString * |
src |
|
) |
| |
Add parameter to the option.
- Parameters:
-
dst | Destination command line option |
src | Source parameter for the option |
struct CBOption* CBAllocateOption |
( |
unsigned int |
optid, |
|
|
struct CNResource * |
resource |
|
) |
| [read] |
Allocate command line option.
- Returns:
- Allocated object
- Parameters:
-
optid | Option id |
resource | Resource to allocate the option |
static size_t CBCountOfParametersInOption |
( |
const struct CBOption * |
src | ) |
[inline, static] |
Get count of parameters in the option.
- Returns:
- Count of parameters
- Parameters:
-
static struct CNListItem* CBFirstParameterInOption |
( |
const struct CBOption * |
src | ) |
[static, read] |
Get 1st item in the parameter list.
- Return values:
-
item | 1st item in the parameter list |
NULL | There are no item in the parameter list |
- Parameters:
-
static unsigned int CBIdOfOption |
( |
const struct CBOption * |
src | ) |
[inline, static] |
Get option id of the option.
- Parameters:
-
static void CBReleaseOption |
( |
struct CBOption * |
src | ) |
[inline, static] |
Release the object.
- Parameters:
-
src | Source command line option |