4 function setRootDir(dirName)
7 function resDir=getDirByCallerKey(keyName,nStepsUp)
17 checkgen(nStepsUp,'isnumeric(x)&&isscalar(x)');
21 [callerName,'.',keyName]);
23 function resDir=getDirByKey(keyName)
32 keyDirName=
mxberry.core.
hash({curTaskName,keyName});
33 resDir=[rootDir,
filesep,keyDirName];
39 newMeObj=
mxberry.
core.throwerror(
'failedToRemoveDir',...
40 'could not remove directory %s',resDir);
41 newMeObj=addCause(newMeObj,meObj);
48 newMeObj=
mxberry.
core.throwerror(
'failedToCreatedDir',...
49 'could not create directory %s',resDir);
50 newMeObj=addCause(newMeObj,meObj);
56 methods (Access=
protected,Static)
57 function [propVal,isThere]=getPropInternal(propName,isPresenceChecked)
58 branchName=mfilename(
'class');
60 branchName,propName,isPresenceChecked);
63 function setPropInternal(propName,propVal)
64 branchName=mfilename(
'class');
66 branchName,propName,propVal);
68 function tmpDirName=setDefaultRootDir()
70 if strcmpi(tmpDirName(end),
filesep)
static function setPropInternal(in branchName, in propName, in propVal)
function getpidhost()
GETPIDHOST returns process id (PID) of current Matlab instance along with a host name it is running o...
function throwerror(in msgTag, in varargin)
THROWERROR works similarly to built-in ERROR function in case when there is no output arguments but s...
TMPDATAMANAGER implements a basic functionality for managing temporary data folders.
function hash(in inpArr, in methodName)
OBJECTHASH counts the hash of input object/array.
function checkgen(in x, in typeSpec, in varargin)
CHECKGEN checks a generic condition provided by typeSpec string in the following format: 'isnumeric(x...
function isstring(in inpArray)
static function getPropInternal(in branchName, in propName, in isPresenceChecked)
function getcallername(in nStepsUp, in mode)
GETCALLERNAME returns a name of caller determined by a number of steps up in the call stacks...