Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitc226fd5

Browse files
committed
The great exodus from Boost.
1 parent5be546f commitc226fd5

File tree

215 files changed

+3875
-4439
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

215 files changed

+3875
-4439
lines changed

‎include/network/constants.hpp‎

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
#ifndefBOOST_NETWORK_CONSTANTS_HPP_20100808
2-
#defineBOOST_NETWORK_CONSTANTS_HPP_20100808
1+
#ifndefNETWORK_CONSTANTS_HPP_20100808
2+
#defineNETWORK_CONSTANTS_HPP_20100808
33

44
// Copyright 2010 (C) Dean Michael Berris
55
// Copyright 2012 Google, Inc.
66
// Distributed under the Boost Software License, Version 1.0.
77
// (See accompanying file LICENSE_1_0.txt or copy at
88
// http://www.boost.org/LICENSE_1_0.txt)
99

10-
namespaceboost {namespacenetwork {
10+
namespacenetwork {
1111

1212
structconstants {
1313
staticcharconst *crlf();
@@ -37,6 +37,4 @@ struct constants {
3737

3838
}// namespace network
3939

40-
}// namespace boost
41-
42-
#endif// BOOST_NETWORK_CONSTANTS_HPP_20100808
40+
#endif// NETWORK_CONSTANTS_HPP_20100808

‎include/network/constants.ipp‎

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
#ifndefBOOST_NETWORK_CONSTANTS_HPP_20111008
2-
#defineBOOST_NETWORK_CONSTANTS_HPP_20111008
1+
#ifndefNETWORK_CONSTANTS_HPP_20111008
2+
#defineNETWORK_CONSTANTS_HPP_20111008
33

44
// Copyright 2011 Dean Michael Berris <dberris@google.com>.
55
// Copyright 2011 Google, Inc.
@@ -10,7 +10,7 @@
1010
#include<network/constants.hpp>
1111
#include<network/version.hpp>
1212

13-
namespaceboost {namespacenetwork {
13+
namespacenetwork {
1414

1515
charconst *constants::crlf() {
1616
staticchar crlf_[] ="\r\n";
@@ -119,12 +119,10 @@ char const * constants::https() {
119119
}
120120

121121
charconst *constants::default_user_agent() {
122-
staticchar user_agent_[] ="cpp-netlib/"BOOST_NETLIB_VERSION;
122+
staticchar user_agent_[] ="cpp-netlib/"NETLIB_VERSION;
123123
return user_agent_;
124124
}
125125

126-
}/* network*/
126+
}// namespace network
127127

128-
}/* boost*/
129-
130-
#endif/* BOOST_NETWORK_CONSTANTS_HPP_20111008*/
128+
#endif/* NETWORK_CONSTANTS_HPP_20111008*/

‎include/network/detail/debug.hpp‎

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,26 @@
1-
#ifndefBOOST_NETWORK_DEBUG_HPP_20110410
2-
#defineBOOST_NETWORK_DEBUG_HPP_20110410
1+
#ifndefNETWORK_DEBUG_HPP_20110410
2+
#defineNETWORK_DEBUG_HPP_20110410
33

44
// (c) Copyright 2011 Dean Michael Berris.
55
// Copyright 2012 Google, Inc.
66
// Distributed under the Boost Software License, Version 1.0.
77
// (See accompanying file LICENSE_1_0.txt or copy at
88
// http://www.boost.org/LICENSE_1_0.txt)
99

10-
/**BOOST_NETWORK_MESSAGE is a debugging macro used by cpp-netlib to
11-
print out network-related errors through standard error. This is
12-
onlyuseful whenBOOST_NETWORK_DEBUG is turned on. Otherwise
13-
the macro amounts to ano-op.
10+
/**NETWORK_MESSAGE is a debugging macro used by cpp-netlib to
11+
print out network-related errors through standard error. This is only
12+
useful whenNETWORK_DEBUG is turned on. Otherwise the macro amounts to a
13+
no-op.
1414
*/
15-
#ifdefBOOST_NETWORK_DEBUG
15+
#ifdefNETWORK_DEBUG
1616
#include<iostream>
17-
#ifndefBOOST_NETWORK_MESSAGE
18-
#defineBOOST_NETWORK_MESSAGE(msg) std::cerr <<"[DEBUG" << __FILE__ <<':' << __LINE__ <<"]:" << msg << std::endl;
17+
#ifndefNETWORK_MESSAGE
18+
#defineNETWORK_MESSAGE(msg) std::cerr <<"[DEBUG" << __FILE__ <<':' << __LINE__ <<"]:" << msg << std::endl;
1919
#endif
2020
#else
21-
#ifndefBOOST_NETWORK_MESSAGE
22-
#defineBOOST_NETWORK_MESSAGE(msg)
21+
#ifndefNETWORK_MESSAGE
22+
#defineNETWORK_MESSAGE(msg)
2323
#endif
2424
#endif
2525

26-
#endif/* end of include guard:BOOST_NETWORK_DEBUG_HPP_20110410*/
26+
#endif/* end of include guard:NETWORK_DEBUG_HPP_20110410*/

‎include/network/detail/directive_base.hpp‎

Lines changed: 4 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -5,31 +5,16 @@
55
// (See accompanying file LICENSE_1_0.txt or copy at
66
// http://www.boost.org/LICENSE_1_0.txt)
77

8-
#ifndef__NETWORK_DETAIL_DIRECTIVE_BASE_HPP__
9-
#define__NETWORK_DETAIL_DIRECTIVE_BASE_HPP__
8+
#ifndefNETWORK_DETAIL_DIRECTIVE_BASE_HPP__
9+
#defineNETWORK_DETAIL_DIRECTIVE_BASE_HPP__
1010

1111
/** Defines the base type from which all directives inherit
1212
* to allow friend access to message and other types' internals.
1313
*/
14-
namespaceboost {namespacenetwork {namespacedetail {
15-
16-
template<classTag>
17-
structdirective_base {
18-
typedef Tag tag ;
19-
//explicit directive_base(basic_message<tag> & message_)
20-
// : _message(message_)
21-
protected:
22-
~directive_base()
23-
{ };// can only be extended
24-
25-
// mutable basic_message<tag> & _message;
26-
};
14+
namespacenetwork {namespacedetail {
2715

2816
}// namespace detail
2917

3018
}// namespace network
3119

32-
}// namespace boost
33-
34-
#endif// __NETWORK_DETAIL_DIRECTIVE_BASE_HPP__
35-
20+
#endif// NETWORK_DETAIL_DIRECTIVE_BASE_HPP__

‎include/network/detail/wrapper_base.hpp‎

Lines changed: 3 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -5,42 +5,8 @@
55
// (See accompanying file LICENSE_1_0.txt or copy at
66
// http://www.boost.org/LICENSE_1_0.txt)
77

8-
#ifndef__NETWORK_DETAIL_WRAPPER_BASE_HPP__
9-
#define__NETWORK_DETAIL_WRAPPER_BASE_HPP__
8+
#ifndefNETWORK_DETAIL_WRAPPER_BASE_HPP__
9+
#defineNETWORK_DETAIL_WRAPPER_BASE_HPP__
1010

11-
namespaceboost {namespacenetwork {
12-
13-
namespacedetail {
14-
15-
template<classTag,classMessage>
16-
structwrapper_base {
17-
explicitwrapper_base(Message & message_)
18-
: _message(message_)
19-
{};
20-
21-
protected:
22-
~wrapper_base() {};// for extending only
23-
24-
Message & _message;
25-
};
26-
27-
template<classTag,classMessage>
28-
structwrapper_base_const {
29-
explicitwrapper_base_const(Messageconst & message_)
30-
: _message(message_)
31-
{}
32-
33-
protected:
34-
~wrapper_base_const() {};// for extending only
35-
36-
Messageconst & _message;
37-
};
38-
39-
}// namespace detail
40-
41-
}// namespace network
42-
43-
}// namespace boost
44-
45-
#endif// __NETWORK_DETAIL_WRAPPER_BASE_HPP__
11+
#endif// NETWORK_DETAIL_WRAPPER_BASE_HPP__
4612

‎include/network/http/client.hpp‎

Lines changed: 12 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,16 @@
1-
// Copyright (c) Glyn Matthews 2012.
1+
// Copyright (c) Glyn Matthews 2012.
2+
// Copyright 2012 Dean Michael Berris <dberris@google.com>.
3+
// Copyright 2012 Google, Inc.
24
// Distributed under the Boost Software License, Version 1.0.
3-
//(See accompanying file LICENSE_1_0.txt or copy at
4-
//http://www.boost.org/LICENSE_1_0.txt)
5+
// (See accompanying file LICENSE_1_0.txt or copy at
6+
// http://www.boost.org/LICENSE_1_0.txt)
57

6-
#ifndef__NETWORK_HTTP_CLIENT_INC__
7-
#define__NETWORK_HTTP_CLIENT_INC__
8+
#ifndefNETWORK_HTTP_CLIENT_INC__
9+
#defineNETWORK_HTTP_CLIENT_INC__
810

9-
#include<network/protocol/http/client.hpp>
10-
#include<network/http/request.hpp>
11-
#include<network/http/response.hpp>
12-
#include<network/http/errors.hpp>
11+
#include<network/protocol/http/client.hpp>
12+
#include<network/http/request.hpp>
13+
#include<network/http/response.hpp>
14+
#include<network/http/errors.hpp>
1315

14-
namespacenetwork {
15-
using boost::network::header;
16-
17-
namespacehttp {
18-
using boost::network::http::client;
19-
}// namespace http
20-
}// namespace network
21-
22-
#endif// __NETWORK_HTTP_CLIENT_INC__
16+
#endif// NETWORK_HTTP_CLIENT_INC__

‎include/network/http/errors.hpp‎

Lines changed: 7 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,11 @@
1-
//Copyright (c) Glyn Matthews 2012.
1+
// Copyright (c) Glyn Matthews 2012.
22
// Distributed under the Boost Software License, Version 1.0.
3-
//(See accompanying file LICENSE_1_0.txt or copy at
4-
//http://www.boost.org/LICENSE_1_0.txt)
3+
// (See accompanying file LICENSE_1_0.txt or copy at
4+
// http://www.boost.org/LICENSE_1_0.txt)
55

6-
#ifndef__NETWORK_HTTP_ERRORS_INC__
7-
#define__NETWORK_HTTP_ERRORS_INC__
6+
#ifndefNETWORK_HTTP_ERRORS_INC__
7+
#defineNETWORK_HTTP_ERRORS_INC__
88

9-
#include<network/protocol/http/errors.hpp>
9+
#include<network/protocol/http/errors.hpp>
1010

11-
namespacenetwork {
12-
namespacehttp {
13-
namespaceerrors {
14-
using boost::network::http::errors::connection_timeout;
15-
}// namespace errors
16-
}// namespace http
17-
}// namespace network
18-
19-
#endif// __NETWORK_HTTP_ERRORS_INC__
11+
#endif// NETWORK_HTTP_ERRORS_INC__

‎include/network/http/request.hpp‎

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,11 @@
1-
//Copyright (c) Glyn Matthews 2012.
1+
// Copyright (c) Glyn Matthews 2012.
22
// Distributed under the Boost Software License, Version 1.0.
3-
//(See accompanying file LICENSE_1_0.txt or copy at
4-
//http://www.boost.org/LICENSE_1_0.txt)
3+
// (See accompanying file LICENSE_1_0.txt or copy at
4+
// http://www.boost.org/LICENSE_1_0.txt)
55

6-
#ifndef__NETWORK_HTTP_REQUEST_INC__
7-
#define__NETWORK_HTTP_REQUEST_INC__
6+
#ifndefNETWORK_HTTP_REQUEST_INC__
7+
#defineNETWORK_HTTP_REQUEST_INC__
88

9-
#include<network/protocol/http/request.hpp>
9+
#include<network/protocol/http/request.hpp>
1010

11-
namespacenetwork {
12-
namespacehttp {
13-
using boost::network::http::request;
14-
}// namespace http
15-
}// namespace network
16-
17-
#endif// __NETWORK_HTTP_REQUEST_INC__
11+
#endif// NETWORK_HTTP_REQUEST_INC__

‎include/network/http/response.hpp‎

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,11 @@
1-
//Copyright (c) Glyn Matthews 2012.
1+
// Copyright (c) Glyn Matthews 2012.
22
// Distributed under the Boost Software License, Version 1.0.
3-
//(See accompanying file LICENSE_1_0.txt or copy at
4-
//http://www.boost.org/LICENSE_1_0.txt)
3+
// (See accompanying file LICENSE_1_0.txt or copy at
4+
// http://www.boost.org/LICENSE_1_0.txt)
55

6-
#ifndef__NETWORK_HTTP_RESPONSE_INC__
7-
#define__NETWORK_HTTP_RESPONSE_INC__
6+
#ifndefNETWORK_HTTP_RESPONSE_INC__
7+
#defineNETWORK_HTTP_RESPONSE_INC__
88

9-
#include<network/protocol/http/response.hpp>
9+
#include<network/protocol/http/response.hpp>
1010

11-
namespacenetwork {
12-
namespacehttp {
13-
using boost::network::http::response;
14-
}// namespace http
15-
}// namespace network
16-
17-
#endif// __NETWORK_HTTP_RESPONSE_INC__
11+
#endif// NETWORK_HTTP_RESPONSE_INC__
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
#ifndef BOOST_NETWORK_INCLUDE_HTTP_CLIENT_HPP_
2-
#defineBOOST_NETWORK_INCLUDE_HTTP_CLIENT_HPP_
3-
41
// Copyright 2009 Dean Michael Berris
52
// Copyright 2012 Google, Inc.
63
// Distributed under the Boost Software License, Version 1.0.
@@ -9,6 +6,9 @@
96
//
107
// This is the modular include file for using the HTTP Client
118

9+
#ifndef NETWORK_INCLUDE_HTTP_CLIENT_HPP_
10+
#defineNETWORK_INCLUDE_HTTP_CLIENT_HPP_
11+
1212
#include<network/protocol/http/client.hpp>
1313
#include<network/message/wrappers.hpp>
1414
#include<network/protocol/http/message/directives.hpp>
@@ -17,5 +17,5 @@
1717
#include<network/message/directives.hpp>
1818
#include<network/message/transformers.hpp>
1919

20-
#endif//BOOST_NETWORK_INCLUDE_HTTP_CLIENT_HPP_
20+
#endif//NETWORK_INCLUDE_HTTP_CLIENT_HPP_
2121

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp