Ninja
Public Types | Public Member Functions | Private Attributes | List of all members
EdgeEnv Struct Reference

An Env for an Edge, providing $in and $out. More...

Inheritance diagram for EdgeEnv:
Inheritance graph
[legend]

Public Types

enum  EscapeKind { kShellEscape, kDoNotEscape }
 

Public Member Functions

 EdgeEnv (Edge *edge, EscapeKind escape)
 
virtual string LookupVariable (const string &var)
 
string MakePathList (vector< Node *>::iterator begin, vector< Node *>::iterator end, char sep)
 Given a span of Nodes, construct a list of paths suitable for a command line. More...
 

Private Attributes

Edgeedge_
 
EscapeKind escape_in_out_
 
vector< string > lookups_
 
bool recursive_
 

Detailed Description

An Env for an Edge, providing $in and $out.

Definition at line 285 of file graph.cc.

Member Enumeration Documentation

◆ EscapeKind

Enumerator
kShellEscape 
kDoNotEscape 

Definition at line 286 of file graph.cc.

Constructor & Destructor Documentation

◆ EdgeEnv()

EdgeEnv::EdgeEnv ( Edge edge,
EscapeKind  escape 
)
inline

Definition at line 288 of file graph.cc.

Member Function Documentation

◆ LookupVariable()

string EdgeEnv::LookupVariable ( const string &  var)
virtual

◆ MakePathList()

string EdgeEnv::MakePathList ( vector< Node *>::iterator  begin,
vector< Node *>::iterator  end,
char  sep 
)

Given a span of Nodes, construct a list of paths suitable for a command line.

Definition at line 341 of file graph.cc.

References escape_in_out_, GetShellEscapedString(), GetWin32EscapedString(), and kShellEscape.

Referenced by LookupVariable().

Member Data Documentation

◆ edge_

Edge* EdgeEnv::edge_
private

Definition at line 300 of file graph.cc.

Referenced by LookupVariable().

◆ escape_in_out_

EscapeKind EdgeEnv::escape_in_out_
private

Definition at line 301 of file graph.cc.

Referenced by MakePathList().

◆ lookups_

vector<string> EdgeEnv::lookups_
private

Definition at line 299 of file graph.cc.

Referenced by LookupVariable().

◆ recursive_

bool EdgeEnv::recursive_
private

Definition at line 302 of file graph.cc.

Referenced by LookupVariable().


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