Skip to content

Commit

Permalink
Moved FromJSON and ToJSON into propsbrics.h
Browse files Browse the repository at this point in the history
  • Loading branch information
oschulz committed Jun 16, 2015
1 parent 1c47a5b commit 4adbf4e
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 24 deletions.
24 changes: 24 additions & 0 deletions src/propsbrics.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,30 @@
namespace dbrx {


class FromJSON: public TransformBric {
public:
Input<std::string> input{this};
Output<PropVal> output{this};

void processInput() { output = PropVal::fromJSON(input); }

using TransformBric::TransformBric;
};



class ToJSON: public TransformBric {
public:
Input<PropVal> input{this};
Output<std::string> output{this};

void processInput() { output = input->toJSON(); }

using TransformBric::TransformBric;
};



class PropsSplitter: public TransformBric {
public:
class ContentGroup final: public DynOutputGroup {
Expand Down
24 changes: 0 additions & 24 deletions src/textbrics.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,30 +27,6 @@
namespace dbrx {


class FromJSON: public TransformBric {
public:
Input<std::string> input{this};
Output<PropVal> output{this};

void processInput() { output = PropVal::fromJSON(input); }

using TransformBric::TransformBric;
};



class ToJSON: public TransformBric {
public:
Input<PropVal> input{this};
Output<std::string> output{this};

void processInput() { output = input->toJSON(); }

using TransformBric::TransformBric;
};



class TextFileReader: public MapperBric {
protected:
ManagedInputStream m_inputStream;
Expand Down

0 comments on commit 4adbf4e

Please sign in to comment.