• Version 4.4.3
Show / Hide Table of Contents

Class Generator

Strong-typed messages code generator.

Inheritance
object
Generator
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: OnixS.SimpleBinaryEncoding.CodeGenerator
Assembly: OnixS.SimpleBinaryEncoding.dll
Syntax
public class Generator

Methods

GenerateAssembly<THeader>(TemplateLibrary, string)

Generates the assembly.

Declaration
public Assembly GenerateAssembly<THeader>(TemplateLibrary lib, string namespaceName) where THeader : unmanaged, IMessageHeader
Parameters
Type Name Description
TemplateLibrary lib

The template library.

string namespaceName

The namespace name.

Returns
Type Description
Assembly

The generated assembly.

Type Parameters
Name Description
THeader

The message header type.

GenerateAssembly<THeader>(TemplateLibrary, string, string, string)

Generates the assembly.

Declaration
public Assembly GenerateAssembly<THeader>(TemplateLibrary lib, string namespaceName, string fileName, string keyFile = null) where THeader : unmanaged, IMessageHeader
Parameters
Type Name Description
TemplateLibrary lib

The template library.

string namespaceName

The namespace name.

string fileName

The output file name.

string keyFile

The strong name assembly key file.

Returns
Type Description
Assembly
Type Parameters
Name Description
THeader

The message header type.

GenerateSource<THeader>(TemplateLibrary, string)

Generates the source code string.

Declaration
public string GenerateSource<THeader>(TemplateLibrary lib, string namespaceName) where THeader : unmanaged, IMessageHeader
Parameters
Type Name Description
TemplateLibrary lib

The template library.

string namespaceName

The namespace name.

Returns
Type Description
string

The generated source code.

Type Parameters
Name Description
THeader

The message header type.

GenerateSource<THeader>(TemplateLibrary, string, string, bool, bool)

Generates the source code file.

Declaration
public string GenerateSource<THeader>(TemplateLibrary lib, string namespaceName, string fileName, bool generateAssemblyAttributes = false, bool generateSbeSchemaAttributes = true) where THeader : unmanaged, IMessageHeader
Parameters
Type Name Description
TemplateLibrary lib

The template library.

string namespaceName

The namespace name.

string fileName

The output file name.

bool generateAssemblyAttributes

If true, the assembly attributes will include information about the assembly.

bool generateSbeSchemaAttributes

If true, the assembly attributes will include information about the SBE Schema.

Returns
Type Description
string

The generated source code.

Type Parameters
Name Description
THeader

The message header type.

In this article
Back to top Copyright © Onix Solutions.
Generated by DocFX