/usr/include/tulip/ImportModule.h is in libtulip-dev 4.8.0dfsg-2build2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 | /*
*
* This file is part of Tulip (www.tulip-software.org)
*
* Authors: David Auber and the Tulip development Team
* from LaBRI, University of Bordeaux
*
* Tulip is free software; you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License
* as published by the Free Software Foundation, either version 3
* of the License, or (at your option) any later version.
*
* Tulip is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
* See the GNU General Public License for more details.
*
*/
///@cond DOXYGEN_HIDDEN
#ifndef _IMPORTMODULE_H
#define _IMPORTMODULE_H
#include <tulip/Plugin.h>
#include <list>
#include <string>
namespace tlp {
static const std::string IMPORT_CATEGORY = "Import";
class PluginProgress;
class Graph;
class DataSet;
/**
* @addtogroup Plugins
* @brief Base class for import plug-ins.
**/
class ImportModule : public tlp::Plugin {
public:
/**
* @brief Initializes the DataSet to the one passed in the context.
*
* @param context The context this import plug-in runs into.
**/
ImportModule (const tlp::PluginContext* context) {
if(context != NULL) {
const tlp::AlgorithmContext* algoritmContext = dynamic_cast<const tlp::AlgorithmContext*>(context);
assert(algoritmContext != NULL);
graph = algoritmContext->graph;
pluginProgress = algoritmContext->pluginProgress;
dataSet = algoritmContext->dataSet;
}
}
virtual std::list<std::string> fileExtensions() const {
return std::list<std::string>();
}
virtual std::string getGroup() const {
return "Import";
}
virtual std::string category() const {
return IMPORT_CATEGORY;
}
std::string icon() const {
return ":/tulip/gui/icons/32/plugin_import_export.png";
}
/**
* @brief The import operations should take place here.
*
* @return bool Whether the import was successful or not.
**/
virtual bool importGraph()=0;
/**
* @brief The Graph in which to write the data to import.
**/
Graph *graph;
/**
* @brief A means to report progress to the user.
**/
PluginProgress *pluginProgress;
/**
* @brief A container for the parameters of this import plug-in.
**/
DataSet *dataSet;
};
}
#endif
///@endcond
|