Freeciv-3.2
Loading...
Searching...
No Matches
Public Member Functions | Data Fields | Static Public Attributes | Protected Member Functions
generate_packets.TypeRegistry Class Reference

Public Member Functions

 __init__ (self, FieldTypeConstructor fallback)
 
RawFieldType parse (self, str type_text)
 
RawFieldType __call__ (self, str dataio_type, str public_type)
 

Data Fields

 dataio_types
 
 dataio_patterns
 
 public_types
 
 public_patterns
 
 fallback
 

Static Public Attributes

 TYPE_INFO_PATTERN = re.compile(r"^([^()]*)\‍(([^()]*)\‍)$")
 

Protected Member Functions

RawFieldType _by_public (self, str dataio_type, str public_type)
 

Detailed Description

Determines what Python class to use for field types based on their
dataio type and public type.

Definition at line 554 of file generate_packets.py.

Constructor & Destructor Documentation

◆ __init__()

generate_packets.TypeRegistry.__init__ (   self,
FieldTypeConstructor  fallback 
)

Definition at line 565 of file generate_packets.py.

Member Function Documentation

◆ __call__()

RawFieldType generate_packets.TypeRegistry.__call__ (   self,
str  dataio_type,
str  public_type 
)

Definition at line 599 of file generate_packets.py.

◆ _by_public()

RawFieldType generate_packets.TypeRegistry._by_public (   self,
str  dataio_type,
str  public_type 
)
protected

Definition at line 616 of file generate_packets.py.

◆ parse()

RawFieldType generate_packets.TypeRegistry.parse (   self,
str  type_text 
)
Parse a single field type

Definition at line 592 of file generate_packets.py.

Field Documentation

◆ dataio_patterns

generate_packets.TypeRegistry.dataio_patterns

Definition at line 574 of file generate_packets.py.

◆ dataio_types

generate_packets.TypeRegistry.dataio_types

Definition at line 568 of file generate_packets.py.

◆ fallback

generate_packets.TypeRegistry.fallback

Definition at line 588 of file generate_packets.py.

◆ public_patterns

generate_packets.TypeRegistry.public_patterns

Definition at line 584 of file generate_packets.py.

◆ public_types

generate_packets.TypeRegistry.public_types

Definition at line 579 of file generate_packets.py.

◆ TYPE_INFO_PATTERN

generate_packets.TypeRegistry.TYPE_INFO_PATTERN = re.compile(r"^([^()]*)\‍(([^()]*)\‍)$")
static

Definition at line 558 of file generate_packets.py.