ctkUtils.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Library:   CTK
00004  
00005   Copyright (c) 2010  Kitware Inc.
00006 
00007   Licensed under the Apache License, Version 2.0 (the "License");
00008   you may not use this file except in compliance with the License.
00009   You may obtain a copy of the License at
00010 
00011       http://www.commontk.org/LICENSE
00012 
00013   Unless required by applicable law or agreed to in writing, software
00014   distributed under the License is distributed on an "AS IS" BASIS,
00015   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00016   See the License for the specific language governing permissions and
00017   limitations under the License.
00018  
00019 =========================================================================*/
00020 
00021 #ifndef __ctkUtils_h
00022 #define __ctkUtils_h
00023 
00024 // Qt includes
00025 #include <QStringList>
00026 
00027 // STD includes
00028 #include <vector>
00029 
00030 #include "CTKCoreExport.h"
00031 
00032 class CTK_CORE_EXPORT ctkUtils
00033 {
00034   
00035 public:
00036   typedef ctkUtils Self;
00037 
00041   static void qListToSTLVector(const QStringList& list, std::vector<char*>& vector);
00042 
00045   static void qListToSTLVector(const QStringList& list, std::vector<std::string>& vector);
00046 
00049   static void stlVectorToQList(const std::vector<std::string>& vector, QStringList& list);
00050 
00051 private:
00053   ctkUtils(){}
00054   virtual ~ctkUtils(){}
00055 
00056 };
00057 
00058 #endif
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines