#ifndef __SOFIE_EVENT_POPULATE_2006_09_11__ #define __SOFIE_EVENT_POPULATE_2006_09_11__ /** @file EventPop.h @author Brian Magill @creationdate 8/15/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 contains a temperature profile */ #include #include #include #include "Event.h" template void EventPopul(std::valarray const & variable, std::string const & name, Event & event) { EventVar workArray; workArray = EventVar ("", variable ); workArray.setName(name.c_str()); event.addEventVar(workArray); } template void EventDistrib(Event & event, std::string const & name, std::valarray &variable ) { EventVar workArray; event.getEventVar(name.c_str(), workArray); variable.resize(workArray.size() ); variable = workArray; } #endif