Ninja
Public Types | Public Member Functions | Public 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...
 

Public Attributes

Edgeedge_
 
EscapeKind escape_in_out_
 

Detailed Description

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

Definition at line 217 of file graph.cc.

Member Enumeration Documentation

Enumerator
kShellEscape 
kDoNotEscape 

Definition at line 218 of file graph.cc.

Constructor & Destructor Documentation

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

Definition at line 220 of file graph.cc.

Member Function Documentation

string EdgeEnv::LookupVariable ( const string &  var)
virtual
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 252 of file graph.cc.

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

Referenced by LookupVariable().

Member Data Documentation

Edge* EdgeEnv::edge_

Definition at line 230 of file graph.cc.

Referenced by LookupVariable().

EscapeKind EdgeEnv::escape_in_out_

Definition at line 231 of file graph.cc.

Referenced by MakePathList().


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