Skip to content

Commit 65d0790

Browse files
author
FDB Document Layer Team
committed
Initial repository commit.
0 parents  commit 65d0790

File tree

289 files changed

+163655
-0
lines changed

Some content is hidden

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

289 files changed

+163655
-0
lines changed

.clang-format

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
Language: Cpp
2+
# BasedOnStyle: Mozilla
3+
AccessModifierOffset: -4
4+
AlignAfterOpenBracket: Align
5+
AlignConsecutiveAssignments: false
6+
AlignConsecutiveDeclarations: false
7+
AlignEscapedNewlinesLeft: false
8+
AlignOperands: true
9+
AlignTrailingComments: false
10+
AllowAllParametersOfDeclarationOnNextLine: false
11+
AllowShortBlocksOnASingleLine: false
12+
AllowShortCaseLabelsOnASingleLine: false
13+
AllowShortFunctionsOnASingleLine: Inline
14+
AllowShortIfStatementsOnASingleLine: false
15+
AllowShortLoopsOnASingleLine: false
16+
AlwaysBreakAfterDefinitionReturnType: None
17+
AlwaysBreakAfterReturnType: None
18+
AlwaysBreakBeforeMultilineStrings: false
19+
AlwaysBreakTemplateDeclarations: true
20+
BinPackArguments: true
21+
BinPackParameters: false
22+
BreakBeforeBinaryOperators: None
23+
BreakBeforeBraces: Attach
24+
ColumnLimit: 120
25+
CommentPragmas: '^ IWYU pragma:|^ clang-format: ignore$'
26+
ConstructorInitializerAllOnOneLineOrOnePerLine: true
27+
ConstructorInitializerIndentWidth: 4
28+
ContinuationIndentWidth: 4
29+
Cpp11BracedListStyle: true
30+
DerivePointerAlignment: false
31+
DisableFormat: false
32+
ExperimentalAutoDetectBinPacking: false
33+
ForEachMacros: [ foreach, Q_FOREACH, BOOST_FOREACH ]
34+
IndentCaseLabels: false
35+
IndentPPDirectives: None
36+
IndentWidth: 4
37+
IndentWrappedFunctionNames: false
38+
KeepEmptyLinesAtTheStartOfBlocks: true
39+
MacroBlockBegin: ''
40+
MacroBlockEnd: ''
41+
MaxEmptyLinesToKeep: 1
42+
NamespaceIndentation: None
43+
ObjCBlockIndentWidth: 2
44+
ObjCSpaceAfterProperty: true
45+
ObjCSpaceBeforeProtocolList: false
46+
PenaltyBreakAssignment: 2
47+
PenaltyBreakBeforeFirstCallParameter: 19
48+
PenaltyBreakComment: 300
49+
PenaltyBreakFirstLessLess: 120
50+
PenaltyBreakString: 1000
51+
PenaltyExcessCharacter: 1000000
52+
PenaltyReturnTypeOnItsOwnLine: 200
53+
PointerAlignment: Left
54+
ReflowComments: true
55+
SortIncludes: true
56+
SortUsingDeclarations: true
57+
SpaceAfterCStyleCast: false
58+
SpaceAfterTemplateKeyword: true
59+
SpaceBeforeAssignmentOperators: true
60+
SpaceBeforeCtorInitializerColon: true
61+
SpaceBeforeInheritanceColon: true
62+
SpaceBeforeParens: ControlStatements
63+
SpaceBeforeRangeBasedForLoopColon: true
64+
SpaceInEmptyParentheses: false
65+
SpacesBeforeTrailingComments: 1
66+
SpacesInAngles: false
67+
SpacesInContainerLiterals: true
68+
SpacesInCStyleCastParentheses: false
69+
SpacesInParentheses: false
70+
SpacesInSquareBrackets: false
71+
Standard: Cpp11
72+
TabWidth: 4
73+
UseTab: ForIndentation

.gitignore

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
./bin/
2+
./lib/
3+
./temp/
4+
documentation/_build/
5+
performance/bin/
6+
performance/pkg/
7+
deploy/bin/
8+
.objs/
9+
.deps/
10+
.docs/
11+
.dist/
12+
.out/
13+
.extdep/
14+
15+
packages/
16+
packaging/msi/FDBInstaller.wix*
17+
packaging/msi/FDBInstaller.msi
18+
packaging/msi/*.log
19+
packaging/msi/obj
20+
21+
*.g.cpp
22+
*.g.h
23+
*.g.S
24+
*.g.asm
25+
*.sdf
26+
*.swp
27+
*.opensdf
28+
*.user
29+
*.suo
30+
*.pyc
31+
*.amplxelink
32+
*.inspxelink
33+
*.class
34+
*.rej
35+
trace.*
36+
fdbdoc-trace.*
37+
tags
38+
*~
39+
.idea/*
40+
41+
smoke_tests/nodejs/node_modules/
42+
smoke_tests/**/target/
43+
44+
*.out
45+
scrap/
46+
47+
node_modules/
48+
49+
*.running
50+
*.failed
51+
52+
build*/

