Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support automatic, experiment-side data file management via iodevice/…
…data_file
- Loading branch information
Showing
36 changed files
with
554 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
// | ||
// DataFileDevice.cpp | ||
// MWorksCore | ||
// | ||
// Created by Christopher Stawarz on 7/25/19. | ||
// | ||
|
||
#include "DataFileDevice.hpp" | ||
|
||
#include "DataFileManager.h" | ||
|
||
|
||
BEGIN_NAMESPACE_MW | ||
|
||
|
||
const std::string DataFileDevice::FILENAME("filename"); | ||
|
||
|
||
void DataFileDevice::describeComponent(ComponentInfo &info) { | ||
IODevice::describeComponent(info); | ||
info.setSignature("iodevice/data_file"); | ||
info.addParameter(FILENAME); | ||
} | ||
|
||
|
||
DataFileDevice::DataFileDevice(const ParameterValueMap ¶meters) : | ||
IODevice(parameters) | ||
{ | ||
DataFileManager::instance()->setAutoOpenFilename(parsedText(parameters[FILENAME])); | ||
} | ||
|
||
|
||
END_NAMESPACE_MW |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
// | ||
// DataFileDevice.hpp | ||
// MWorksCore | ||
// | ||
// Created by Christopher Stawarz on 7/25/19. | ||
// | ||
|
||
#ifndef DataFileDevice_hpp | ||
#define DataFileDevice_hpp | ||
|
||
#include "IODevice.h" | ||
|
||
|
||
BEGIN_NAMESPACE_MW | ||
|
||
|
||
class DataFileDevice : public IODevice { | ||
|
||
public: | ||
static const std::string FILENAME; | ||
|
||
static void describeComponent(ComponentInfo &info); | ||
|
||
explicit DataFileDevice(const ParameterValueMap ¶meters); | ||
|
||
}; | ||
|
||
|
||
END_NAMESPACE_MW | ||
|
||
|
||
#endif /* DataFileDevice_hpp */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.