Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 45 additions & 0 deletions MEOS.NET.Tests/CatalogEnumTests.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
using MEOS.NET.Enums;
using MEOS.NET.Functions;

namespace MEOS.NET.Tests
{
/// <summary>
/// The generated enums carry MEOS's own constants, so MEOS names back the same
/// thing the enum member does. A value that drifted would name something else,
/// or nothing.
/// </summary>
[TestClass]
public class CatalogEnumTests : MeosTest
{
[TestMethod]
public void MeosNamesTheTypeTheEnumMemberDoes()
{
Assert.AreEqual("tfloat", Meos.MeostypeName((int)MeosType.TTfloat));
Assert.AreEqual("tgeompoint", Meos.MeostypeName((int)MeosType.TTgeompoint));
Assert.AreEqual("floatspan", Meos.MeostypeName((int)MeosType.TFloatspan));
}

[TestMethod]
public void MeosNamesTheInterpolationTheEnumMemberDoes()
{
Assert.AreEqual("Discrete", Meos.InterptypeName((int)InterpType.Discrete));
Assert.AreEqual("Step", Meos.InterptypeName((int)InterpType.Step));
Assert.AreEqual("Linear", Meos.InterptypeName((int)InterpType.Linear));
}

[TestMethod]
public void MeosNamesTheSubtypeTheEnumMemberDoes()
{
Assert.AreEqual("Instant", Meos.TempsubtypeName((int)TempSubtype.Tinstant));
Assert.AreEqual("Sequence", Meos.TempsubtypeName((int)TempSubtype.Tsequence));
Assert.AreEqual("SequenceSet", Meos.TempsubtypeName((int)TempSubtype.Tsequenceset));
}

[TestMethod]
public void TheInterpolationNameReadsBackAsItsMember()
{
Assert.AreEqual((int)InterpType.Linear, Meos.InterptypeFromString("Linear"));
Assert.AreEqual((int)InterpType.Step, Meos.InterptypeFromString("Step"));
}
}
}
19 changes: 19 additions & 0 deletions MEOS.NET/Enums/COMPRESSIONS.g.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#nullable enable

namespace MEOS.NET.Enums
{
/// <summary>The MEOS <c>COMPRESSIONS</c> enum, from <c>pc_api.h</c>.</summary>
[System.CodeDom.Compiler.GeneratedCode("MEOS.NET.ObjectGen", "0.1.0")]
public enum COMPRESSIONS
{
/// <summary><c>PC_NONE</c></summary>
PcNone = 0,

/// <summary><c>PC_DIMENSIONAL</c></summary>
PcDimensional = 1,

/// <summary><c>PC_LAZPERF</c></summary>
PcLazperf = 2,

}
}
16 changes: 16 additions & 0 deletions MEOS.NET/Enums/ENDIANS.g.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#nullable enable

namespace MEOS.NET.Enums
{
/// <summary>The MEOS <c>ENDIANS</c> enum, from <c>pc_api.h</c>.</summary>
[System.CodeDom.Compiler.GeneratedCode("MEOS.NET.ObjectGen", "0.1.0")]
public enum ENDIANS
{
/// <summary><c>PC_XDR</c></summary>
PcXdr = 0,

/// <summary><c>PC_NDR</c></summary>
PcNdr = 1,

}
}
73 changes: 73 additions & 0 deletions MEOS.NET/Enums/IndexSearchOp.g.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
#nullable enable

