NDEVR
API Documentation
CommandLineRepresentation

Represents a parsed command-line invocation with a command name and its arguments. More...

Collaboration diagram for CommandLineRepresentation:
[legend]

Public Member Functions

 CommandLineRepresentation ()
 Default constructor.
 CommandLineRepresentation (const char *command)
 Constructs from a C-string command line.
 CommandLineRepresentation (const String &command)
 Constructs from a full command-line string, parsing command and arguments.
String toString () const
 Converts back to a single command-line string.
void toString (String &line) const
 Appends the command-line representation to an existing string.

Public Attributes

Buffer< Stringargs
 The command-line arguments.
String command
 The command or executable name.

Detailed Description

Represents a parsed command-line invocation with a command name and its arguments.

Definition at line 20 of file BuildActionDefinition.h.

Constructor & Destructor Documentation

◆ CommandLineRepresentation() [1/2]

CommandLineRepresentation::CommandLineRepresentation ( const String & command)

Constructs from a full command-line string, parsing command and arguments.

Parameters
[in]commandThe command-line string to parse.

References command.

◆ CommandLineRepresentation() [2/2]

CommandLineRepresentation::CommandLineRepresentation ( const char * command)

Constructs from a C-string command line.

Parameters
[in]commandThe command-line string to parse.

References command.

Member Function Documentation

◆ toString() [1/2]

String CommandLineRepresentation::toString ( ) const

Converts back to a single command-line string.

Returns
The assembled command-line string.

◆ toString() [2/2]

void CommandLineRepresentation::toString ( String & line) const

Appends the command-line representation to an existing string.

Parameters
[in]lineThe string to append to.

The documentation for this class was generated from the following file: