Public Member Functions | Private Types | Private Member Functions | Static Private Member Functions | Private Attributes
hayai::TestParametersDescriptor Class Reference

Test parameters descriptor. More...

#include <hayai_test_descriptor.hpp>

List of all members.

Public Member Functions

const std::vector
< TestParameterDescriptor > & 
Parameters () const
 TestParametersDescriptor ()
 TestParametersDescriptor (const char *rawDeclarations, const char *rawValues)

Private Types

enum  QuotingState { Unquoted, SingleQuoted, DoubleQuoted }
 Quoting state. More...

Private Member Functions

TestParameterDescriptor ParseDescriptor (const std::string &raw)
 Parse parameter declaration.

Static Private Member Functions

static std::vector< std::string > ParseCommaSeparated (const char *separated)
 Parse comma separated parentherized value.
static std::string TrimmedString (const char *start, const char *end)
 Trimmed string.

Private Attributes

std::vector
< TestParameterDescriptor
_parameters

Detailed Description

Test parameters descriptor.

Definition at line 39 of file hayai_test_descriptor.hpp.


Member Enumeration Documentation

Quoting state.

Enumerator:
Unquoted 

Unquoted.

SingleQuoted 

Single quoted.

DoubleQuoted 

Double quoted.

Definition at line 43 of file hayai_test_descriptor.hpp.


Constructor & Destructor Documentation

Definition at line 259 of file hayai_test_descriptor.hpp.

hayai::TestParametersDescriptor::TestParametersDescriptor ( const char *  rawDeclarations,
const char *  rawValues 
) [inline]

Definition at line 265 of file hayai_test_descriptor.hpp.


Member Function Documentation

Definition at line 323 of file hayai_test_descriptor.hpp.

static std::vector<std::string> hayai::TestParametersDescriptor::ParseCommaSeparated ( const char *  separated) [inline, static, private]

Parse comma separated parentherized value.

Parameters:
separatedSeparated values as "(..[, ..])".
Returns:
the individual values with white space trimmed.

Definition at line 104 of file hayai_test_descriptor.hpp.

TestParameterDescriptor hayai::TestParametersDescriptor::ParseDescriptor ( const std::string &  raw) [inline, private]

Parse parameter declaration.

Parameters:
rawRaw declaration.

Definition at line 179 of file hayai_test_descriptor.hpp.

static std::string hayai::TestParametersDescriptor::TrimmedString ( const char *  start,
const char *  end 
) [inline, static, private]

Trimmed string.

Parameters:
startStart character.
endCharacter one position beyond end.

Definition at line 62 of file hayai_test_descriptor.hpp.


Member Data Documentation

Definition at line 328 of file hayai_test_descriptor.hpp.


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


hayai
Author(s): Nick Bruun
autogenerated on Thu Jun 6 2019 18:13:44