X-Git-Url: http://gitweb.hachti.de/?a=blobdiff_plain;f=pc-tools%2Fldc2%2Fsrc%2Ftool.hh;h=5d3a7ccfda9121a71742916d0d92af3278c79a73;hb=5e2538182c99ec053b457255722f704927a5f003;hp=cfc31bb057875094089a6844f5aec18eeeb42874;hpb=874a2bd89fd65e5a1763d88c218f066a424e0d04;p=h316.git diff --git a/pc-tools/ldc2/src/tool.hh b/pc-tools/ldc2/src/tool.hh index cfc31bb..5d3a7cc 100644 --- a/pc-tools/ldc2/src/tool.hh +++ b/pc-tools/ldc2/src/tool.hh @@ -1,3 +1,26 @@ +/****************************************************************************** + * + * LDC2 source code + * + * $Date: 2007/06/15 12:46:04 $ + * $Author: hachti $ + * + * $Log: tool.hh,v $ + * Revision 2.2 2007/06/15 12:46:04 hachti + * Some small changes in configuration_manager output - added (c/f) info. + * Changed order in tool.hh:add_unique.... + * + * Revision 2.1 2007-05-30 02:51:16 hachti + * Changed everything towards LDC2 use. + * Worked on the buildlib.sh. + * Centralized buildlib.sh to a new lib/common directory. + * + * Revision 2.0 2007-03-26 01:00:40 hachti + * *** empty log message *** + * + * + ******************************************************************************/ + #ifndef TOOL_HH #define TOOL_HH @@ -9,8 +32,24 @@ using namespace std; extern int dump_vector(vector strings); extern int dump_vector_fp(vector strings, FILE * fp); -template -extern void merge_vector_unique(vector &target, const vector & source); +/*! + *\brief add contents of one vector to another vector uniquely. + *\param target Reference to the target vector. + *\param source Reference to the vector whose contents are to be added + * to target. + */ +template +void merge_vector_unique(vector &target, const vector & source){ + for (unsigned int isource=0; isource