ROSE
0.11.96.11
|
Function that generates an error message.
This function generates an error. If given an argument, the argument is the text of the error message, otherwise it uses the default value set at declaration time.
Definition at line 249 of file DocumentMarkup.h.
#include <DocumentMarkup.h>
Public Member Functions | |
std::string | eval (const Grammar &, const std::vector< std::string > &args) |
How to evaluate this function or macro. | |
![]() | |
const std::string & | name () const |
Function name. More... | |
bool | isMacro () const |
Whether declaration is for a macro. More... | |
Ptr | arg (const std::string &name) |
Declare a required argument. More... | |
Ptr | arg (const std::string &name, const std::string &dflt) |
Declare an optional argument. More... | |
Ptr | ellipsis (size_t n=(size_t)(-1)) |
Declare additional arguments. More... | |
size_t | nRequiredArgs () const |
Number of required arguments. | |
size_t | nOptionalArgs () const |
Number of optional arguments. More... | |
size_t | nAdditionalArgs () const |
Max number of additional arguments. More... | |
size_t | maxArgs () const |
Max number of actual arguments possible. | |
void | validateArgs (std::vector< std::string > &actuals, TokenStream &) const |
Check and adjust actual arguments. More... | |
![]() | |
SharedObject () | |
Default constructor. More... | |
SharedObject (const SharedObject &) | |
Copy constructor. More... | |
virtual | ~SharedObject () |
Virtual destructor. More... | |
SharedObject & | operator= (const SharedObject &) |
Assignment. More... | |
![]() | |
SharedPointer< Function > | sharedFromThis () |
Create a shared pointer from this . More... | |
SharedPointer< const Function > | sharedFromThis () const |
Create a shared pointer from this . More... | |
Static Public Member Functions | |
static Ptr | instance (const std::string &name, const std::string dfltMesg="error") |
Create a new instance. More... | |
Protected Member Functions | |
Error (const std::string &name) | |
![]() | |
Function (const std::string &name, bool evalArgs=true) | |
Additional Inherited Members | |
![]() | |
typedef SharedPointer< Function > | Ptr |
Reference-counting pointer to markup function. | |
|
inlinestatic |