/*========================================================================= Library: CTK Copyright (c) Kitware Inc. All rights reserved. Distributed under a BSD License. See LICENSE.txt file. This software is distributed "AS IS" WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the above copyright notice for more information. =========================================================================*/ #ifndef __ctkUtils_h #define __ctkUtils_h // QT includes #include // STD includes #include #include "CTKCoreExport.h" class CTK_CORE_EXPORT ctkUtils { public: typedef ctkUtils Self; /// /// Convert a QStringList to Vector of char* /// Caller will be responsible to delete the content of the vector static void qListToSTLVector(const QStringList& list, std::vector& vector); /// /// Convert a QStringList to a Vector of string static void qListToSTLVector(const QStringList& list, std::vector& vector); /// /// Convert a Vector of string to QStringList static void stlVectorToQList(const std::vector& vector, QStringList& list); private: /// Not implemented ctkUtils(){} virtual ~ctkUtils(){} }; #endif