/** @class gatsDBpp::GATS_DB @brief Pure virtual base class for GATS Database derived classes. @datecreated January 17, 2006 @version 1.0 @author - Lance Deaver @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. @see GATS_DB.h @bug None known */ #include "GATS_DB.h" using namespace gatsDBpp; std::string GATS_DB::_implode(std::vector& s, std::string delim) { std::string S; if(! s.empty() ) { std::vector::const_iterator iter; for(iter=s.begin(); iter != s.end()-1; ++iter) { S += *iter + delim; } S += *iter; } return S; }