Public Member Functions | |
void | set (const char *sing) |
virtual void | snapshot () |
StringProducerSinglet () | |
virtual std::string | theContext () const |
Private Attributes | |
const char * | singlet_ |
char | snapshot_singlet_ [SINGLET_MAX_LENGTH+1] |
Static Private Attributes | |
static const int | SINGLET_MAX_LENGTH = 32 |
Definition at line 197 of file MessageDrop.cc.
edm::messagedrop::StringProducerSinglet::StringProducerSinglet | ( | ) | [inline] |
Definition at line 199 of file MessageDrop.cc.
: singlet_("(NoModuleName)") , snapshot_singlet_() { memset(snapshot_singlet_, '\0', sizeof(snapshot_singlet_)); }
void edm::messagedrop::StringProducerSinglet::set | ( | const char * | sing | ) | [inline] |
Definition at line 207 of file MessageDrop.cc.
Referenced by edm::MessageDrop::setSinglet().
{singlet_ = sing; }
virtual void edm::messagedrop::StringProducerSinglet::snapshot | ( | ) | [inline, virtual] |
Implements edm::messagedrop::StringProducer.
Definition at line 208 of file MessageDrop.cc.
{ if ( snapshot_singlet_ != singlet_ ) { // change log 6 std::strncpy (snapshot_singlet_,singlet_,SINGLET_MAX_LENGTH); } snapshot_singlet_[SINGLET_MAX_LENGTH] = 0; singlet_ = snapshot_singlet_; }
virtual std::string edm::messagedrop::StringProducerSinglet::theContext | ( | ) | const [inline, virtual] |
Implements edm::messagedrop::StringProducer.
Definition at line 204 of file MessageDrop.cc.
{ return singlet_; }
const char* edm::messagedrop::StringProducerSinglet::singlet_ [private] |
Definition at line 218 of file MessageDrop.cc.
const int edm::messagedrop::StringProducerSinglet::SINGLET_MAX_LENGTH = 32 [static, private] |
Definition at line 217 of file MessageDrop.cc.
char edm::messagedrop::StringProducerSinglet::snapshot_singlet_[SINGLET_MAX_LENGTH+1] [private] |
Definition at line 219 of file MessageDrop.cc.