mirror of
https://github.com/nasa/trick.git
synced 2025-06-14 05:08:22 +00:00
Ignore privacy
Changed the storage of offsets from bytes to bits to better handle bitfields. Added code to track classes that are defined within other classes and are private/protected. These classes cannot be used in templates because our io_src code declares variables outside of the class that would try and use these private/protected variables. When a template is found to use a private/protected class it is skipped. refs #218
This commit is contained in:
@ -48,7 +48,8 @@ void ClassValues::addInheritedFieldDescriptions(std::vector<FieldDescription *>
|
||||
|
||||
(*fdit)->setInherited( true ) ;
|
||||
// Adds the class offset to the field offset giving the total offset to the inherited variable
|
||||
(*fdit)->addOffset( class_offset ) ;
|
||||
// The offset is stored in bits so multiply class_offset by 8.
|
||||
(*fdit)->addOffset( class_offset * 8 ) ;
|
||||
|
||||
std::string in_name = (*fdit)->getName() ;
|
||||
// search existing names for incoming inherited variable name.
|
||||
|
Reference in New Issue
Block a user