Add namespace around all files
This commit is contained in:
@@ -1,6 +1,10 @@
|
||||
#ifndef COMPRESSION_TYPE_HPP
|
||||
#define COMPRESSION_TYPE_HPP
|
||||
|
||||
namespace osrm
|
||||
{
|
||||
namespace server
|
||||
{
|
||||
namespace http
|
||||
{
|
||||
|
||||
@@ -10,6 +14,9 @@ enum compression_type
|
||||
gzip_rfc1952,
|
||||
deflate_rfc1951
|
||||
};
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#endif // COMPRESSION_TYPE_HPP
|
||||
|
||||
@@ -4,8 +4,13 @@
|
||||
#include <string>
|
||||
#include <algorithm>
|
||||
|
||||
namespace osrm
|
||||
{
|
||||
namespace server
|
||||
{
|
||||
namespace http
|
||||
{
|
||||
|
||||
struct header
|
||||
{
|
||||
// explicitly use default copy c'tor as adding move c'tor
|
||||
@@ -22,6 +27,9 @@ struct header
|
||||
std::string name;
|
||||
std::string value;
|
||||
};
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#endif // HEADER_HPP
|
||||
|
||||
@@ -7,8 +7,13 @@
|
||||
|
||||
#include <vector>
|
||||
|
||||
namespace osrm
|
||||
{
|
||||
namespace server
|
||||
{
|
||||
namespace http
|
||||
{
|
||||
|
||||
class reply
|
||||
{
|
||||
public:
|
||||
@@ -33,6 +38,9 @@ class reply
|
||||
std::string status_to_string(reply::status_type status);
|
||||
boost::asio::const_buffer status_to_buffer(reply::status_type status);
|
||||
};
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#endif // REPLY_HPP
|
||||
|
||||
@@ -5,6 +5,10 @@
|
||||
|
||||
#include <string>
|
||||
|
||||
namespace osrm
|
||||
{
|
||||
namespace server
|
||||
{
|
||||
namespace http
|
||||
{
|
||||
|
||||
@@ -16,6 +20,8 @@ struct request
|
||||
boost::asio::ip::address endpoint;
|
||||
};
|
||||
|
||||
} // namespace http
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#endif // REQUEST_HPP
|
||||
|
||||
Reference in New Issue
Block a user