Planeshift
|
00001 /* 00002 * stringarray.h 00003 * 00004 * Copyright (C) 2007 Atomic Blue ([email protected], http://www.atomicblue.org) 00005 * 00006 * This program is free software; you can redistribute it and/or 00007 * modify it under the terms of the GNU General Public License 00008 * as published by the Free Software Foundation (version 2 of the License) 00009 * This program is distributed in the hope that it will be useful, 00010 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00011 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00012 * GNU General Public License for more details. 00013 * You should have received a copy of the GNU General Public License 00014 * along with this program; if not, write to the Free Software 00015 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 00016 * 00017 */ 00018 00019 #ifndef PS_STRINGARRAY_H 00020 #define PS_STRINGARRAY_H 00021 00022 #include <stdarg.h> 00023 #include <csutil/stringarray.h> 00024 00033 class psStringArray : public csStringArray 00034 { 00035 public: 00040 size_t FormatPush(char const * fmt, ...) 00041 { 00042 csString str; 00043 va_list args; 00044 va_start(args, fmt); 00045 str.FormatV(fmt, args); 00046 va_end(args); 00047 return Push(str); 00048 } 00049 }; 00050 00053 #endif // PS_STRINGARRAY_H