Class TPasEnum

Unit

Declaration

type TPasEnum = class(TPasType)

Description

Enumerated type.

Source: source/component/PasDoc_Items.pas (line 648).

Hierarchy

Overview

Fields

Protected FMembers: TPasItems;

Methods

Protected procedure Serialize(const ADestination: TStream); override;
Protected procedure Deserialize(const ASource: TStream); override;
Protected procedure StoreValueTag(ThisTag: TTag; var ThisTagData: TObject; EnclosingTag: TTag; var EnclosingTagData: TObject; const TagParameter: string; var ReplaceStr: string);
Public procedure RegisterTags(TagManager: TTagManager); override;
Public function FindItem(const ItemName: string): TBaseItem; override;
Public destructor Destroy; override;
Public constructor Create; override;

Properties

Public property Members: TPasItems read FMembers;

Description

Fields

Protected FMembers: TPasItems;

This item has no description.

Source: source/component/PasDoc_Items.pas (line 650).

Methods

Protected procedure Serialize(const ADestination: TStream); override;

This item has no description. Showing description inherited from TBaseItem.Serialize.

Serialization of TPasItem need to store in stream only data that is generated by parser. That's because current approach treats "loading from cache" as equivalent to parsing a unit and stores to cache right after parsing a unit. So what is generated by parser must be written to cache.

That said,

  1. It will not break anything if you will accidentally store in cache something that is not generated by parser. That's because saving to cache will be done anyway right after doing parsing, so properties not initialized by parser will have their initial values anyway. You're just wasting memory for cache, and some cache saving/loading time.

  2. For now, in implementation of serialize/deserialize we try to add even things not generated by parser in a commented out code. This way if approach to cache will change some day, we will be able to use this code.

Source: source/component/PasDoc_Items.pas (line 651).

Protected procedure Deserialize(const ASource: TStream); override;

This item has no description.

Source: source/component/PasDoc_Items.pas (line 652).

Protected procedure StoreValueTag(ThisTag: TTag; var ThisTagData: TObject; EnclosingTag: TTag; var EnclosingTagData: TObject; const TagParameter: string; var ReplaceStr: string);

This item has no description.

Source: source/component/PasDoc_Items.pas (line 653).

Public procedure RegisterTags(TagManager: TTagManager); override;

This item has no description. Showing description inherited from TBaseItem.RegisterTags.

It registers TTags that init Authors, Created, LastMod and remove relevant tags from description. You can override it to add more handlers.

Source: source/component/PasDoc_Items.pas (line 657).

Public function FindItem(const ItemName: string): TBaseItem; override;

Searches for a member of this enumerated type.

Source: source/component/PasDoc_Items.pas (line 660).

Public destructor Destroy; override;

This item has no description.

Source: source/component/PasDoc_Items.pas (line 662).

Public constructor Create; override;

This item has no description.

Source: source/component/PasDoc_Items.pas (line 663).

Properties

Public property Members: TPasItems read FMembers;

This item has no description.

Source: source/component/PasDoc_Items.pas (line 664).


Generated by PasDoc 0.17.0.snapshot.