Class ProgramGeneratorInfo
Information for registering a robot program generator.
Inheritance
object
ProgramGeneratorInfo
Assembly: ABB.Robotics.RobotStudio.Stations.dll
Syntax
public record ProgramGeneratorInfo
Constructors
View Source
ProgramGeneratorInfo(ProgramGeneratorInfo)
Declaration
protected ProgramGeneratorInfo(ProgramGeneratorInfo original)
Parameters
View Source
ProgramGeneratorInfo(string, string, string, Func<IProgramGenerator>, Action?)
Information for registering a robot program generator.
Declaration
public ProgramGeneratorInfo(string Name, string Description, string FileExtension, Func<IProgramGenerator> GeneratorFactory, Action? ShowSettings)
Parameters
| Type |
Name |
Description |
| string |
Name |
Display name of the generator.
|
| string |
Description |
Description of the generator.
|
| string |
FileExtension |
Default file extension of the generated program
|
| Func<IProgramGenerator> |
GeneratorFactory |
A method that returns the generator implementation.
|
| Action |
ShowSettings |
Optional method for showing a settings UI for the generator.
If defined, a command will be available in the Export Program menu.
|
Properties
View Source
Description
Description of the generator.
Declaration
public string Description { get; init; }
Property Value
View Source
EqualityContract
Declaration
protected virtual Type EqualityContract { get; }
Property Value
View Source
FileExtension
Default file extension of the generated program
Declaration
public string FileExtension { get; init; }
Property Value
View Source
GeneratorFactory
A method that returns the generator implementation.
Declaration
public Func<IProgramGenerator> GeneratorFactory { get; init; }
Property Value
View Source
Name
Display name of the generator.
Declaration
public string Name { get; init; }
Property Value
View Source
ShowSettings
Optional method for showing a settings UI for the generator.
If defined, a command will be available in the Export Program menu.
Declaration
public Action? ShowSettings { get; init; }
Property Value
Methods
View Source
Deconstruct(out string, out string, out string, out Func<IProgramGenerator>, out Action?)
Declaration
public void Deconstruct(out string Name, out string Description, out string FileExtension, out Func<IProgramGenerator> GeneratorFactory, out Action? ShowSettings)
Parameters
| Type |
Name |
Description |
| string |
Name |
|
| string |
Description |
|
| string |
FileExtension |
|
| Func<IProgramGenerator> |
GeneratorFactory |
|
| Action |
ShowSettings |
|
View Source
Equals(ProgramGeneratorInfo?)
Declaration
public virtual bool Equals(ProgramGeneratorInfo? other)
Parameters
Returns
View Source
Equals(object?)
Declaration
public override bool Equals(object? obj)
Parameters
| Type |
Name |
Description |
| object |
obj |
|
Returns
Overrides
object.Equals(object)
View Source
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Overrides
object.GetHashCode()
View Source
PrintMembers(StringBuilder)
Declaration
protected virtual bool PrintMembers(StringBuilder builder)
Parameters
| Type |
Name |
Description |
| StringBuilder |
builder |
|
Returns
View Source
ToString()
Declaration
public override string ToString()
Returns
Overrides
object.ToString()
Operators
View Source
operator ==(ProgramGeneratorInfo?, ProgramGeneratorInfo?)
Declaration
public static bool operator ==(ProgramGeneratorInfo? left, ProgramGeneratorInfo? right)
Parameters
Returns
View Source
operator !=(ProgramGeneratorInfo?, ProgramGeneratorInfo?)
Declaration
public static bool operator !=(ProgramGeneratorInfo? left, ProgramGeneratorInfo? right)
Parameters
Returns