Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

class: override or modify?

Status
Not open for further replies.

ubuntu_amateur

Member level 4
Member level 4
Joined
Sep 24, 2006
Messages
71
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Activity points
1,665
There is a class in the SDK which provided by vendor.
Might I override or modify the implementation of that class?

Which way will be the best? override or modify?
 

if the class is provided by the vendor as .lib or .hpp

its easy to overide

to modify it you would need to have the source of the class


so.. as its a vendor i beleve most will supply an sdk with headers
and there function reside in dll's {linked library}

if this is the case a tip is to use dll to lib converter

then you can include this new lib with there sdk
and its easier then to both modifiy behaviour of a class and overide
the branches you want to modify to your needs
 

Thanks for your prompt response.
If the member function of the base class is not a virtual function, it is not permitted to be overrided, is it?

I am not familiar with C++.
Could you expatiate furthermore on this aspect?
 

you can overide any function virtual or not

it really depends on its level of class protection

protected / private / public

so.... its up to you

best study some litarature or use google to find examples of this

you simply use a hook
 

its better and easy to override
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top