Flutter Engine
fml::CommandLine::Option Struct Reference

#include <command_line.h>

Public Member Functions

 Option ()
 
 Option (const std::string &name)
 
 Option (const std::string &name, const std::string &value)
 
bool operator== (const Option &other) const
 
bool operator!= (const Option &other) const
 

Public Attributes

std::string name
 
std::string value
 

Detailed Description

Definition at line 60 of file command_line.h.

Constructor & Destructor Documentation

◆ Option() [1/3]

fml::CommandLine::Option::Option ( )
inline

Definition at line 61 of file command_line.h.

References name, and value.

61 {}

◆ Option() [2/3]

fml::CommandLine::Option::Option ( const std::string &  name)
explicit

Definition at line 11 of file command_line.cc.

11 : name(name) {}

◆ Option() [3/3]

fml::CommandLine::Option::Option ( const std::string &  name,
const std::string &  value 
)

Definition at line 13 of file command_line.cc.

References fml::CommandLine::CommandLine().

14  : name(name), value(value) {}

Member Function Documentation

◆ operator!=()

bool fml::CommandLine::Option::operator!= ( const Option other) const
inline

Definition at line 68 of file command_line.h.

References operator==().

68 { return !operator==(other); }
bool operator==(const Option &other) const
Definition: command_line.h:65

◆ operator==()

bool fml::CommandLine::Option::operator== ( const Option other) const
inline

Definition at line 65 of file command_line.h.

References name, and value.

Referenced by operator!=(), and fml::CommandLine::operator!=().

65  {
66  return name == other.name && value == other.value;
67  }

Member Data Documentation

◆ name

std::string fml::CommandLine::Option::name

Definition at line 70 of file command_line.h.

Referenced by fml::CommandLine::operator!=(), operator==(), and Option().

◆ value

std::string fml::CommandLine::Option::value

Definition at line 71 of file command_line.h.

Referenced by fml::CommandLine::operator!=(), operator==(), and Option().


The documentation for this struct was generated from the following files: