GENERATECORE Generate Matlab classes from NWB core schema files GENERATECORE() Generate classes (Matlab m-files) from the NWB:N core namespace file. GENERATECORE(core_or_extension_paths,...) Generate classes for the core namespace as well as one or more extenstions. Each input filename should be an NWB namespace file. A cache of schema data is generated in the 'namespaces' subdirectory in the current working directory. This is for allowing cross-referencing classes between multiple namespaces. Output files are generated placed in a '+types' subdirectory in the current working directory. Example: generateCore(); generateCore('schema/core/nwb.namespace.yaml'); generateCore('schema/my_ext/myext.namespace.yaml'); See also GENERATEEXTENSION
0001 function generateCore(varargin) 0002 % GENERATECORE Generate Matlab classes from NWB core schema files 0003 % GENERATECORE() Generate classes (Matlab m-files) from the 0004 % NWB:N core namespace file. 0005 % 0006 % GENERATECORE(core_or_extension_paths,...) Generate classes for the 0007 % core namespace as well as one or more extenstions. Each input filename 0008 % should be an NWB namespace file. 0009 % 0010 % A cache of schema data is generated in the 'namespaces' subdirectory in 0011 % the current working directory. This is for allowing cross-referencing 0012 % classes between multiple namespaces. 0013 % 0014 % Output files are generated placed in a '+types' subdirectory in the 0015 % current working directory. 0016 % 0017 % Example: 0018 % generateCore(); 0019 % generateCore('schema/core/nwb.namespace.yaml'); 0020 % generateCore('schema/my_ext/myext.namespace.yaml'); 0021 % 0022 % See also GENERATEEXTENSION 0023 if nargin == 0 0024 [nwbLocation, ~, ~] = fileparts(mfilename('fullpath')); 0025 namespacePath = fullfile(nwbLocation, 'schema', 'core', 'nwb.namespace.yaml'); 0026 generateExtension(namespacePath); 0027 else 0028 for i=1:length(varargin) 0029 generateExtension(varargin{i}); 0030 end 0031 end 0032 end