v8  3.14.5(node0.10.28)
V8 is Google's open source JavaScript engine
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
process.cc File Reference
#include <v8.h>
#include <string>
#include <map>
Include dependency graph for process.cc:

Go to the source code of this file.

Data Structures

class  HttpRequest
 
class  HttpRequestProcessor
 
class  JsHttpRequestProcessor
 
class  StringHttpRequest
 

Functions

string ObjectToString (Local< Value > value)
 
void ParseOptions (int argc, char *argv[], map< string, string > &options, string *file)
 
Handle< StringReadFile (const string &name)
 
bool ProcessEntries (HttpRequestProcessor *processor, int count, StringHttpRequest *reqs)
 
void PrintMap (map< string, string > *m)
 
int main (int argc, char *argv[])
 

Variables

const int kSampleSize = 6
 
StringHttpRequest kSampleRequests [kSampleSize]
 

Function Documentation

int main ( int  argc,
char *  argv[] 
)
string ObjectToString ( Local< Value value)

Definition at line 332 of file process.cc.

void ParseOptions ( int  argc,
char *  argv[],
map< string, string > &  options,
string *  file 
)

Definition at line 530 of file process.cc.

Referenced by main().

void PrintMap ( map< string, string > *  m)

Definition at line 591 of file process.cc.

Referenced by main().

bool ProcessEntries ( HttpRequestProcessor processor,
int  count,
StringHttpRequest reqs 
)

Definition at line 581 of file process.cc.

References HttpRequestProcessor::Process().

Referenced by main().

Handle<String> ReadFile ( const string &  name)

Definition at line 549 of file process.cc.

References NULL.

Referenced by main().

Variable Documentation

StringHttpRequest kSampleRequests[kSampleSize]
Initial value:
= {
StringHttpRequest("/process.cc", "localhost", "google.com", "firefox"),
StringHttpRequest("/", "localhost", "google.net", "firefox"),
StringHttpRequest("/", "localhost", "google.org", "safari"),
StringHttpRequest("/", "localhost", "yahoo.com", "ie"),
StringHttpRequest("/", "localhost", "yahoo.com", "safari"),
StringHttpRequest("/", "localhost", "yahoo.com", "firefox")
}

Definition at line 571 of file process.cc.

Referenced by main().

const int kSampleSize = 6

Definition at line 570 of file process.cc.

Referenced by RegExpEngine::Compile(), and main().