#include <iostream>
#include <sstream>
#include "ExampleIssue.h"
Go to the source code of this file.
Functions | |
ers::Issue * | create_example_issue () |
Variables | |
bool | registered = ers::IssueFactory::instance()->register_issue(ExampleIssue::CLASS_NAME,create_example_issue) |
ers::Issue* @23::create_example_issue | ( | ) | [static] |
This block of code is only needed if issues of this type will need to be deserialised outside of the process where it is first created. For instance if the Issue is created in one process, streamed to a file and read again from this file. If the following function is not defined and registered, when an Issue is deserialised, it will have a special type, DefaultIssue
all the information inside the issue will be intact, but custom method will not be available.
Definition at line 23 of file ExampleIssue.cxx.
References genRecEmupikp::i.
00023 { 00024 ers::Issue *i = new ExampleIssue(); 00025 return i ; 00026 } // create_issue
bool registered = ers::IssueFactory::instance()->register_issue(ExampleIssue::CLASS_NAME,create_example_issue) [static] |
We register the factory function with the IssueFactory singleton, this should only be done if a create_issue function is defined for the Issue.
Definition at line 31 of file ExampleIssue.cxx.