Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

deserialize implementation vs. declaration #8

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions cpp/ICWFGM_CommonBase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
*/

#include "ICWFGM_CommonBase.h"
#include "ISerializeProto.h"

#include "WTime.h"

Expand Down Expand Up @@ -307,3 +308,16 @@ HRESULT ICWFGM_CommonBase::put_UserData(const PolymorphicUserData &newVal) {
m_userData = newVal;
return S_OK;
}


ISerializeProto::DeserializeError::DeserializeError(const std::string& message) :
logic_error(message)
{
}


ISerializeProto::DeserializeError::DeserializeError(const std::string& message, std::uint32_t hr_) :
logic_error(message)
{
hr = hr_;
}
12 changes: 3 additions & 9 deletions include/ISerializeProto.h
Original file line number Diff line number Diff line change
Expand Up @@ -75,19 +75,13 @@ class ISerializationData {
class ISerializeProto {
public:

class DeserializeError : public std::logic_error {
class FUELCOM_API DeserializeError : public std::logic_error {
protected:
std::string msg_;

public:
explicit DeserializeError(const std::string& message) :
logic_error(message)
{}
explicit DeserializeError(const std::string& message, std::uint32_t hr_) :
logic_error(message)
{
hr = hr_;
}
explicit DeserializeError(const std::string& message);
explicit DeserializeError(const std::string& message, std::uint32_t hr_);

std::uint32_t hr = 0;
};
Expand Down