Classes | Public Types | Static Public Member Functions

gnash::ExternalInterface Struct Reference

#include <ExternalInterface.h>

List of all members.

Classes

struct  DSOLOCAL
struct  invoke_t

Public Types

typedef struct
gnash::ExternalInterface::DSOLOCAL 
invoke_t

Static Public Member Functions

static DSOEXPORT std::string toXML (const as_value &obj)
 Convert an AS object to an XML string.
static DSOEXPORT as_value toAS (Global_as &as, const std::string &xml)
 Convert an XML string to an AS value.
static DSOEXPORT std::map
< std::string, as_value
propertiesToAS (Global_as &gl, std::string &xml)
 Convert an XML string of properties to a data structure.
static DSOEXPORT as_value argumentsToXML (std::vector< as_value > &args)
static DSOEXPORT std::string objectToXML (as_object *obj)
 Convert an AS object to an XML string.
static DSOEXPORT as_value objectToAS (Global_as &gl, const std::string &xml)
static DSOEXPORT std::string arrayToXML (as_object *obj)
 Convert an AS object to an XML string.
static std::string escapeXML (as_object &obj)
static std::string unescapeXML (as_object &obj)
static as_value parseXML (const std::string &xml)
static std::vector< as_valueparseArguments (const std::string &xml)
static boost::shared_ptr
< invoke_t
parseInvoke (const std::string &str)
static DSOEXPORT
boost::shared_ptr< invoke_t
ExternalEventCheck (int fd)
static DSOEXPORT std::string makeInvoke (const std::string &method, const std::vector< as_value > &args)
static std::string makeNull ()
static std::string makeTrue ()
static std::string makeFalse ()
static std::string makeString (const std::string &str)
static std::string makeProperty (const std::string &str, const std::string &data)
static std::string makeProperty (const std::string &str, double num)
static std::string makeProperty (const std::string &str, int num)
static std::string makeNumber (double num)
static std::string makeNumber (int num)
static std::string makeNumber (unsigned int num)
static std::string makeArray (std::vector< std::string > &args)
static std::string makeObject (std::map< std::string, std::string > &args)
static DSOEXPORT size_t writeBrowser (int fd, const std::string &xml)
static DSOEXPORT std::string readBrowser (int fd)
static std::string makeInvoke (const std::string &method, std::vector< std::string > args)
static std::string makeNull ()
static std::string makeTrue ()
static std::string makeFalse ()
static std::string makeString (const std::string &str)
static std::string makeProperty (const std::string &str, const std::string &data)
static std::string makeProperty (const std::string &str, double num)
static std::string makeProperty (const std::string &str, int num)
static std::string makeNumber (double num)
static std::string makeNumber (int num)
static std::string makeNumber (unsigned int num)
static std::string makeArray (std::vector< std::string > &args)
static std::string makeObject (std::map< std::string, std::string > &args)
static GnashNPVariant parseXML (const std::string &xml)
static invoke_tparseInvoke (const std::string &xml)
static std::map< std::string,
GnashNPVariant
parseProperties (const std::string &xml)
static std::vector
< GnashNPVariant
parseArguments (const std::string &xml)
static std::string convertNPVariant (const NPVariant *npv)

Member Typedef Documentation


Member Function Documentation

as_value gnash::ExternalInterface::argumentsToXML ( std::vector< as_value > &  args  )  [static]

References toXML().

std::string gnash::ExternalInterface::arrayToXML ( as_object obj  )  [static]

Convert an AS object to an XML string.

References gnash::getVM(), and gnash::as_object::visitProperties().

std::string gnash::ExternalInterface::convertNPVariant ( const NPVariant *  npv  )  [static]
static std::string gnash::ExternalInterface::escapeXML ( as_object obj  )  [static]
boost::shared_ptr< ExternalInterface::invoke_t > gnash::ExternalInterface::ExternalEventCheck ( int  fd  )  [static]

References errno, FIONREAD, and parseInvoke().

static std::string gnash::ExternalInterface::makeArray ( std::vector< std::string > &  args  )  [static]
std::string gnash::ExternalInterface::makeArray ( std::vector< std::string > &  args  )  [static]

Referenced by main().

