changeset 16:4c5d876068c2

Add stub for MatlabPathManager class
author Jonatan Werpers <jonatan@werpers.com>
date Mon, 17 Sep 2018 14:11:38 +0200
parents 8bce3cf7d6c6
children c37f67ccabac
files +mpm/MatlabPathManager.m
diffstat 1 files changed, 44 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/+mpm/MatlabPathManager.m	Mon Sep 17 14:11:38 2018 +0200
@@ -0,0 +1,44 @@
+classdef MatlabPathManager
+    properties
+        projectFileName = '.subpaths';
+        stateFileName = '';
+    end
+
+    methods
+        function obj = MatlabPathManager()
+
+        end
+
+        function p = stateFilePath(obj)
+            p = fullfile(mpm.install_location(), obj.stateFileName);
+        end
+
+        % Load a given path into the state file and the matlab path and do savepath(), atomically
+        function loadPath(obj, p)
+        end
+
+        % opposite of load
+        function unloadPath(obj, p)
+        end
+
+        % Return all subpaths loaded into the matlab path, mimicing the order they appear there.
+        function s = pathStatus(obj)
+        end
+
+        % Return all subpaths in the project and if they are active on the matlab path or not.
+        function s = projectStatus(obj, projectFolder)
+        end
+
+        % Load all subpaths for a project
+        function checkin(obj, projectFolder)
+        end
+
+        % Unload all subpaths for a project
+        function checkout(obj, projectFolder)
+        end
+
+        % Unload all loaded subpaths. The matlab path should be returned to it's original state
+        function clear(obj)
+        end
+    end
+end