Skip to content

Commit d7dc252

Browse files
committed
Added new method getPackAs() to WsjcppResourceFile
1 parent cdacbcd commit d7dc252

File tree

4 files changed

+8
-1
lines changed

4 files changed

+8
-1
lines changed

src/wsjcpp_resources_manager.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ class WsjcppResourceFile {
1010
public:
1111
WsjcppResourceFile();
1212
virtual const std::string &getFilename() = 0;
13+
virtual const std::string &getPackAs() = 0;
1314
virtual const int getBufferSize() = 0;
1415
virtual const char *getBuffer() = 0;
1516
};

unit-tests.wsjcpp/src/resources.wsjcpp/html_images_points_svg_path_835d61.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@ const std::string &RES_html_images_points_svg::getFilename() {
77
return s;
88
}
99

10+
const std::string &RES_html_images_points_svg::getPackAs() {
11+
static const std::string s = "text";
12+
return s;
13+
}
14+
1015
const int RES_html_images_points_svg::getBufferSize() {
1116
return 2979;
1217
}

unit-tests.wsjcpp/src/resources.wsjcpp/html_images_points_svg_path_835d61.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
class RES_html_images_points_svg : public WsjcppResourceFile {
44
public:
55
virtual const std::string &getFilename();
6+
virtual const std::string &getPackAs();
67
virtual const int getBufferSize();
78
virtual const char *getBuffer();
89
};

wsjcpp.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ cmake_cxx_standard: 11
33
cmake_minimum_required: 3.0
44

55
name: wsjcpp-core
6-
version: v0.1.4
6+
version: v0.1.5
77
description: Basic Utils for wsjcpp
88
issues: https://github.com/wsjcpp/wsjcpp-core/issues
99
repositories:

0 commit comments

Comments
 (0)