//*****************************************************************************
// RCF - Remote Call Framework
// Copyright (c) 2005. All rights reserved.
// Developed by Jarl Lindrud.
// Contact: jlindrud@hotmail.com .
//*****************************************************************************
#ifndef INCLUDE_RCF_ENCODEMESSAGE_HPP
#define INCLUDE_RCF_ENCODEMESSAGE_HPP
#include <string>
#include <vector>
#include <boost/shared_ptr.hpp>
namespace RCF {
class Filter;
typedef boost::shared_ptr<Filter> FilterPtr;
bool decodeMessage(
const std::string &message,
std::string &filteredData,
unsigned int &unfilteredDataLen,
int &protocol,
std::vector<int> &filterIds);
bool encodeMessage(
std::string &message,
const std::string &unfilteredData,
int protocol,
const std::vector<FilterPtr> &filters);
} // namespace RCF
#endif // ! INCLUDE_RCF_ENCODEMESSAGE_HPP