#ifndef AUDIT_EVENT_STREAM_2006_12_29__ #define AUDIT_EVENT_STREAM_2006_12_29__ /** @class AuditEventStream.h @author Brian Magill @date 12/29/2006 $Date:$ $Revision:$ @copyright (©) Copyright 2006 by GATS Inc. 11864 Canon Blvd., Suite 101, Newport News, VA 23606 All Rights Reserved. No part of this software or publication may be reproduced, stored in a retrieval system, or transmitted, in any form or by any means, electronic, mechanical, photocopying, recording, or otherwise without the prior written permission of GATS Inc. @brief copying audit information to a SOFIE Event object */ //---------------------------------------------------------------------- // #include "AuditOutputAbstract.h" #include "Event.h" #include #include class AuditEventStream: public AuditOutputAbstract { typedef std::vector vectString; private: Event *output; public: AuditEventStream():output(0) {}; explicit AuditEventStream(Event &out):output(&out) {}; AuditEventStream(AuditEventStream const &rhs):output(rhs.output) { }; AuditEventStream const & operator= (AuditEventStream const &rhs) { if(this == &rhs) return *this; output = rhs.output; return *this; }; ~AuditEventStream() { }; void print(Journal const &jou) { vectString stringArray = jou.retrieve(); vectString::const_iterator Indx; for(Indx = stringArray.begin(); Indx != stringArray.end(); Indx++) output->addLogEntry(*Indx); }; }; #endif