Changeset 3016 for trunk/sources/HeuristicLab.Persistence/3.3/Core/Tokens
- Timestamp:
- 03/14/10 00:42:28 (15 years ago)
- Location:
- trunk/sources/HeuristicLab.Persistence/3.3/Core/Tokens
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Persistence/3.3/Core/Tokens/BeginToken.cs
r3004 r3016 8 8 /// </summary> 9 9 public class BeginToken : CompositeTokenBase { 10 11 /// <summary> 12 /// Initializes a new instance of the <see cref="BeginToken"/> class. 13 /// </summary> 14 /// <param name="name">The token name.</param> 15 /// <param name="typeId">The type id.</param> 16 /// <param name="id">The object id.</param> 10 17 public BeginToken(string name, int typeId, int? id) : base(name, typeId, id) { } 11 18 } -
trunk/sources/HeuristicLab.Persistence/3.3/Core/Tokens/CompositeTokenBase.cs
r3004 r3016 3 3 4 4 /// <summary> 5 /// Common base class of <c ode>BeginToken</code> and <code>EndToken</code>5 /// Common base class of <c>BeginToken</c> and <c>EndToken</c> 6 6 /// that surround a composite element. 7 7 /// </summary> 8 8 public abstract class CompositeTokenBase : SerializationTokenBase { 9 10 /// <summary> 11 /// The type's id. 12 /// </summary> 9 13 public readonly int TypeId; 14 15 16 /// <summary> 17 /// The object's id for references in case it is a reference type. 18 /// </summary> 10 19 public readonly int? Id; 20 21 /// <summary> 22 /// Initializes a new instance of the <see cref="CompositeTokenBase"/> class. 23 /// </summary> 24 /// <param name="name">The name.</param> 25 /// <param name="typeId">The type id.</param> 26 /// <param name="id">The object id.</param> 11 27 public CompositeTokenBase(string name, int typeId, int? id) 12 28 : base(name) { -
trunk/sources/HeuristicLab.Persistence/3.3/Core/Tokens/EndToken.cs
r3004 r3016 7 7 /// </summary> 8 8 public class EndToken : CompositeTokenBase { 9 10 /// <summary> 11 /// Initializes a new instance of the <see cref="EndToken"/> class. 12 /// </summary> 13 /// <param name="name">The name.</param> 14 /// <param name="typeId">The type id.</param> 15 /// <param name="id">The object id.</param> 9 16 public EndToken(string name, int typeId, int? id) : base(name, typeId, id) { } 10 17 } -
trunk/sources/HeuristicLab.Persistence/3.3/Core/Tokens/MetaInfoBeginToken.cs
r3004 r3016 2 2 3 3 namespace HeuristicLab.Persistence.Core.Tokens { 4 4 5 /// <summary> 6 /// Start of meta information. 7 /// </summary> 5 8 public class MetaInfoBeginToken : ISerializationToken { } 6 9 -
trunk/sources/HeuristicLab.Persistence/3.3/Core/Tokens/MetaInfoEndToken.cs
r1566 r3016 3 3 namespace HeuristicLab.Persistence.Core.Tokens { 4 4 5 /// <summary> 6 /// End of meta info. 7 /// </summary> 5 8 public class MetaInfoEndToken : ISerializationToken { } 6 9 -
trunk/sources/HeuristicLab.Persistence/3.3/Core/Tokens/NulLReferenceToken.cs
r3004 r3016 2 2 3 3 namespace HeuristicLab.Persistence.Core.Tokens { 4 4 5 /// <summary> 6 /// Describes a reference to <c>null</c>. 7 /// </summary> 5 8 public class NullReferenceToken : SerializationTokenBase { 9 10 /// <summary> 11 /// Initializes a new instance of the <see cref="NullReferenceToken"/> class. 12 /// </summary> 13 /// <param name="name">The token name.</param> 6 14 public NullReferenceToken(string name) : base(name) { } 7 15 } -
trunk/sources/HeuristicLab.Persistence/3.3/Core/Tokens/PrimitiveToken.cs
r3004 r3016 7 7 /// </summary> 8 8 public class PrimitiveToken : SerializationTokenBase { 9 10 /// <summary> 11 /// The type's id. 12 /// </summary> 9 13 public readonly int TypeId; 14 15 /// <summary> 16 /// The object's id. 17 /// </summary> 10 18 public readonly int? Id; 19 20 /// <summary> 21 /// The serialized data. 22 /// </summary> 11 23 public readonly ISerialData SerialData; 24 25 /// <summary> 26 /// Initializes a new instance of the <see cref="PrimitiveToken"/> class. 27 /// </summary> 28 /// <param name="name">The name.</param> 29 /// <param name="typeId">The type's id.</param> 30 /// <param name="id">The onbject's id.</param> 31 /// <param name="serialData">The serialized data.</param> 12 32 public PrimitiveToken(string name, int typeId, int? id, ISerialData serialData) 13 33 : base(name) { -
trunk/sources/HeuristicLab.Persistence/3.3/Core/Tokens/ReferenceToken.cs
r3004 r3016 8 8 /// </summary> 9 9 public class ReferenceToken : SerializationTokenBase { 10 /// <summary> 11 /// The refereced object's id. 12 /// </summary> 10 13 public readonly int Id; 14 15 /// <summary> 16 /// Initializes a new instance of the <see cref="ReferenceToken"/> class. 17 /// </summary> 18 /// <param name="name">The name.</param> 19 /// <param name="id">The referenced object's id.</param> 11 20 public ReferenceToken(string name, int id) 12 21 : base(name) { -
trunk/sources/HeuristicLab.Persistence/3.3/Core/Tokens/SerializationTokenBase.cs
r3004 r3016 4 4 5 5 namespace HeuristicLab.Persistence.Core.Tokens { 6 6 7 /// <summary> 8 /// Common base class for all serialization tokens. 9 /// </summary> 7 10 public abstract class SerializationTokenBase : ISerializationToken { 11 12 /// <summary> 13 /// The token's name. 14 /// </summary> 8 15 public readonly string Name; 16 17 /// <summary> 18 /// Initializes a new instance of the <see cref="SerializationTokenBase"/> class. 19 /// </summary> 20 /// <param name="name">The token name.</param> 9 21 public SerializationTokenBase(string name) { 10 22 Name = name; 11 23 } 24 25 /// <summary> 26 /// Returns a <see cref="System.String"/> that represents this instance. 27 /// </summary> 28 /// <returns> 29 /// A <see cref="System.String"/> that represents this instance. 30 /// </returns> 12 31 public override string ToString() { 13 32 StringBuilder sb = new StringBuilder(); -
trunk/sources/HeuristicLab.Persistence/3.3/Core/Tokens/TypeToken.cs
r3005 r3016 7 7 namespace HeuristicLab.Persistence.Core.Tokens { 8 8 9 /// <summary> 10 /// A token containing type information and mapping. 11 /// </summary> 9 12 public class TypeToken : ISerializationToken { 13 14 /// <summary> 15 /// The type id. 16 /// </summary> 10 17 public readonly int Id; 18 19 /// <summary> 20 /// The type's full name. 21 /// </summary> 11 22 public readonly string TypeName; 23 24 /// <summary> 25 /// The full type name of the serialized used to 26 /// serialize the type. 27 /// </summary> 12 28 public readonly string Serializer; 13 29 30 /// <summary> 31 /// Initializes a new instance of the <see cref="TypeToken"/> class. 32 /// </summary> 33 /// <param name="id">The type id.</param> 34 /// <param name="typeName">Full name of the type.</param> 35 /// <param name="serializer">The full name of the serializer 36 /// used to serialize the type.</param> 14 37 public TypeToken(int id, string typeName, string serializer) { 15 38 Id = id;
Note: See TracChangeset
for help on using the changeset viewer.