Mercurial > repos > public > matlab_path_manager
comparison +mpm/MatlabPathManager.m @ 16:4c5d876068c2
Add stub for MatlabPathManager class
| author | Jonatan Werpers <jonatan@werpers.com> |
|---|---|
| date | Mon, 17 Sep 2018 14:11:38 +0200 |
| parents | |
| children | c37f67ccabac |
comparison
equal
deleted
inserted
replaced
| 15:8bce3cf7d6c6 | 16:4c5d876068c2 |
|---|---|
| 1 classdef MatlabPathManager | |
| 2 properties | |
| 3 projectFileName = '.subpaths'; | |
| 4 stateFileName = ''; | |
| 5 end | |
| 6 | |
| 7 methods | |
| 8 function obj = MatlabPathManager() | |
| 9 | |
| 10 end | |
| 11 | |
| 12 function p = stateFilePath(obj) | |
| 13 p = fullfile(mpm.install_location(), obj.stateFileName); | |
| 14 end | |
| 15 | |
| 16 % Load a given path into the state file and the matlab path and do savepath(), atomically | |
| 17 function loadPath(obj, p) | |
| 18 end | |
| 19 | |
| 20 % opposite of load | |
| 21 function unloadPath(obj, p) | |
| 22 end | |
| 23 | |
| 24 % Return all subpaths loaded into the matlab path, mimicing the order they appear there. | |
| 25 function s = pathStatus(obj) | |
| 26 end | |
| 27 | |
| 28 % Return all subpaths in the project and if they are active on the matlab path or not. | |
| 29 function s = projectStatus(obj, projectFolder) | |
| 30 end | |
| 31 | |
| 32 % Load all subpaths for a project | |
| 33 function checkin(obj, projectFolder) | |
| 34 end | |
| 35 | |
| 36 % Unload all subpaths for a project | |
| 37 function checkout(obj, projectFolder) | |
| 38 end | |
| 39 | |
| 40 % Unload all loaded subpaths. The matlab path should be returned to it's original state | |
| 41 function clear(obj) | |
| 42 end | |
| 43 end | |
| 44 end |
