Cobalt Framework  beta
Console application support
Functions
CBCommandLineParser.h File Reference

Define parser function for CBCommandLine. More...

#include <Coconut/Coconut.h>
#include "CBError.h"
#include "CBForwarders.h"

Go to the source code of this file.

Functions

struct CBCommandLineCBParseCommandLine (const struct CBCommandLineForm *form, unsigned int argc, const char *argv[], struct CNResource *resource, struct CBError *error)
 Parse command line and allocate CBCommandLine to store result.

Detailed Description

Define parser function for CBCommandLine.

Copyright
Copyright (C) 2012 Steel Wheels Project

Function Documentation

struct CBCommandLine* CBParseCommandLine ( const struct CBCommandLineForm form,
unsigned int  argc,
const char *  argv[],
struct CNResource *  resource,
struct CBError error 
) [read]

Parse command line and allocate CBCommandLine to store result.

Return values:
cmdCommand line object
NULLParse failed. The error information will be stored to "error" parameter
Parameters:
formForm of command line
argcCount of command line arguments
argvArray of command line arguments
resourceResource to allocate command line information
errorError information. If you give NULL, no information is stored
 All Classes Files Functions Variables Enumerations Enumerator Defines