X-Git-Url: http://gitweb.hachti.de/?a=blobdiff_plain;f=pc-tools%2Fldc2%2Fsrc%2Ftool.hh;h=5d3a7ccfda9121a71742916d0d92af3278c79a73;hb=5e2538182c99ec053b457255722f704927a5f003;hp=acb30ec35eb585840b350dfb7a0513387a88cc31;hpb=ea4c19a49ff6621c58e0c4bba5ab5d271a3604c8;p=h316.git diff --git a/pc-tools/ldc2/src/tool.hh b/pc-tools/ldc2/src/tool.hh index acb30ec..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 @@ -7,6 +30,26 @@ using namespace std; extern int dump_vector(vector strings); -extern int dump_vector_err(vector strings); +extern int dump_vector_fp(vector strings, FILE * fp); + + +/*! + *\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