namespace MEOS.NET.Enums
{
/// <summary>The MEOS <c>IndexSearchOp</c> enum, from <c>meos.h</c>.</summary>
[System.CodeDom.Compiler.GeneratedCode("MEOS.NET.ObjectGen", "0.1.0")]
public enum IndexSearchOp
{
/// <summary><c>INDEX_OVERLAPS</c></summary>
IndexOverlaps = 0,

/// <summary><c>INDEX_CONTAINS</c></summary>
IndexContains = 1,

/// <summary><c>INDEX_CONTAINED_BY</c></summary>
IndexContainedBy = 2,

/// <summary><c>INDEX_LEFT</c></summary>
IndexLeft = 3,

/// <summary><c>INDEX_OVERLEFT</c></summary>
IndexOverleft = 4,

/// <summary><c>INDEX_RIGHT</c></summary>
IndexRight = 5,

/// <summary><c>INDEX_OVERRIGHT</c></summary>
IndexOverright = 6,

/// <summary><c>INDEX_BELOW</c></summary>
IndexBelow = 7,

/// <summary><c>INDEX_OVERBELOW</c></summary>
IndexOverbelow = 8,

/// <summary><c>INDEX_ABOVE</c></summary>
IndexAbove = 9,

/// <summary><c>INDEX_OVERABOVE</c></summary>
IndexOverabove = 10,

/// <summary><c>INDEX_FRONT</c></summary>
IndexFront = 11,

/// <summary><c>INDEX_OVERFRONT</c></summary>
IndexOverfront = 12,

/// <summary><c>INDEX_BACK</c></summary>
IndexBack = 13,

/// <summary><c>INDEX_OVERBACK</c></summary>
IndexOverback = 14,

/// <summary><c>INDEX_BEFORE</c></summary>
IndexBefore = 15,

/// <summary><c>INDEX_OVERBEFORE</c></summary>
IndexOverbefore = 16,

/// <summary><c>INDEX_AFTER</c></summary>
IndexAfter = 17,

/// <summary><c>INDEX_OVERAFTER</c></summary>
IndexOverafter = 18,

/// <summary><c>INDEX_SAME</c></summary>
IndexSame = 19,

/// <summary><c>INDEX_ADJACENT</c></summary>
IndexAdjacent = 20,

}
}
22 changes: 22 additions & 0 deletions MEOS.NET/Enums/InterpType.g.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#nullable enable

namespace MEOS.NET.Enums
{
/// <summary>The MEOS <c>interpType</c> enum, from <c>meos.h</c>.</summary>
[System.CodeDom.Compiler.GeneratedCode("MEOS.NET.ObjectGen", "0.1.0")]
public enum InterpType
{
/// <summary><c>INTERP_NONE</c></summary>
InterpNone = 0,

/// <summary><c>DISCRETE</c></summary>
Discrete = 1,

/// <summary><c>STEP</c></summary>
Step = 2,

/// <summary><c>LINEAR</c></summary>
Linear = 3,

}
}
10 changes: 0 additions & 10 deletions MEOS.NET/Enums/InterpolationType.cs

This file was deleted.

145 changes: 145 additions & 0 deletions MEOS.NET/Enums/MeosOper.g.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,145 @@
#nullable enable