std::string gnash::ExternalInterface::makeFalse (  )  [static]
static std::string gnash::ExternalInterface::makeFalse (  )  [static]
std::string gnash::ExternalInterface::makeInvoke ( const std::string &  method,
const std::vector< as_value > &  args 
) [static]
std::string gnash::ExternalInterface::makeInvoke ( const std::string &  method,
std::vector< std::string >  args 
) [static]
std::string gnash::ExternalInterface::makeNull (  )  [static]
static std::string gnash::ExternalInterface::makeNull (  )  [static]
static std::string gnash::ExternalInterface::makeNumber ( double  num  )  [static]
static std::string gnash::ExternalInterface::makeNumber ( int  num  )  [static]
static std::string gnash::ExternalInterface::makeNumber ( unsigned int  num  )  [static]
std::string gnash::ExternalInterface::makeNumber ( double  num  )  [static]

Referenced by main().

std::string gnash::ExternalInterface::makeNumber ( int  num  )  [static]
std::string gnash::ExternalInterface::makeNumber ( unsigned int  num  )  [static]
static std::string gnash::ExternalInterface::makeObject ( std::map< std::string, std::string > &  args  )  [static]
std::string gnash::ExternalInterface::makeObject ( std::map< std::string, std::string > &  args  )  [static]

Referenced by main().

static std::string gnash::ExternalInterface::makeProperty ( const std::string &  str,
const std::string &  data 
) [static]
static std::string gnash::ExternalInterface::makeProperty ( const std::string &  str,
double  num 
) [static]
std::string gnash::ExternalInterface::makeProperty ( const std::string &  str,
const std::string &  data 
) [static]

Referenced by main(), and makeProperty().

std::string gnash::ExternalInterface::makeProperty ( const std::string &  str,
int  num 
) [static]

References makeProperty().

std::string gnash::ExternalInterface::makeProperty ( const std::string &  str,
double  num 
) [static]

References makeProperty().

static std::string gnash::ExternalInterface::makeProperty ( const std::string &  str,
int  num 
) [static]
static std::string gnash::ExternalInterface::makeString ( const std::string &  str  )  [static]
std::string gnash::ExternalInterface::makeString ( const std::string &  str  )  [static]
std::string gnash::ExternalInterface::makeTrue (  )  [static]
static std::string gnash::ExternalInterface::makeTrue (  )  [static]
as_value gnash::ExternalInterface::objectToAS ( Global_as gl,
const std::string &  xml 
) [static]
std::string gnash::ExternalInterface::objectToXML ( as_object obj  )  [static]

Convert an AS object to an XML string.

References gnash::getVM(), and gnash::as_object::visitProperties().

std::vector< GnashNPVariant > gnash::ExternalInterface::parseArguments ( const std::string &  xml  )  [static]

References data, s2x::end, name, parseXML(), and start.

Referenced by main(), and parseInvoke().

static std::vector<GnashNPVariant> gnash::ExternalInterface::parseArguments ( const std::string &  xml  )  [static]
static invoke_t* gnash::ExternalInterface::parseInvoke ( const std::string &  xml  )  [static]
ExternalInterface::invoke_t * gnash::ExternalInterface::parseInvoke ( const std::string &  str  )  [static]

References s2x::end, parseArguments(), and start.

Referenced by ExternalEventCheck(), and main().

std::map< std::string, GnashNPVariant > gnash::ExternalInterface::parseProperties ( const std::string &  xml  )  [static]

References parseXML().

Referenced by main().

static GnashNPVariant gnash::ExternalInterface::parseXML ( const std::string &  xml  )  [static]
GnashNPVariant gnash::ExternalInterface::parseXML ( const std::string &  xml  )  [static]
std::map< std::string, as_value > gnash::ExternalInterface::propertiesToAS ( Global_as gl,
std::string &  xml 
) [static]

Convert an XML string of properties to a data structure.

References data, s2x::end, start, and toAS().

std::string gnash::ExternalInterface::readBrowser ( int  fd  )  [static]

References FIONREAD.

as_value gnash::ExternalInterface::toAS ( Global_as as,
const std::string &  xml 
) [static]

Convert an XML string to an AS value.

Convert an XML string to an AS object.

References data, s2x::end, length, gnash::as_value::set_bool(), gnash::as_value::set_double(), gnash::as_value::set_null(), gnash::as_value::set_string(), and start.

Referenced by propertiesToAS().

std::string gnash::ExternalInterface::toXML ( const as_value obj  )  [static]
static std::string gnash::ExternalInterface::unescapeXML ( as_object obj  )  [static]
size_t gnash::ExternalInterface::writeBrowser ( int  fd,
const std::string &  xml 
) [static]

References gnash::amf::write().


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