Files
mROA/mROA.Codegen/Templates/IndexProviderTemplate.cs
T

47 lines
1.2 KiB
C#
Raw Normal View History

2025-07-15 16:37:06 +03:00
namespace mROA.Codegen.Templates
{
public class IndexProviderTemplate : TemplateView
{
private const string TemplateFile = "IndexProvider.cstmpl";
2026-01-29 23:15:39 +03:00
2025-07-15 16:37:06 +03:00
private const string NamespaceTag = "namespace";
private const string LevelTag = "level";
private const string LenTag = "len";
private const string IndexSpanTag = "indexSpan";
private const string RemoteTypePairTag = "remoteTypePair";
2026-01-29 23:15:39 +03:00
public IndexProviderTemplate() : base(TemplateFile)
{
}
2025-07-15 16:37:06 +03:00
public void DefineNamespace(string value)
{
Define(NamespaceTag, value);
}
2026-01-29 23:15:39 +03:00
2025-07-15 16:37:06 +03:00
public void DefineLevel(string value)
{
Define(LevelTag, value);
}
2026-01-29 23:15:39 +03:00
2025-07-15 16:37:06 +03:00
public void DefineLen(string value)
{
Define(LenTag, value);
}
public void InsertIndexSpan(string value)
{
Insert(IndexSpanTag, value);
}
2026-01-29 23:15:39 +03:00
2025-07-15 16:37:06 +03:00
public void InsertRemoteTypePair(string value)
{
Insert(RemoteTypePairTag, value);
}
public bool IsRemoteTypePairInserted()
{
return Inserted(RemoteTypePairTag);
}
}
}