File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed
packages/core/typescript/create-itk-wasm/src/generate Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -240,6 +240,10 @@ function cxxType(optionKind: string, optionType: string): string {
240240 return 'itk::wasm::InputBinaryStream'
241241 case 'TextStream' :
242242 return 'itk::wasm::InputTextStream'
243+ case 'BinaryFile' :
244+ return 'std::string'
245+ case 'TextFile' :
246+ return 'std::string'
243247 case 'JsonCompatible' :
244248 return 'itk::wasm::InputTextStream'
245249 case 'string' :
@@ -274,6 +278,10 @@ function cxxType(optionKind: string, optionType: string): string {
274278 return 'itk::wasm::OutputBinaryStream'
275279 case 'TextStream' :
276280 return 'itk::wasm::OutputTextStream'
281+ case 'BinaryFile' :
282+ return 'std::string'
283+ case 'TextFile' :
284+ return 'std::string'
277285 case 'JsonCompatible' :
278286 return 'itk::wasm::OutputTextStream'
279287 case 'string' :
@@ -335,6 +343,12 @@ function optionTypeSizeName(
335343 case 'TextStream' :
336344 result += `->type_name("${ typeNamePrefix } TEXT_STREAM")`
337345 break
346+ case 'BinaryStream' :
347+ result += `->type_name("${ typeNamePrefix } BINARY_FILE")`
348+ break
349+ case 'TextStream' :
350+ result += `->type_name("${ typeNamePrefix } TEXT_FILE")`
351+ break
338352 case 'JsonCompatible' :
339353 result += `->type_name("${ typeNamePrefix } JSON")`
340354 break
You can’t perform that action at this time.
0 commit comments