-
Notifications
You must be signed in to change notification settings - Fork 3
/
FeaturesImporter.m
53 lines (32 loc) · 1.13 KB
/
FeaturesImporter.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
classdef FeaturesImporter < FeaturesReporter
properties
featuresFilePath
end
methods(Static)
function n = typeName()
% Return a name for this type of importer.
n = 'Feature';
end
function initialize
% Perform any set up for all instances of this importer type.
end
function n = actionName()
n = 'Importing features...';
end
end
methods(Static, Abstract)
c = canImportFromPath(featuresFilePath)
end
methods
function obj = FeaturesImporter(controller, featuresFilePath, varargin)
obj = obj@FeaturesReporter(controller, varargin{:});
obj.featuresFilePath = featuresFilePath;
% Default the name of the reporter to the file name.
[~, obj.name, ~] = fileparts(featuresFilePath);
end
end
methods (Abstract)
% Subclasses must define this method.
n = importFeatures(obj)
end
end