Skip to main content
The 2024 Developer Survey results are live! See the results

Questions tagged [wrapper]

A wrapper is an OOP technique where an object encapsulates (wraps) another object, resource (dynamically allocated memory, OS file/widow handle, socket, thread mutex, etc) or a set of subroutines, hiding/protecting it and providing another (possibly easier to use) interface. When using this tag on implementation heavy questions - tag the code language the implementation is written in.

0 votes
0 answers
20 views

does the wrapper class mean that primitive data type is converted into reference data type? [duplicate]

i am struggling to get the right mean of the wrapper class as i think that mean primitive data type is converted into reference data type but i need to check the whether it is right or not . ...
Dinod Imanjith's user avatar
0 votes
0 answers
17 views

GDAL Exception when using in AutoCAD .Net Plugin

I have installed GDAL and GDAL.Native v3.9.1 packages. Console applications work well, but when I use it in AutoCAD Class Library project, it always raises the exception: The type initializer for '...
Imran Anees's user avatar
0 votes
0 answers
37 views

As a wrapper object in JavaScript, why can not use 'new' to create a BigInt in JavasScript? [duplicate]

There are 5 wrapper objects in JavaScript: Number, BigInt, String, Boolean, and Symbol.You can use 'new' to create a Number, String, Boolean, Symbol. But you can not use 'new' to create a BigInt. what ...
Leo qiao's user avatar
-1 votes
1 answer
98 views

C# proper (and easy) implementation for changing `using` statements?

I've recently stubled across a seemingly very simple problem I can't wrap my head around: I am currently building a simple tool to access some USB Oscilloscopes. Language Version is C#7.3 Following ...
L T's user avatar
  • 3
-1 votes
2 answers
74 views

Is it possible to implement a recursive POD wrapper in C++?

I have a class to wrap POD struct types, but I'm having trouble when a POD struct has another POD inside, because my wrapper class only stores the POD as it is, using composition. #include <utility&...
edugomez102's user avatar
1 vote
1 answer
30 views

How do I override auto formats in {tern} functions?

Considering {tern} and {rtables} package formatting functions, can you override auto formats in {tern} functions like count_patients_with_flags? For example: library(rtables) library(tern) library(...
Dimple Patel's user avatar
2 votes
1 answer
162 views

C wrapper to iterate a C++ map

I am building a module in C++ which will also be used by some C code. The C++ module makes use of std::map to manage some objects. I would like to write a C wrapper to return some info about the ...
phatpaul's user avatar
  • 336
0 votes
0 answers
22 views

Maven wrapper command(mvnw.cmd) failure

At DOS CMD prompt, I ran 'mvnw.cmd' as shown below. However, I had a hard to interpret error - my partial Window user home directory pathname is being treated as a command. That is, my home directory ...
Park JongBum's user avatar
  • 1,353
0 votes
1 answer
74 views

Encapsulate third-party Service Provider Interface

I am trying to encapsulate a third-party library by writing a wrapper over it and using only required APIs as per my need. To achieve this, I have created this wrapper project as a standalone project ...
booyaakaashaa's user avatar
0 votes
1 answer
180 views

Getting size of a C++ class in a C application at compile time

In summary, I have written a C++ library and am now making a C wrapper to let C programmer use my lib. I am able to get it to work by using raw pointers. Here's what I do. // some_class.hpp namespace ...
Pier-Yves Lessard's user avatar
1 vote
1 answer
95 views

Connecting to azure iot hub from client side react app within an iOS wrapper

We are attempting to connect a vite react web app to an azure iot hub. We'd like to use a .pem, and .key file to register the device with gobal.azure-devices-provisioning.net as shown in their github ...
Jeff spaulding's user avatar
1 vote
3 answers
87 views

How does one access the arguments of a function call when this function can not be rewritten due to its unknown implementation?

I have a function-returning function. The inner function makes use of the parent function's argument in its body. Then I make a list of functions produced by calling the parent function with different ...
burkay's user avatar
  • 1,145
0 votes
1 answer
19 views

Sort by name in an alphabetical order when returning in wrapper class

. @AuraEnabled(cacheable=true) public static list<ProgramBrandTotalAmount> ReportWithTotalBrandOrder(string programId) { list<Program_Item__c> programBrandList ...
Kavya's user avatar
  • 3
0 votes
0 answers
50 views

symbol not found in flat namespace '_GOMP_loop_end_nowait' when importing Python wrapper made with Cython (MacOS)

I'm working on a C++ code that makes use of openmp on MacOS. The code normally gets compiled with a makefile, and the resulting binary accepts some arguments in input and outputs arrays as files. ...
Matteo Peron's user avatar
2 votes
1 answer
69 views

File size overhead reduction of C++ wrapping by Cythonization

I have the following minimal example of summing an array (taken from here): #lib.cpp template<typename T> T arr_sum(T *arr, int size) { T temp=0; for (int i=0; i != size; ++i){ ...
Gideon Kogan's user avatar

15 30 50 per page
1
2 3 4 5
244