namespace MEOS.NET.Enums
{
/// <summary>The MEOS <c>MeosOper</c> enum, from <c>meos_catalog.h</c>.</summary>
[System.CodeDom.Compiler.GeneratedCode("MEOS.NET.ObjectGen", "0.1.0")]
public enum MeosOper
{
/// <summary><c>UNKNOWN_OP</c></summary>
UnknownOp = 0,

/// <summary><c>EQ_OP</c></summary>
EqOp = 1,

/// <summary><c>NE_OP</c></summary>
NeOp = 2,

/// <summary><c>LT_OP</c></summary>
LtOp = 3,

/// <summary><c>LE_OP</c></summary>
LeOp = 4,

/// <summary><c>GT_OP</c></summary>
GtOp = 5,

/// <summary><c>GE_OP</c></summary>
GeOp = 6,

/// <summary><c>ADJACENT_OP</c></summary>
AdjacentOp = 7,

/// <summary><c>UNION_OP</c></summary>
UnionOp = 8,

/// <summary><c>MINUS_OP</c></summary>
MinusOp = 9,

/// <summary><c>INTERSECT_OP</c></summary>
IntersectOp = 10,

/// <summary><c>OVERLAPS_OP</c></summary>
OverlapsOp = 11,

/// <summary><c>CONTAINS_OP</c></summary>
ContainsOp = 12,

/// <summary><c>CONTAINED_OP</c></summary>
ContainedOp = 13,

/// <summary><c>SAME_OP</c></summary>
SameOp = 14,

/// <summary><c>LEFT_OP</c></summary>
LeftOp = 15,

/// <summary><c>OVERLEFT_OP</c></summary>
OverleftOp = 16,

/// <summary><c>RIGHT_OP</c></summary>
RightOp = 17,

/// <summary><c>OVERRIGHT_OP</c></summary>
OverrightOp = 18,

/// <summary><c>BELOW_OP</c></summary>
BelowOp = 19,

/// <summary><c>OVERBELOW_OP</c></summary>
OverbelowOp = 20,

/// <summary><c>ABOVE_OP</c></summary>
AboveOp = 21,

/// <summary><c>OVERABOVE_OP</c></summary>
OveraboveOp = 22,

/// <summary><c>FRONT_OP</c></summary>
FrontOp = 23,

/// <summary><c>OVERFRONT_OP</c></summary>
OverfrontOp = 24,

/// <summary><c>BACK_OP</c></summary>
BackOp = 25,

/// <summary><c>OVERBACK_OP</c></summary>
OverbackOp = 26,

/// <summary><c>BEFORE_OP</c></summary>
BeforeOp = 27,

/// <summary><c>OVERBEFORE_OP</c></summary>
OverbeforeOp = 28,

/// <summary><c>AFTER_OP</c></summary>
AfterOp = 29,

/// <summary><c>OVERAFTER_OP</c></summary>
OverafterOp = 30,

/// <summary><c>EVEREQ_OP</c></summary>
EvereqOp = 31,

/// <summary><c>EVERNE_OP</c></summary>
EverneOp = 32,

/// <summary><c>EVERLT_OP</c></summary>
EverltOp = 33,

/// <summary><c>EVERLE_OP</c></summary>
EverleOp = 34,

/// <summary><c>EVERGT_OP</c></summary>
EvergtOp = 35,

/// <summary><c>EVERGE_OP</c></summary>
EvergeOp = 36,

/// <summary><c>ALWAYSEQ_OP</c></summary>
AlwayseqOp = 37,

/// <summary><c>ALWAYSNE_OP</c></summary>
AlwaysneOp = 38,

/// <summary><c>ALWAYSLT_OP</c></summary>
AlwaysltOp = 39,

/// <summary><c>ALWAYSLE_OP</c></summary>
AlwaysleOp = 40,

/// <summary><c>ALWAYSGT_OP</c></summary>
AlwaysgtOp = 41,

/// <summary><c>ALWAYSGE_OP</c></summary>
AlwaysgeOp = 42,

/// <summary><c>TEMPCONTAINS_OP</c></summary>
TempcontainsOp = 43,

/// <summary><c>TEMPCONTAINED_OP</c></summary>
TempcontainedOp = 44,

}
}
43 changes: 43 additions & 0 deletions MEOS.NET/Enums/MeosPixType.g.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
#nullable enable

namespace MEOS.NET.Enums
{
/// <summary>The MEOS <c>MeosPixType</c> enum, from <c>meos_raster.h</c>.</summary>
[System.CodeDom.Compiler.GeneratedCode("MEOS.NET.ObjectGen", "0.1.0")]
public enum MeosPixType
{
/// <summary><c>MEOS_PT_UINT8</c></summary>
MeosPtUint8 = 0,

/// <summary><c>MEOS_PT_INT16</c></summary>
MeosPtInt16 = 1,

/// <summary><c>MEOS_PT_INT32</c></summary>
MeosPtInt32 = 2,

/// <summary><c>MEOS_PT_FLOAT32</c></summary>
MeosPtFloat32 = 3,

/// <summary><c>MEOS_PT_FLOAT64</c></summary>
MeosPtFloat64 = 4,

/// <summary><c>MEOS_PT_INT8</c></summary>
MeosPtInt8 = 5,

/// <summary><c>MEOS_PT_UINT16</c></summary>
MeosPtUint16 = 6,

/// <summary><c>MEOS_PT_UINT32</c></summary>
MeosPtUint32 = 7,

/// <summary><c>MEOS_PT_INT64</c></summary>
MeosPtInt64 = 8,

/// <summary><c>MEOS_PT_UINT64</c></summary>
MeosPtUint64 = 9,

/// <summary><c>MEOS_PT_FLOAT16</c></summary>
MeosPtFloat16 = 10,

}
}
Loading
Loading