- **Milestone**: 4.4.FC --> future


---

** [tickets:#94] Convert AMF to C++**

**Status:** accepted
**Created:** Mon May 13, 2013 05:00 AM UTC by Nagendra Kumar
**Last Updated:** Wed Dec 11, 2013 10:30 AM UTC
**Owner:** hano

Migrated from http://devel.opensaf.org/ticket/2631

As part of the refactoring effort in AMF, the suggestion is that AMF is 
converted from C to C++. This will make it possible to take advantage of the 
the higher-level language constructs in the C++ standard library, for example 
std::list, std::string, std::set and std::map. By using higher level language 
features like these, the code can be simplified and made easier to maintain.


Since C is basically a subset of C++, conversion from C to C++ should be fairly 
straightforward. In the best case, it can be a simple matter of renaming the C 
source files from *.c to *.cc and the header files from *.h to *.hh


In reality, there are a few minor differences between C and C++. For example, 
functions taking no parameters are declared differently in C and C++. Also C++ 
has stricter type-checking than C which means that in some cases C++ may 
require an explicit cast where C is happy with an implicit cast.
----------------------------------------------
Changed 9 months ago by anwi ¶
  GCC is currently being converted from C to C++, and it looks like this 
conversion is going to be merged into the upcoming GCC 4.8 to be released in 
2013. Some inspiration and ideas for refactoring OpenSAF can be found when 
looking at their wiki page for the C++ conversion, even though not everything 
is applicable to us. Their page can be found here:  
http://gcc.gnu.org/wiki/cxx-conversion


Changed 3 weeks ago by hafe ¶
  changeset: 4207:096b6746fd2e
tag: tip
user: Hans Nordeback <hans.nordeback@…>
date: Mon Apr 22 14:53:08 2013 +0200
summary: avsv: convert AMF director C++ (part 1, #2631)






---

Sent from sourceforge.net because opensaf-tickets@lists.sourceforge.net is 
subscribed to https://sourceforge.net/p/opensaf/tickets/

To unsubscribe from further messages, a project admin can change settings at 
https://sourceforge.net/p/opensaf/admin/tickets/options.  Or, if this is a 
mailing list, you can unsubscribe from the mailing list.
------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
_______________________________________________
Opensaf-tickets mailing list
Opensaf-tickets@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/opensaf-tickets

Reply via email to