/home/bes3soft/bes3soft/Boss/7.0.2/dist/7.0.2/Event/ers/ers-00-00-03/test/ExampleIssue.cxx File Reference

#include <iostream>
#include <sstream>
#include "ExampleIssue.h"

Go to the source code of this file.

Functions

ers::Issuecreate_example_issue ()

Variables

bool registered = ers::IssueFactory::instance()->register_issue(ExampleIssue::CLASS_NAME,create_example_issue)


Function Documentation

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.

Returns:

Definition at line 23 of file ExampleIssue.cxx.

References genRecEmupikp::i.

00023                                      { 
00024         ers::Issue *i = new ExampleIssue(); 
00025         return i ; 
00026     } // create_issue


Variable Documentation

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.


Generated on Tue Nov 29 23:15:05 2016 for BOSS_7.0.2 by  doxygen 1.4.7