public class StructureMembers
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
class |
StructureMembers.Member
A member of a StructureData.
|
Constructor and Description |
---|
StructureMembers(java.lang.String name) |
StructureMembers(StructureMembers from) |
Modifier and Type | Method and Description |
---|---|
void |
addMember(int pos,
StructureMembers.Member m)
Add a member at the given position.
|
StructureMembers.Member |
addMember(java.lang.String name,
java.lang.String desc,
java.lang.String units,
DataType dtype,
int[] shape) |
void |
addMember(StructureMembers.Member m)
Add a member.
|
StructureMembers.Member |
findMember(java.lang.String memberName)
Find the member by its name.
|
StructureMembers.Member |
getMember(int index)
Get the index-th member
|
java.util.List<java.lang.String> |
getMemberNames()
Get the names of the members.
|
java.util.List<StructureMembers.Member> |
getMembers()
Get the list of Member objects.
|
java.lang.String |
getName()
Get the name.
|
int |
getStructureSize()
Get the total size of the Structure in bytes.
|
int |
hideMember(StructureMembers.Member m)
Remove the given member
|
void |
setStructureSize(int structureSize)
Set the total size of the Structure in bytes.
|
public StructureMembers(java.lang.String name)
public StructureMembers(StructureMembers from)
public java.lang.String getName()
public void addMember(StructureMembers.Member m)
m
- member to addpublic void addMember(int pos, StructureMembers.Member m)
m
- member to addpublic StructureMembers.Member addMember(java.lang.String name, java.lang.String desc, java.lang.String units, DataType dtype, int[] shape)
public int hideMember(StructureMembers.Member m)
m
- memberpublic int getStructureSize()
public void setStructureSize(int structureSize)
structureSize
- set to this valuepublic java.util.List<StructureMembers.Member> getMembers()
public java.util.List<java.lang.String> getMemberNames()
public StructureMembers.Member getMember(int index)
index
- of memberpublic StructureMembers.Member findMember(java.lang.String memberName)
memberName
- find by this name