Skip to content

Commit 6b81add

Browse files
committed
update to newest auto generated code
1 parent b55a818 commit 6b81add

File tree

4 files changed

+1647
-1563
lines changed

4 files changed

+1647
-1563
lines changed

cwl_input_example.cpp

+4-2
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,13 @@
99
* It loads a CWL description from a file and populates C++ classes.
1010
*/
1111

12+
// using shortened cwl:: namespace instead of w3id_org::cwl
13+
namespace cwl = w3id_org::cwl;
1214

1315
int main(int argc, char** argv) {
1416
if (argc != 2) return 1;
1517

16-
auto tool = cpp_gen::load_document(argv[1]);
17-
cpp_gen::store_document(tool, std::cout);
18+
auto tool = cwl::load_document(argv[1]);
19+
cwl::store_document(tool, std::cout);
1820
return 0;
1921
}

cwl_input_example_store_config.cpp

+5-3
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,16 @@
99
* It loads a CWL description from a file and populates C++ classes.
1010
*/
1111

12+
// using shortened cwl:: namespace instead of w3id_org::cwl
13+
namespace cwl = w3id_org::cwl;
1214

1315
int main(int argc, char** argv) {
1416
if (argc < 2) return 1;
1517

16-
auto tool = cpp_gen::load_document(argv[1]);
18+
auto tool = cwl::load_document(argv[1]);
1719

1820
// parse command line
19-
auto config = cpp_gen::store_config{};
21+
auto config = cwl::store_config{};
2022
for (int i{2}; i < argc; ++i) {
2123
auto sv = std::string_view{argv[i]};
2224
if (sv == "no_simplification") {
@@ -27,6 +29,6 @@ int main(int argc, char** argv) {
2729
config.generateTags = true;
2830
}
2931
}
30-
cpp_gen::store_document(tool, std::cout, config);
32+
cwl::store_document(tool, std::cout, config);
3133
return 0;
3234
}

cwl_output_example.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
* It should print a valid CWL description to stdout.
99
*/
1010

11-
// using shortened cwl:: namespace instead of https___w3id_org_cwl_cwl
12-
namespace cwl = cpp_gen::https___w3id_org_cwl_cwl;
11+
// using shortened cwl:: namespace instead of w3id_org::cwl::cwl
12+
namespace cwl = w3id_org::cwl::cwl;
1313

1414
int main() {
1515
// declaring information about this tool in general
@@ -105,5 +105,5 @@ int main() {
105105
}
106106

107107

108-
cpp_gen::store_document(tool, std::cout);
108+
w3id_org::cwl::store_document(tool, std::cout);
109109
}

0 commit comments

Comments
 (0)