This is a 5.0 ticket for continue code re-factoring of the AMF service for 4.6. The work started with #94 in 4.4
and continued in #713 in 4.5 and #1142 in 4.6.
This ticket is to continue the work started in #94, #713 and #1142 to get
a more maintainable, understandable and testable code base.
We should aim for many small changes instead of few big ones.
The Google C++ Style Guide is to be followed and Google's cpplint to be run on the code base.
An ordered list, (highest priority first), of things to work on, for each task sub tasks
can be added together with a separate ticket:
Investigations that can be done:
- Use Boost libraries that requires only the boost header file, e.g multiindex.
- Introduce two builds, debug and product, e.g debug build can be used for various support during development, e.g. defensive programming , additional compiler options, e.g. -Weffc++ , etc.
- Investigate if pointers in data structure can be changed to a class (owns/uses relationships) that maintains referential integrity in the internal data structures.
Non C++ related changes:
- Use UML, (which tool?) to document parts of the design, sequence diagrams, state charts, etc.
Tickets: #1520
Tickets: #1537
Tickets: #1538
Tickets: #1543
Tickets: #1544
Tickets: #1547
Tickets: #1551
Tickets: #1558
Tickets: #1571
Tickets: #1610
Tickets: #1656
Tickets: #1662
Diff:
Diff:
created #1537 amfd: replace inernal use of SaNameT with std::string
created #1538 AMF: Simplify conditional statements
created #1543 amfd: Replace legacy data structures with STL
Diff:
created #1544 AMF: Remove use of EDU and do direct encode/decode
created #1547: amfd: convert NULL to nullptr
created #1551: amfnd: convert NULL to nullptr
Diff:
Diff:
created #1614 amfnd: replace internal use of SaNameT with std::string.
Diff:
changeset: 7264:a30247a1affb
tag: tip
user: Hans Nordeback hans.nordeback@ericsson.com
date: Thu Jan 28 08:37:35 2016 +0100
files: osaf/services/saf/amf/amfd/comp.cc osaf/services/saf/amf/amfd/include/comp.h osaf/services/saf/amf/amfd/ndfsm.cc osaf/services/saf/amf/amfd/ndproc.cc osaf/services/saf/amf/amfd/su.cc
description:
amfd: Add AVD_COMP global functions to AVD_COMP class [#1520]
Related
Tickets: #1520