Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
108 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
/** This software is distributed under BSD 3-clause license (see LICENSE file). | ||
* | ||
* Authors: Sergey Lisitsyn | ||
*/ | ||
|
||
#include <shogun/io/serialization/JsonDeserializer.h> | ||
|
||
using namespace shogun; | ||
|
||
CJsonDeserializer::CJsonDeserializer() : CDeserializer() | ||
{ | ||
} | ||
|
||
CJsonDeserializer::~CJsonDeserializer() | ||
{ | ||
} | ||
|
||
Some<CSGObject> CJsonDeserializer::read() | ||
{ | ||
return wrap<CSGObject>(nullptr); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
/** This software is distributed under BSD 3-clause license (see LICENSE file). | ||
* | ||
* Authors: Sergey Lisitsyn | ||
*/ | ||
#ifndef __JSON_DESERIALIZER_H__ | ||
#define __JSON_DESERIALIZER_H__ | ||
|
||
#include <shogun/io/serialization/Deserializer.h> | ||
|
||
namespace shogun | ||
{ | ||
class CJsonDeserializer : public CDeserializer | ||
{ | ||
public: | ||
CJsonDeserializer(); | ||
virtual ~CJsonDeserializer(); | ||
virtual Some<CSGObject> read(); | ||
|
||
virtual const char* get_name() const | ||
{ | ||
return "JsonDeserializer"; | ||
} | ||
}; | ||
} | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
/** This software is distributed under BSD 3-clause license (see LICENSE file). | ||
* | ||
* Authors: Sergey Lisitsyn | ||
*/ | ||
|
||
#include <shogun/io/serialization/JsonSerializer.h> | ||
|
||
using namespace shogun; | ||
|
||
CJsonSerializer::CJsonSerializer() : CSerializer() | ||
{ | ||
} | ||
|
||
CJsonSerializer::~CJsonSerializer() | ||
{ | ||
} | ||
|
||
void CJsonSerializer::write(Some<CSGObject>) | ||
{ | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
/** This software is distributed under BSD 3-clause license (see LICENSE file). | ||
* | ||
* Authors: Sergey Lisitsyn | ||
*/ | ||
#ifndef __JSON_SERIALIZER_H__ | ||
#define __JSON_SERIALIZER_H__ | ||
|
||
#include <shogun/io/serialization/Serializer.h> | ||
|
||
namespace shogun | ||
{ | ||
class CJsonSerializer : public CSerializer | ||
{ | ||
public: | ||
CJsonSerializer(); | ||
virtual ~CJsonSerializer(); | ||
virtual void write(Some<CSGObject> object); | ||
|
||
virtual const char* get_name() const | ||
{ | ||
return "JsonSerializer"; | ||
} | ||
}; | ||
} | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters