Event.h File Reference
Include dependency graph for Event.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  uscxml::ErrorEvent
 
class  uscxml::Event
 

Macros

#define ERROR_COMMUNICATION(identifier, cause)
 
#define ERROR_COMMUNICATION2(identifier, cause, node)
 
#define ERROR_COMMUNICATION_THROW(cause)
 
#define ERROR_COMMUNICATION_THROW2(cause, node)
 
#define ERROR_EXECUTION(identifier, cause)
 
#define ERROR_EXECUTION2(identifier, cause, node)
 
#define ERROR_EXECUTION_THROW(cause)
 
#define ERROR_EXECUTION_THROW2(cause, node)
 
#define ERROR_PLATFORM_THROW(msg)
 

Functions

std::ostream & uscxml::operator<< (std::ostream &os, const Event &event)
 

Detailed Description

Macro Definition Documentation

#define ERROR_COMMUNICATION (   identifier,
  cause 
)
Value:
uscxml::ErrorEvent identifier; \
identifier.data.compound["cause"] = uscxml::Data(cause, uscxml::Data::VERBATIM); \
identifier.data.compound["file"] = uscxml::Data(uscxml::toStr(__FILE__), uscxml::Data::VERBATIM); \
identifier.data.compound["line"] = uscxml::Data(uscxml::toStr(__LINE__), uscxml::Data::INTERPRETED); \
identifier.name = "error.communication"; \
identifier.eventType = uscxml::Event::PLATFORM;
Definition: Event.h:211
Definition: Data.h:44
#define ERROR_COMMUNICATION2 (   identifier,
  cause,
  node 
)
Value:
uscxml::ErrorEvent identifier; \
identifier.data.compound["cause"] = uscxml::Data(cause, uscxml::Data::VERBATIM); \
identifier.data.compound["file"] = uscxml::Data(uscxml::toStr(__FILE__), uscxml::Data::VERBATIM); \
identifier.data.compound["line"] = uscxml::Data(uscxml::toStr(__LINE__), uscxml::Data::INTERPRETED); \
identifier.name = "error.communication"; \
identifier.data.compound["xpath"] = uscxml::Data(DOMUtils::xPathForNode(node), uscxml::Data::VERBATIM); \
identifier.eventType = uscxml::Event::PLATFORM;
Definition: Event.h:211
Definition: Data.h:44
#define ERROR_COMMUNICATION_THROW (   cause)
Value:
{\
ERROR_COMMUNICATION(exc, cause); \
throw exc;\
}
#define ERROR_COMMUNICATION_THROW2 (   cause,
  node 
)
Value:
{\
ERROR_COMMUNICATION(exc, cause, node); \
throw exc;\
}
#define ERROR_EXECUTION (   identifier,
  cause 
)
Value:
uscxml::ErrorEvent identifier; \
identifier.data.compound["cause"] = uscxml::Data(cause, uscxml::Data::VERBATIM); \
identifier.data.compound["file"] = uscxml::Data(uscxml::toStr(__FILE__), uscxml::Data::VERBATIM); \
identifier.data.compound["line"] = uscxml::Data(uscxml::toStr(__LINE__), uscxml::Data::INTERPRETED); \
identifier.name = "error.execution"; \
identifier.eventType = uscxml::Event::PLATFORM;
Definition: Event.h:211
Definition: Data.h:44
#define ERROR_EXECUTION2 (   identifier,
  cause,
  node 
)
Value:
uscxml::ErrorEvent identifier; \
identifier.data.compound["cause"] = uscxml::Data(cause, uscxml::Data::VERBATIM); \
identifier.data.compound["file"] = uscxml::Data(uscxml::toStr(__FILE__), uscxml::Data::VERBATIM); \
identifier.data.compound["line"] = uscxml::Data(uscxml::toStr(__LINE__), uscxml::Data::INTERPRETED); \
identifier.name = "error.execution"; \
identifier.data.compound["xpath"] = uscxml::Data(DOMUtils::xPathForNode(node), uscxml::Data::VERBATIM); \
identifier.eventType = uscxml::Event::PLATFORM;
Definition: Event.h:211
Definition: Data.h:44
#define ERROR_EXECUTION_THROW (   cause)
Value:
{\
ERROR_EXECUTION(exc, cause); \
throw exc;\
}
#define ERROR_EXECUTION_THROW2 (   cause,
  node 
)
Value:
{\
ERROR_EXECUTION2(exc, cause, node); \
throw exc;\
}
#define ERROR_PLATFORM_THROW (   msg)
Value:
e.name = "error.platform"; \
e.data.compound["cause"] = uscxml::Data(msg, uscxml::Data::VERBATIM); \
e.data.compound["file"] = uscxml::Data(uscxml::toStr(__FILE__), uscxml::Data::VERBATIM); \
e.data.compound["line"] = uscxml::Data(uscxml::toStr(__LINE__), uscxml::Data::INTERPRETED); \
throw e; \
Definition: Event.h:211
Definition: Data.h:44