Add pseudo code for Loader

This commit is contained in:
Jonathan Grangien
2018-06-05 16:17:12 -04:00
committed by Matthias Berg
parent eda1df8b5b
commit 699b307e4a
4 changed files with 28 additions and 1 deletions

View File

@@ -30,6 +30,10 @@
namespace openspace {
/**
* Own reader, writer, loader
* Have functions like getDataItemList that gets list from reader
*/
class DataLoaderModule : public OpenSpaceModule {
public:
constexpr static const char* Name = "DataLoader";

View File

@@ -22,3 +22,24 @@
* OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. *
****************************************************************************************/
#include <modules/dataloader/loader.h>
namespace openspace::dataloader {
Loader::Loader() : PropertyOwner({ "Loader" }) {};
void Loader::addInternalDataItemProperties() {
// Get list of internal data items
// Iterate data items
// Initialize trigger property with data item name (are they unique?)
// Set onChange method to call loadDataItem with the path as argument
// addProperty()
}
// addDataItemProperty();
// removeDataItemProperties();
// loadDataItem(std::string absPathToItem);
// createVolumeDataItem(std::string absPath);
}

View File

@@ -45,6 +45,8 @@ class Loader : public properties::PropertyOwner {
// Load a data item with an abs path to the item under its data type subfolder in data/.internal
void loadDataItem(std::string absPathToItem);
void createVolumeDataItem(std::string absPath);
private:
};

View File

@@ -128,7 +128,7 @@ void Reader::readVolumeDataItems() {
void Reader::loadData() {
char filePath = "";
// char filePath = "";
// Linux
#ifdef _linux
system("thunar /home/mberg");