-
Notifications
You must be signed in to change notification settings - Fork 0
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
2 changed files
with
89 additions
and
0 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
/** | ||
* RawJPG | ||
*/ | ||
|
||
/* Include --------------------------------------------- */ | ||
#include "RawJPG.hpp" | ||
|
||
#include <iostream> | ||
|
||
/* Defines --------------------------------------------- */ | ||
|
||
/* Class implentation ---------------------------------- */ | ||
std::ostream &operator<<(std::ostream &pOs, const RawJPG &pRawJPG) { | ||
pOs << "RawJPG data : " << pRawJPG.rawData(); | ||
|
||
return pOs; | ||
} | ||
|
||
RawJPG::RawJPG() { | ||
/* Empty on purpose */ | ||
} | ||
|
||
RawJPG::RawJPG(const std::string &pStr) : mRawData(pStr) | ||
{ | ||
/* Empty on purpose */ | ||
} | ||
|
||
RawJPG::~RawJPG() { | ||
/* Empty on purpose */ | ||
} | ||
|
||
void RawJPG::print(void) const { | ||
std::cout << "[INFO ] RawJPG value is : " << *this << std::endl; | ||
} | ||
|
||
/* Getters */ | ||
std::string RawJPG::rawData(void) const { | ||
return mRawData; | ||
} | ||
|
||
bool RawJPG::isComplete(void) const { | ||
return mComplete; | ||
} | ||
|
||
/* Setters */ | ||
void RawJPG::setRawData(const std::string &pStr) { | ||
mRawData = pStr; | ||
} | ||
|
||
void RawJPG::setCompleted(const bool &pComplete) { | ||
mComplete = pComplete; | ||
} |
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,37 @@ | ||
/** | ||
* RawJPG | ||
*/ | ||
|
||
#ifndef RAW_JPG_HPP | ||
#define RAW_JPG_HPP | ||
|
||
/* Include --------------------------------------------- */ | ||
#include <string> | ||
|
||
/* Defines --------------------------------------------- */ | ||
|
||
/* Class ----------------------------------------------- */ | ||
class RawJPG { | ||
public: | ||
RawJPG(); | ||
RawJPG(const std::string &pStr); | ||
virtual ~RawJPG(); | ||
|
||
void print(void) const; | ||
|
||
/* Getters */ | ||
std::string rawData(void) const; | ||
bool isComplete(void) const; | ||
|
||
/* Setters */ | ||
void setRawData(const std::string &pStr); | ||
void setCompleted(const bool &pStr); | ||
|
||
private: | ||
std::string mRawData; | ||
bool mComplete; | ||
}; | ||
|
||
std::ostream &operator<<(std::ostream &pOs, const RawJPG &pRawJPG); | ||
|
||
#endif /* RAW_JPG_HPP */ |