Skip to content

Commit

Permalink
Added Serializable attribute to Sexp... classses
Browse files Browse the repository at this point in the history
  • Loading branch information
SurajGupta committed Feb 7, 2014
1 parent 244e489 commit 79fc96c
Show file tree
Hide file tree
Showing 12 changed files with 18 additions and 0 deletions.
1 change: 1 addition & 0 deletions RServeCLI2/Sexp.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ namespace RserveCLI2
/// <summary>
/// A local representation for an S-Expression (a.k.a., Sexp, Rexp, R-expression).
/// </summary>
[Serializable]
public abstract class Sexp : IList<Sexp> , IDictionary<string , Sexp> , IList<object> , IDictionary<string , object>
{

Expand Down
1 change: 1 addition & 0 deletions RServeCLI2/SexpArrayBool.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ namespace RserveCLI2
/// <remarks>
/// NA is represented as NULL
/// </remarks>
[Serializable]
public class SexpArrayBool : SexpGenericList
{

Expand Down
1 change: 1 addition & 0 deletions RServeCLI2/SexpArrayDate.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ namespace RserveCLI2
/// <summary>
/// An array of Dates. Time portion of a date is severed.
/// </summary>
[Serializable]
public class SexpArrayDate : SexpArrayInt
{

Expand Down
1 change: 1 addition & 0 deletions RServeCLI2/SexpArrayDouble.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ namespace RserveCLI2
/// <remarks>
/// Uses double.NaN to represent NA
/// </remarks>
[Serializable]
public class SexpArrayDouble : SexpGenericList
{

Expand Down
1 change: 1 addition & 0 deletions RServeCLI2/SexpArrayInt.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ namespace RserveCLI2
/// <summary>
/// An array of integers.
/// </summary>
[Serializable]
public class SexpArrayInt : SexpGenericList
{

Expand Down
1 change: 1 addition & 0 deletions RServeCLI2/SexpArrayString.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ namespace RserveCLI2
/// <summary>
/// An array of strings
/// </summary>
[Serializable]
public class SexpArrayString : SexpGenericList
{

Expand Down
2 changes: 2 additions & 0 deletions RServeCLI2/SexpGenericList.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
// All rights reserved.
//-----------------------------------------------------------------------

using System;
using System.Collections;
using System.Text;

Expand All @@ -12,6 +13,7 @@ namespace RserveCLI2
/// <summary>
/// Functionality for list-like Sexps.
/// </summary>
[Serializable]
public abstract class SexpGenericList : Sexp
{

Expand Down
2 changes: 2 additions & 0 deletions RServeCLI2/SexpList.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
// All rights reserved.
//-----------------------------------------------------------------------

using System;
using System.Collections.Generic;

namespace RserveCLI2
Expand All @@ -12,6 +13,7 @@ namespace RserveCLI2
/// <summary>
/// A List that can contain Sexps of various types. This is the basis for data frames, too.
/// </summary>
[Serializable]
public class SexpList : SexpGenericList
{

Expand Down
1 change: 1 addition & 0 deletions RServeCLI2/SexpNull.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ namespace RserveCLI2
/// <summary>
/// The S NULL Value
/// </summary>
[Serializable]
public class SexpNull : Sexp
{

Expand Down
3 changes: 3 additions & 0 deletions RServeCLI2/SexpQap1Raw.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,16 @@
// All rights reserved.
//-----------------------------------------------------------------------

using System;

namespace RserveCLI2
{

/// <summary>
/// A container for Sexps that we don't know how to interpret. This way you can still pass such a Sexp back to Rserve, even though its meaning
/// remains opaque.
/// </summary>
[Serializable]
public class SexpQap1Raw : Sexp
{

Expand Down
3 changes: 3 additions & 0 deletions RServeCLI2/SexpSymname.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,15 @@
// All rights reserved.
//-----------------------------------------------------------------------

using System;

namespace RserveCLI2
{

/// <summary>
/// A Sexp for Symnames. Same as a string, but can't be NA.
/// </summary>
[Serializable]
public class SexpSymname : Sexp
{

Expand Down
1 change: 1 addition & 0 deletions RServeCLI2/SexpTaggedList.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ namespace RserveCLI2
/// <summary>
/// A tagged list.
/// </summary>
[Serializable]
public class SexpTaggedList : Sexp , IEnumerable<KeyValuePair<string , Sexp>>
{

Expand Down

0 comments on commit 79fc96c

Please sign in to comment.