Skip to content

Commit

Permalink
Publish C# API
Browse files Browse the repository at this point in the history
  • Loading branch information
CParisNeoxio committed Jul 3, 2023
0 parents commit bf218dc
Show file tree
Hide file tree
Showing 207 changed files with 5,776 additions and 0 deletions.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# HlaSharp - C# API

This repository contains the C# API implemented in HlaSharp for HLA 1516 Evolved.
All class and method names match the standard C++ API implemented by RTI providers (Mak, Pitch, etc).

💡 HlaSharp is a Neoxio product that provides a C# API for HLA Evolved (IEEE Standard 1516-2010).
Using HlaSharp you can connect to any RTI and access all its services using only C#.
35 changes: 35 additions & 0 deletions Src/AttributesRegionsMapping.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
using System.Collections.Generic;
using System.Runtime.CompilerServices;
using Neoxio.HlaSharp.Handles;

namespace Neoxio.HlaSharp
{
public class AttributesRegionsMapping
{
public HashSet<AttributeHandle> Attributes
{
get
{
throw new System.NotImplementedException("This is a reference assembly.");
}
}

public HashSet<RegionHandle> Regions
{
get
{
throw new System.NotImplementedException("This is a reference assembly.");
}
}

public AttributesRegionsMapping()
{
throw new System.NotImplementedException("This is a reference assembly.");
}

public AttributesRegionsMapping(IEnumerable<AttributeHandle> attributes, IEnumerable<RegionHandle> regions)
{
throw new System.NotImplementedException("This is a reference assembly.");
}
}
}
55 changes: 55 additions & 0 deletions Src/Encoding/DataElement.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
using System;
using Neoxio.HlaSharp.Interop;

namespace Neoxio.HlaSharp.Encoding
{
public abstract class DataElement : UnmanagedHlaObject, IEncodable
{
public abstract DataElement Clone();

public VariableLengthData Encode()
{
throw new System.NotImplementedException("This is a reference assembly.");
}

public void Encode(VariableLengthData inData)
{
throw new System.NotImplementedException("This is a reference assembly.");
}

public void EncodeInto(ByteVector buffer)
{
throw new System.NotImplementedException("This is a reference assembly.");
}

public void Decode(VariableLengthData inData)
{
throw new System.NotImplementedException("This is a reference assembly.");
}

public int DecodeFrom(ByteVector buffer, int index)
{
throw new System.NotImplementedException("This is a reference assembly.");
}

public int GetEncodedLength()
{
throw new System.NotImplementedException("This is a reference assembly.");
}

public uint GetOctetBoundary()
{
throw new System.NotImplementedException("This is a reference assembly.");
}

public virtual bool IsSameTypeAs(DataElement inData)
{
throw new System.NotImplementedException("This is a reference assembly.");
}

public long Hash()
{
throw new System.NotImplementedException("This is a reference assembly.");
}
}
}
32 changes: 32 additions & 0 deletions Src/Encoding/HlaAsciiChar.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
using System;

namespace Neoxio.HlaSharp.Encoding
{
public class HlaAsciiChar : DataElement
{
public HlaAsciiChar()
{
throw new System.NotImplementedException("This is a reference assembly.");
}

public HlaAsciiChar(char initialValue)
{
throw new System.NotImplementedException("This is a reference assembly.");
}

public sealed override DataElement Clone()
{
throw new System.NotImplementedException("This is a reference assembly.");
}

public void SetValue(char value)
{
throw new System.NotImplementedException("This is a reference assembly.");
}

public char GetValue()
{
throw new System.NotImplementedException("This is a reference assembly.");
}
}
}
32 changes: 32 additions & 0 deletions Src/Encoding/HlaAsciiString.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
using System;

namespace Neoxio.HlaSharp.Encoding
{
public class HlaAsciiString : DataElement
{
public HlaAsciiString()
{
throw new System.NotImplementedException("This is a reference assembly.");
}

public HlaAsciiString(string initialValue)
{
throw new System.NotImplementedException("This is a reference assembly.");
}

public sealed override DataElement Clone()
{
throw new System.NotImplementedException("This is a reference assembly.");
}

public void SetValue(string value)
{
throw new System.NotImplementedException("This is a reference assembly.");
}

public string GetValue()
{
throw new System.NotImplementedException("This is a reference assembly.");
}
}
}
32 changes: 32 additions & 0 deletions Src/Encoding/HlaBoolean.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
using System;