ACKNOWLEDGEMENTS

Lines changed: 213 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,213 @@
1+
Acknowledgements
2+
Portions of this FoundationDB Software may utilize the following copyrighted
3+
material, the use of which is hereby acknowledged.
4+
5+
_____________________
6+
7+
10gen Inc (bson-cpp)
8+
Copyright 2010 10gen Inc.
9+
10+
Licensed under the Apache License, Version 2.0 (the "License");
11+
you may not use this file except in compliance with the License.
12+
You may obtain a copy of the License at
13+
14+
http://www.apache.org/licenses/LICENSE-2.0
15+
16+
Unless required by applicable law or agreed to in writing, software
17+
distributed under the License is distributed on an "AS IS" BASIS,
18+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19+
See the License for the specific language governing permissions and
20+
limitations under the License.
21+
22+
Beman Dawes, Christopher M. Kohlhoff (Boost)
23+
The Boost License (http://www.boost.org/users/license.html) does not require
24+
attribution or republication when Boost is redistributed in the form of
25+
machine-executable object code generated by a source language processor.
26+
27+
University of Cambridge, Zoltan Herczeg, Google Inc. (PCRE, release 8.35)
28+
THE BASIC LIBRARY FUNCTIONS
29+
---------------------------
30+
31+
Written by: Philip Hazel
32+
Email local part: ph10
33+
Email domain: cam.ac.uk
34+
35+
University of Cambridge Computing Service,
36+
Cambridge, England.
37+
38+
Copyright (c) 1997-2014 University of Cambridge
39+
All rights reserved.
40+
41+
42+
PCRE JUST-IN-TIME COMPILATION SUPPORT
43+
-------------------------------------
44+
45+
Written by: Zoltan Herczeg
46+
Email local part: hzmester
47+
Emain domain: freemail.hu
48+
49+
Copyright(c) 2010-2014 Zoltan Herczeg
50+
All rights reserved.
51+
52+
53+
STACK-LESS JUST-IN-TIME COMPILER
54+
--------------------------------
55+
56+
Written by: Zoltan Herczeg
57+
Email local part: hzmester
58+
Emain domain: freemail.hu
59+
60+
Copyright(c) 2009-2014 Zoltan Herczeg
61+
All rights reserved.
62+
63+
64+
THE C++ WRAPPER FUNCTIONS
65+
-------------------------
66+
67+
Contributed by: Google Inc.
68+
69+
Copyright (c) 2007-2012, Google Inc.
70+
All rights reserved.
71+
72+
73+
THE "BSD" LICENCE
74+
-----------------
75+
76+
Redistribution and use in source and binary forms, with or without
77+
modification, are permitted provided that the following conditions are met:
78+
79+
* Redistributions of source code must retain the above copyright notice,
80+
this list of conditions and the following disclaimer.
81+
82+
* Redistributions in binary form must reproduce the above copyright
83+
notice, this list of conditions and the following disclaimer in the
84+
documentation and/or other materials provided with the distribution.
85+
86+
* Neither the name of the University of Cambridge nor the name of Google
87+
Inc. nor the names of their contributors may be used to endorse or
88+
promote products derived from this software without specific prior
89+
written permission.
90+
91+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
92+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
93+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
94+
ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
95+
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
96+
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
97+
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
98+
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
99+
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
100+
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
101+
POSSIBILITY OF SUCH DAMAGE.
102+
103+
Gustavo Niemeyer (mgo - MongoDB driver for Go)
104+
Copyright (c) 2010-2013 - Gustavo Niemeyer <[email protected]>
105+
106+
All rights reserved.
107+
108+
Redistribution and use in source and binary forms, with or without
109+
modification, are permitted provided that the following conditions are met:
110+
111+
1. Redistributions of source code must retain the above copyright notice, this
112+
list of conditions and the following disclaimer.
113+
2. Redistributions in binary form must reproduce the above copyright notice,
114+
this list of conditions and the following disclaimer in the documentation
115+
and/or other materials provided with the distribution.
116+
117+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
118+
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
119+
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
120+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
121+
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
122+
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
123+
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
124+
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
125+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
126+
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
127+
128+
MongoDB, Inc. (PyMongo)
129+
Copyright 2008-present MongoDB, Inc.
130+
131+
Licensed under the Apache License, Version 2.0 (the "License");
132+
you may not use this file except in compliance with the License.
133+
You may obtain a copy of the License at
134+
135+
http://www.apache.org/licenses/LICENSE-2.0
136+
137+
Unless required by applicable law or agreed to in writing, software
138+
distributed under the License is distributed on an "AS IS" BASIS,
139+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
140+
See the License for the specific language governing permissions and
141+
limitations under the License.
142+
143+
Paul Ganssle, dateutil contributors (python-dateutil)
144+
Copyright 2017- Paul Ganssle <[email protected]>
145+
Copyright 2017- dateutil contributors (see AUTHORS file)
146+
147+
Licensed under the Apache License, Version 2.0 (the "License");
148+
you may not use this file except in compliance with the License.
149+
You may obtain a copy of the License at
150+
151+
http://www.apache.org/licenses/LICENSE-2.0
152+
153+
Unless required by applicable law or agreed to in writing, software
154+
distributed under the License is distributed on an "AS IS" BASIS,
155+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
156+
See the License for the specific language governing permissions and
157+
limitations under the License.
158+
159+
The above license applies to all contributions after 2017-12-01, as well as
160+
all contributions that have been re-licensed (see AUTHORS file for the list of
161+
contributors who have re-licensed their code).
162+
163+
164+
Ingy döt Net, Kirill Simonov (PyYaml)
165+
Copyright (c) 2017-2018 Ingy döt Net
166+
Copyright (c) 2006-2016 Kirill Simonov
167+
168+
Permission is hereby granted, free of charge, to any person obtaining a copy of
169+
this software and associated documentation files (the "Software"), to deal in
170+
the Software without restriction, including without limitation the rights to
171+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
172+
of the Software, and to permit persons to whom the Software is furnished to do
173+
so, subject to the following conditions:
174+
175+
The above copyright notice and this permission notice shall be included in all
176+
copies or substantial portions of the Software.
177+
178+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
179+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
180+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
181+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
182+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
183+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
184+
SOFTWARE.
185+
186+
Jay Loden, Dave Daeschler, Giampaolo Rodola' (psutil)
187+
psutil is distributed under BSD license reproduced below.
188+
189+
Copyright (c) 2009, Jay Loden, Dave Daeschler, Giampaolo Rodola'
190+
All rights reserved.
191+
192+
Redistribution and use in source and binary forms, with or without modification,
193+
are permitted provided that the following conditions are met:
194+
195+
* Redistributions of source code must retain the above copyright notice, this
196+
list of conditions and the following disclaimer.
197+
* Redistributions in binary form must reproduce the above copyright notice,
198+
this list of conditions and the following disclaimer in the documentation
199+
and/or other materials provided with the distribution.
200+
* Neither the name of the psutil authors nor the names of its contributors
201+
may be used to endorse or promote products derived from this software without
202+
specific prior written permission.
203+
204+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
205+
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
206+
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
207+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
208+
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
209+
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
210+
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
211+
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
212+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
213+
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

CMakeLists.txt

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
cmake_minimum_required(VERSION 3.11)
2+
project(fdb_doc_layer VERSION 1.6.0 LANGUAGES C CXX)
3+
4+
set(default_build_type "RelWithDbgInfo")
5+
if(NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES)
6+
message(STATUS "Setting build type to '${default_build_type}' as none was specified.")
7+
set(CMAKE_BUILD_TYPE "${default_build_type}" CACHE
8+
STRING "Choose the type of build." FORCE)
9+
# Set the possible values of build type for cmake-gui
10+
set_property(CACHE CMAKE_BUILD_TYPE PROPERTY STRINGS
11+
"Debug" "Release" "MinSizeRel" "RelWithDebInfo")
12+
endif()
13+
14+
if(DEFINED ENV{RELEASE})
15+
message(STATUS "Running Release build")
16+
set(BUILD_PRERELEASE OFF)
17+
else()
18+
message(STATUS "Running Pre-release build")
19+
set(BUILD_PRERELEASE ON)
20+
endif()
21+
22+
set(CMAKE_CXX_STANDARD 11)
23+
set(CMAKE_CXX_STANDARD_REQUIRED ON)
24+
set(CMAKE_CXX_EXTENSIONS OFF)
25+
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
26+
27+
set(Boost_USE_STATIC_LIBS ON)
28+
29+
set(FDB_VERSION 6.0.11)
30+
31+
if(DEFINED ENV{IDE_BUILD})
32+
message(STATUS "Doing IDE build")
33+
set(DO_IDE_BUILD ON)
34+
else()
35+
message(STATUS "Doing Normal build")
36+
set(DO_IDE_BUILD OFF)
37+
endif()
38+
39+
find_package(Boost 1.67 EXACT REQUIRED COMPONENTS filesystem system)
40+
find_package(Threads)
41+
42+
43+
add_subdirectory(src)

0 commit comments

Comments
 (0)