view +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
line wrap: on
line source

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