TinkerCell Core 1.0
TinkerCell's Core library providing all basic functionalities
ConvertValue.h
Go to the documentation of this file.
00001 /****************************************************************************
00002 
00003 Copyright (c) 2008 Deepak Chandran
00004 Contact: Deepak Chandran (dchandran1@gmail.com)
00005 See COPYRIGHT.TXT
00006 
00007 This file defines a set of functions that can be used to convert C data types, 
00008 such as char**, char*, and void* to Qt data types, such as QStringList, QString, 
00009 and QGraphicsItem.
00010 
00011 
00012 ****************************************************************************/
00013 
00014 #ifndef TINKERCELL_CONVERTVALUE_H
00015 #define TINKERCELL_CONVERTVALUE_H
00016 
00017 #include <stdio.h>
00018 #include <stdlib.h>
00019 #include <QString>
00020 #include <QList>
00021 #include <QGraphicsItem>
00022 #include <QStringList>
00023 #include <math.h>
00024 #include "API/TC_structs.h"
00025 
00026 #ifndef TINKERCELLCOREEXPORT
00027 #ifdef Q_WS_WIN
00028 #   if defined(TC_EXPORTS) || defined(TinkerCellCore_EXPORTS)
00029 #       define TINKERCELLCOREEXPORT __declspec(dllexport)
00030 #   else
00031 #       define TINKERCELLCOREEXPORT __declspec(dllimport)
00032 #   endif
00033 #else
00034 #    define TINKERCELLCOREEXPORT
00035 #endif
00036 #endif
00037 
00038 namespace Tinkercell
00039 {
00040         class MainWindow;
00041         class ItemHandle;
00042 
00047         TINKERCELLCOREEXPORT tc_matrix emptyMatrix();
00052         TINKERCELLCOREEXPORT ItemHandle* ConvertValue(long);
00057         TINKERCELLCOREEXPORT long ConvertValue(ItemHandle*);
00062         TINKERCELLCOREEXPORT QList<ItemHandle*>* ConvertValue(tc_items);
00067         TINKERCELLCOREEXPORT tc_items ConvertValue(const QList<ItemHandle*>&);
00072         TINKERCELLCOREEXPORT QString ConvertValue(const char*);
00077         TINKERCELLCOREEXPORT const char* ConvertValue(const QString&);
00082         TINKERCELLCOREEXPORT DataTable<QString>* ConvertValue(tc_table);
00087         TINKERCELLCOREEXPORT tc_table ConvertValue(const DataTable<QString>&);
00092         TINKERCELLCOREEXPORT DataTable<qreal>* ConvertValue(tc_matrix);
00097         TINKERCELLCOREEXPORT tc_matrix ConvertValue(const DataTable<qreal>&);
00102         TINKERCELLCOREEXPORT QStringList ConvertValue(tc_strings);
00107         TINKERCELLCOREEXPORT tc_strings ConvertValue(const QStringList& );
00108 }
00109 #endif
00110 
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines