Skip to content

Commit 90402c6

Browse files
authored
Merge pull request #27 from omegacoleman/master
add shortcut header include/bredis.hpp
2 parents 1612e26 + 50236ed commit 90402c6

File tree

3 files changed

+24
-4
lines changed

3 files changed

+24
-4
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -443,6 +443,9 @@ socket.cancel();
443443
444444
## API
445445
446+
There's a convenience header include/bredis.hpp, doing `#include "bredis.hpp"` will include
447+
every header under include/bredis/ .
448+
446449
### `Iterator` template
447450
448451
The underlying iterator type used for the dynamic buffer type (e.g. `boost::asio::streambuf`)
@@ -702,6 +705,7 @@ MIT
702705
- [nkochakian](https://github.com/nkochakian)
703706
- [Yuval Hager](https://github.com/yhager)
704707
- [Vinnie Falco](https://github.com/vinniefalco)
708+
- [Stephen Coleman](https://github.com/omegacoleman)
705709

706710
## See also
707711
- https://github.com/Cylix/cpp_redis

examples/multi-threads-1.cpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,7 @@
2828
#include <boost/program_options.hpp>
2929
#include <boost/tokenizer.hpp>
3030

31-
#include <bredis/Connection.hpp>
32-
#include <bredis/Extract.hpp>
33-
#include <bredis/Extract.hpp>
34-
#include <bredis/MarkerHelpers.hpp>
31+
#include <bredis.hpp>
3532
//#include "../t/SocketWithLogging.hpp"
3633

3734
// alias namespaces

include/bredis.hpp

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
//
2+
//
3+
// Copyright (c) 2019 Stephen Coleman omegacoleman at gmail dot com
4+
//
5+
// Distributed under the MIT Software License
6+
//
7+
#ifndef BREDIS_HPP
8+
#define BREDIS_HPP
9+
10+
#include <bredis/Command.hpp>
11+
#include <bredis/Connection.hpp>
12+
#include <bredis/Error.hpp>
13+
#include <bredis/Extract.hpp>
14+
#include <bredis/MarkerHelpers.hpp>
15+
#include <bredis/Markers.hpp>
16+
#include <bredis/Protocol.hpp>
17+
#include <bredis/Result.hpp>
18+
19+
#endif // BREDIS_HPP

0 commit comments

Comments
 (0)