namespace Neoxio.HlaSharp.Encoding
{
public class HlaBoolean : DataElement
{
public HlaBoolean()
{
throw new System.NotImplementedException("This is a reference assembly.");
}

public HlaBoolean(bool initialValue)
{
throw new System.NotImplementedException("This is a reference assembly.");
}

public sealed override DataElement Clone()
{
throw new System.NotImplementedException("This is a reference assembly.");
}

public void SetValue(bool value)
{
throw new System.NotImplementedException("This is a reference assembly.");
}

public bool GetValue()
{
throw new System.NotImplementedException("This is a reference assembly.");
}
}
}
32 changes: 32 additions & 0 deletions Src/Encoding/HlaByte.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
using System;

namespace Neoxio.HlaSharp.Encoding
{
public class HlaByte : DataElement
{
public HlaByte()
{
throw new System.NotImplementedException("This is a reference assembly.");
}

public HlaByte(byte initialValue)
{
throw new System.NotImplementedException("This is a reference assembly.");
}

public sealed override DataElement Clone()
{
throw new System.NotImplementedException("This is a reference assembly.");
}

public void SetValue(byte value)
{
throw new System.NotImplementedException("This is a reference assembly.");
}

public byte GetValue()
{
throw new System.NotImplementedException("This is a reference assembly.");
}
}
}
66 changes: 66 additions & 0 deletions Src/Encoding/HlaFixedArray.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
using System;

namespace Neoxio.HlaSharp.Encoding
{
public class HlaFixedArray<TElement> : DataElement where TElement : DataElement
{
public int Size
{
get
{
throw new System.NotImplementedException("This is a reference assembly.");
}
}

public Type PrototypeType
{
get
{
throw new System.NotImplementedException("This is a reference assembly.");
}
}

public TElement this[int index]
{
get
{
throw new System.NotImplementedException("This is a reference assembly.");
}
}

public HlaFixedArray(TElement prototype, int size)
{
throw new System.NotImplementedException("This is a reference assembly.");
}

public override DataElement Clone()
{
throw new System.NotImplementedException("This is a reference assembly.");
}

public bool HasPrototypeSameTypeAs(DataElement dataElement)
{
throw new System.NotImplementedException("This is a reference assembly.");
}

public void SetElement(int index, TElement element)
{
throw new System.NotImplementedException("This is a reference assembly.");
}

public void SetElementRef(int index, TElement element)
{
throw new System.NotImplementedException("This is a reference assembly.");
}

public TElement GetElement(int index)
{
throw new System.NotImplementedException("This is a reference assembly.");
}

protected override void Dispose(bool disposing)
{
throw new System.NotImplementedException("This is a reference assembly.");
}
}
}
68 changes: 68 additions & 0 deletions Src/Encoding/HlaFixedRecord.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
using System;

namespace Neoxio.HlaSharp.Encoding
{
public class HlaFixedRecord : DataElement
{
public int Size
{
get
{
throw new System.NotImplementedException("This is a reference assembly.");
}
}

public DataElement this[int index]
{
get
{
throw new System.NotImplementedException("This is a reference assembly.");
}
}

public HlaFixedRecord()
{
throw new System.NotImplementedException("This is a reference assembly.");
}

public override DataElement Clone()
{
throw new System.NotImplementedException("This is a reference assembly.");
}

public bool HasElementSameTypeAs(int index, DataElement dataElement)
{
throw new System.NotImplementedException("This is a reference assembly.");
}

public void AppendElement(DataElement element)
{
throw new System.NotImplementedException("This is a reference assembly.");
}

public void AppendElementRef(DataElement element)
{
throw new System.NotImplementedException("This is a reference assembly.");
}

public void SetElement(int index, DataElement element)
{
throw new System.NotImplementedException("This is a reference assembly.");
}

public void SetElementRef(int index, DataElement element)
{
throw new System.NotImplementedException("This is a reference assembly.");
}

public DataElement GetElement(int index)
{
throw new System.NotImplementedException("This is a reference assembly.");
}

protected override void Dispose(bool disposing)
{
throw new System.NotImplementedException("This is a reference assembly.");
}
}
}
Loading

0 comments on commit bf218dc

Please sign in to comment.