From 376c972d614ca7909964d200a4dbe8f5da963430 Mon Sep 17 00:00:00 2001 From: DivyPatel9881 Date: Sat, 27 Jun 2020 20:17:57 +0530 Subject: [PATCH] feat: add license header to the source files. --- casbin/config.h | 16 ++++++++++++++++ casbin/config/Config.h | 16 ++++++++++++++++ casbin/config/config.cpp | 16 ++++++++++++++++ casbin/config/config_interface.h | 16 ++++++++++++++++ casbin/duktape.h | 16 ++++++++++++++++ casbin/effect.h | 16 ++++++++++++++++ casbin/effect/Effect.h | 16 ++++++++++++++++ casbin/effect/Effector.h | 16 ++++++++++++++++ casbin/effect/default_effector.cpp | 16 ++++++++++++++++ casbin/effect/default_effector.h | 16 ++++++++++++++++ casbin/enforcer.cpp | 16 ++++++++++++++++ casbin/enforcer.h | 1 + casbin/enforcer_interface.h | 16 ++++++++++++++++ casbin/internal_api.cpp | 16 ++++++++++++++++ casbin/management_api.cpp | 16 ++++++++++++++++ casbin/model.h | 16 ++++++++++++++++ casbin/model/Assertion.h | 16 ++++++++++++++++ casbin/model/Function.h | 16 ++++++++++++++++ casbin/model/Model.h | 16 ++++++++++++++++ casbin/model/assertion.cpp | 16 ++++++++++++++++ casbin/model/function.cpp | 16 ++++++++++++++++ casbin/model/model.cpp | 16 ++++++++++++++++ casbin/model/scope_config.cpp | 16 ++++++++++++++++ casbin/model/scope_config.h | 16 ++++++++++++++++ casbin/persist.h | 16 ++++++++++++++++ casbin/persist/Adapter.h | 16 ++++++++++++++++ casbin/persist/Adapter_Filtered.h | 16 ++++++++++++++++ casbin/persist/Watcher.h | 16 ++++++++++++++++ casbin/persist/adapter.cpp | 16 ++++++++++++++++ casbin/persist/batch_adapter.h | 16 ++++++++++++++++ casbin/persist/default_watcher.cpp | 16 ++++++++++++++++ casbin/persist/default_watcher.h | 16 ++++++++++++++++ casbin/persist/default_watcher_ex.cpp | 16 ++++++++++++++++ casbin/persist/default_watcher_ex.h | 16 ++++++++++++++++ casbin/persist/watcher_ex.h | 16 ++++++++++++++++ casbin/rbac.h | 16 ++++++++++++++++ casbin/rbac/default_role_manager.cpp | 16 ++++++++++++++++ casbin/rbac/default_role_manager.h | 16 ++++++++++++++++ casbin/rbac/role_manager.h | 16 ++++++++++++++++ casbin/rbac_api.cpp | 16 ++++++++++++++++ casbin/rbac_api_with_domains.cpp | 16 ++++++++++++++++ casbin/util.h | 16 ++++++++++++++++ casbin/util/array_equals.cpp | 16 ++++++++++++++++ casbin/util/array_remove_duplicates.cpp | 16 ++++++++++++++++ casbin/util/array_to_string.cpp | 16 ++++++++++++++++ casbin/util/built_in_functions.cpp | 16 ++++++++++++++++ casbin/util/built_in_functions.h | 16 ++++++++++++++++ casbin/util/ends_with.cpp | 16 ++++++++++++++++ casbin/util/escape_assertion.cpp | 16 ++++++++++++++++ casbin/util/find_all_occurences.cpp | 16 ++++++++++++++++ casbin/util/is_instance_of.cpp | 16 ++++++++++++++++ casbin/util/join.cpp | 16 ++++++++++++++++ casbin/util/join_slice.cpp | 16 ++++++++++++++++ casbin/util/remove_comments.cpp | 16 ++++++++++++++++ casbin/util/set_subtract.cpp | 16 ++++++++++++++++ casbin/util/split.cpp | 16 ++++++++++++++++ casbin/util/trim.cpp | 16 ++++++++++++++++ casbin/util/util.h | 16 ++++++++++++++++ 58 files changed, 913 insertions(+) diff --git a/casbin/config.h b/casbin/config.h index 55f64891..bba436e2 100644 --- a/casbin/config.h +++ b/casbin/config.h @@ -1,3 +1,19 @@ +/* +* Copyright 2020 The casbin Authors. All Rights Reserved. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + #ifndef CASBIN_CPP_CONFIG #define CASBIN_CPP_CONFIG diff --git a/casbin/config/Config.h b/casbin/config/Config.h index 4c5afa52..8b74ccb9 100644 --- a/casbin/config/Config.h +++ b/casbin/config/Config.h @@ -1,3 +1,19 @@ +/* +* Copyright 2020 The casbin Authors. All Rights Reserved. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + #ifndef CASBIN_CPP_CONFIG_CONFIG #define CASBIN_CPP_CONFIG_CONFIG diff --git a/casbin/config/config.cpp b/casbin/config/config.cpp index 26ef3edf..02ac90be 100644 --- a/casbin/config/config.cpp +++ b/casbin/config/config.cpp @@ -1,3 +1,19 @@ +/* +* Copyright 2020 The casbin Authors. All Rights Reserved. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + #pragma once #include "pch.h" diff --git a/casbin/config/config_interface.h b/casbin/config/config_interface.h index 99ffa01f..e1adbab6 100644 --- a/casbin/config/config_interface.h +++ b/casbin/config/config_interface.h @@ -1,3 +1,19 @@ +/* +* Copyright 2020 The casbin Authors. All Rights Reserved. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + #ifndef CASBIN_CPP_CONFIG_CONFIG_INTERFACE #define CASBIN_CPP_CONFIG_CONFIG_INTERFACE diff --git a/casbin/duktape.h b/casbin/duktape.h index 8ac0dd88..e4888da0 100644 --- a/casbin/duktape.h +++ b/casbin/duktape.h @@ -1,3 +1,19 @@ +/* +* Copyright 2020 The casbin Authors. All Rights Reserved. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + #ifndef CASBIN_CPP_DUKTAPE #define CASBIN_CPP_DUKTAPE diff --git a/casbin/effect.h b/casbin/effect.h index f0ec199b..9b3d0acd 100644 --- a/casbin/effect.h +++ b/casbin/effect.h @@ -1,3 +1,19 @@ +/* +* Copyright 2020 The casbin Authors. All Rights Reserved. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + #ifndef CASBIN_CPP_EFFECT #define CASBIN_CPP_EFFECT diff --git a/casbin/effect/Effect.h b/casbin/effect/Effect.h index aa7c3bad..dbc3530f 100644 --- a/casbin/effect/Effect.h +++ b/casbin/effect/Effect.h @@ -1,3 +1,19 @@ +/* +* Copyright 2020 The casbin Authors. All Rights Reserved. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + #ifndef CASBIN_CPP_EFFECT_EFFECT #define CASBIN_CPP_EFFECT_EFFECT diff --git a/casbin/effect/Effector.h b/casbin/effect/Effector.h index 8e10d5f5..b628870f 100644 --- a/casbin/effect/Effector.h +++ b/casbin/effect/Effector.h @@ -1,3 +1,19 @@ +/* +* Copyright 2020 The casbin Authors. All Rights Reserved. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + #ifndef CASBIN_CPP_EFFECT_EFFECTOR #define CASBIN_CPP_EFFECT_EFFECTOR diff --git a/casbin/effect/default_effector.cpp b/casbin/effect/default_effector.cpp index 67e77394..8bff2093 100644 --- a/casbin/effect/default_effector.cpp +++ b/casbin/effect/default_effector.cpp @@ -1,3 +1,19 @@ +/* +* Copyright 2020 The casbin Authors. All Rights Reserved. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + #pragma once #include "pch.h" diff --git a/casbin/effect/default_effector.h b/casbin/effect/default_effector.h index 6456970a..b6c6c720 100644 --- a/casbin/effect/default_effector.h +++ b/casbin/effect/default_effector.h @@ -1,3 +1,19 @@ +/* +* Copyright 2020 The casbin Authors. All Rights Reserved. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + #ifndef CASBIN_CPP_EFFECT_DEFAULT_EFFECTOR #define CASBIN_CPP_EFFECT_DEFAULT_EFFECTOR diff --git a/casbin/enforcer.cpp b/casbin/enforcer.cpp index bc7797c8..7c514b23 100644 --- a/casbin/enforcer.cpp +++ b/casbin/enforcer.cpp @@ -1,3 +1,19 @@ +/* +* Copyright 2020 The casbin Authors. All Rights Reserved. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + #pragma once #include "pch.h" diff --git a/casbin/enforcer.h b/casbin/enforcer.h index 377b85ff..7234622a 100644 --- a/casbin/enforcer.h +++ b/casbin/enforcer.h @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + #ifndef CASBIN_CPP_ENFORCER #define CASBIN_CPP_ENFORCER diff --git a/casbin/enforcer_interface.h b/casbin/enforcer_interface.h index 16939883..7b1424fe 100644 --- a/casbin/enforcer_interface.h +++ b/casbin/enforcer_interface.h @@ -1,3 +1,19 @@ +/* +* Copyright 2020 The casbin Authors. All Rights Reserved. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + #ifndef CASBIN_CPP_ENFORCER_INTERFACE #define CASBIN_CPP_ENFORCER_INTERFACE diff --git a/casbin/internal_api.cpp b/casbin/internal_api.cpp index 8245fce2..33597955 100644 --- a/casbin/internal_api.cpp +++ b/casbin/internal_api.cpp @@ -1,3 +1,19 @@ +/* +* Copyright 2020 The casbin Authors. All Rights Reserved. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + #pragma once #include "pch.h" diff --git a/casbin/management_api.cpp b/casbin/management_api.cpp index dd77952e..f2dae877 100644 --- a/casbin/management_api.cpp +++ b/casbin/management_api.cpp @@ -1,3 +1,19 @@ +/* +* Copyright 2020 The casbin Authors. All Rights Reserved. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + #pragma once #include "pch.h" diff --git a/casbin/model.h b/casbin/model.h index e2a1196d..0fca1639 100644 --- a/casbin/model.h +++ b/casbin/model.h @@ -1,3 +1,19 @@ +/* +* Copyright 2020 The casbin Authors. All Rights Reserved. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + #ifndef CASBIN_CPP_MODEL #define CASBIN_CPP_MODEL diff --git a/casbin/model/Assertion.h b/casbin/model/Assertion.h index 7cfb2b24..8a35a549 100644 --- a/casbin/model/Assertion.h +++ b/casbin/model/Assertion.h @@ -1,3 +1,19 @@ +/* +* Copyright 2020 The casbin Authors. All Rights Reserved. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + #ifndef CASBIN_CPP_MODEL_ASSERTION #define CASBIN_CPP_MODEL_ASSERTION diff --git a/casbin/model/Function.h b/casbin/model/Function.h index 97253eec..6a80fcb8 100644 --- a/casbin/model/Function.h +++ b/casbin/model/Function.h @@ -1,3 +1,19 @@ +/* +* Copyright 2020 The casbin Authors. All Rights Reserved. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + #ifndef CASBIN_CPP_MODEL_FUNCTION #define CASBIN_CPP_MODEL_FUNCTION diff --git a/casbin/model/Model.h b/casbin/model/Model.h index e91bb35d..b11aa0fb 100644 --- a/casbin/model/Model.h +++ b/casbin/model/Model.h @@ -1,3 +1,19 @@ +/* +* Copyright 2020 The casbin Authors. All Rights Reserved. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + #ifndef CASBIN_CPP_MODEL_MODEL #define CASBIN_CPP_MODEL_MODEL diff --git a/casbin/model/assertion.cpp b/casbin/model/assertion.cpp index c827e0b8..b583f45c 100644 --- a/casbin/model/assertion.cpp +++ b/casbin/model/assertion.cpp @@ -1,3 +1,19 @@ +/* +* Copyright 2020 The casbin Authors. All Rights Reserved. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + #pragma once #include "pch.h" diff --git a/casbin/model/function.cpp b/casbin/model/function.cpp index 22719f1b..606652d8 100644 --- a/casbin/model/function.cpp +++ b/casbin/model/function.cpp @@ -1,3 +1,19 @@ +/* +* Copyright 2020 The casbin Authors. All Rights Reserved. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + #pragma once #include "pch.h" diff --git a/casbin/model/model.cpp b/casbin/model/model.cpp index 2f0f5e1d..080111a9 100644 --- a/casbin/model/model.cpp +++ b/casbin/model/model.cpp @@ -1,3 +1,19 @@ +/* +* Copyright 2020 The casbin Authors. All Rights Reserved. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + #pragma once #include "pch.h" diff --git a/casbin/model/scope_config.cpp b/casbin/model/scope_config.cpp index 26f84961..1df22cf7 100644 --- a/casbin/model/scope_config.cpp +++ b/casbin/model/scope_config.cpp @@ -1,3 +1,19 @@ +/* +* Copyright 2020 The casbin Authors. All Rights Reserved. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + #pragma once #include "pch.h" diff --git a/casbin/model/scope_config.h b/casbin/model/scope_config.h index 87a8d4eb..3ffd9a7b 100644 --- a/casbin/model/scope_config.h +++ b/casbin/model/scope_config.h @@ -1,3 +1,19 @@ +/* +* Copyright 2020 The casbin Authors. All Rights Reserved. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + #ifndef CASBIN_CPP_MODEL_SCOPE_CONFIG #define CASBIN_CPP_MODEL_SCOPE_CONFIG diff --git a/casbin/persist.h b/casbin/persist.h index e857eb7e..6f3bb043 100644 --- a/casbin/persist.h +++ b/casbin/persist.h @@ -1,3 +1,19 @@ +/* +* Copyright 2020 The casbin Authors. All Rights Reserved. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + #ifndef CASBIN_CPP_PERSIST #define CASBIN_CPP_PERSIST diff --git a/casbin/persist/Adapter.h b/casbin/persist/Adapter.h index 2acc37bc..8ec9ab50 100644 --- a/casbin/persist/Adapter.h +++ b/casbin/persist/Adapter.h @@ -1,3 +1,19 @@ +/* +* Copyright 2020 The casbin Authors. All Rights Reserved. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + #ifndef CASBIN_CPP_PERSIST_ADAPTER #define CASBIN_CPP_PERSIST_ADAPTER diff --git a/casbin/persist/Adapter_Filtered.h b/casbin/persist/Adapter_Filtered.h index 437b31cf..5d7023e7 100644 --- a/casbin/persist/Adapter_Filtered.h +++ b/casbin/persist/Adapter_Filtered.h @@ -1,3 +1,19 @@ +/* +* Copyright 2020 The casbin Authors. All Rights Reserved. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + #ifndef CASBIN_CPP_PERSIST_ADAPTER_FILTERED #define CASBIN_CPP_PERSIST_ADAPTER_FILTERED diff --git a/casbin/persist/Watcher.h b/casbin/persist/Watcher.h index d35c234c..5bc93116 100644 --- a/casbin/persist/Watcher.h +++ b/casbin/persist/Watcher.h @@ -1,3 +1,19 @@ +/* +* Copyright 2020 The casbin Authors. All Rights Reserved. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + #ifndef CASBIN_CPP_PERSIST_WATCHER #define CASBIN_CPP_PERSIST_WATCHER diff --git a/casbin/persist/adapter.cpp b/casbin/persist/adapter.cpp index c774a3cd..9363572a 100644 --- a/casbin/persist/adapter.cpp +++ b/casbin/persist/adapter.cpp @@ -1,3 +1,19 @@ +/* +* Copyright 2020 The casbin Authors. All Rights Reserved. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + #pragma once #include "pch.h" diff --git a/casbin/persist/batch_adapter.h b/casbin/persist/batch_adapter.h index 9e9cdf77..3c39d2e2 100644 --- a/casbin/persist/batch_adapter.h +++ b/casbin/persist/batch_adapter.h @@ -1,3 +1,19 @@ +/* +* Copyright 2020 The casbin Authors. All Rights Reserved. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + #ifndef CASBIN_CPP_PERSIST_BATCH_ADAPTER #define CASBIN_CPP_PERSIST_BATCH_ADAPTER diff --git a/casbin/persist/default_watcher.cpp b/casbin/persist/default_watcher.cpp index f62b94f2..a341005b 100644 --- a/casbin/persist/default_watcher.cpp +++ b/casbin/persist/default_watcher.cpp @@ -1,3 +1,19 @@ +/* +* Copyright 2020 The casbin Authors. All Rights Reserved. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + #pragma once #include "pch.h" diff --git a/casbin/persist/default_watcher.h b/casbin/persist/default_watcher.h index a4a600e2..1f523e7c 100644 --- a/casbin/persist/default_watcher.h +++ b/casbin/persist/default_watcher.h @@ -1,3 +1,19 @@ +/* +* Copyright 2020 The casbin Authors. All Rights Reserved. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + #ifndef CASBIN_CPP_PERSIST_DEFAULT_WATCHER #define CASBIN_CPP_PERSIST_DEFAULT_WATCHER diff --git a/casbin/persist/default_watcher_ex.cpp b/casbin/persist/default_watcher_ex.cpp index a59ae5ff..3560cb37 100644 --- a/casbin/persist/default_watcher_ex.cpp +++ b/casbin/persist/default_watcher_ex.cpp @@ -1,3 +1,19 @@ +/* +* Copyright 2020 The casbin Authors. All Rights Reserved. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + #pragma once #include "pch.h" diff --git a/casbin/persist/default_watcher_ex.h b/casbin/persist/default_watcher_ex.h index 3db9f389..3426a8c5 100644 --- a/casbin/persist/default_watcher_ex.h +++ b/casbin/persist/default_watcher_ex.h @@ -1,3 +1,19 @@ +/* +* Copyright 2020 The casbin Authors. All Rights Reserved. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + #ifndef CASBIN_CPP_PERSIST_DEFAULT_WATCHER_EX #define CASBIN_CPP_PERSIST_DEFAULT_WATCHER_EX diff --git a/casbin/persist/watcher_ex.h b/casbin/persist/watcher_ex.h index 85fd2bcd..c020e034 100644 --- a/casbin/persist/watcher_ex.h +++ b/casbin/persist/watcher_ex.h @@ -1,3 +1,19 @@ +/* +* Copyright 2020 The casbin Authors. All Rights Reserved. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + #ifndef CASBIN_CPP_PERSIST_WATCHER_EX #define CASBIN_CPP_PERSIST_WATCHER_EX diff --git a/casbin/rbac.h b/casbin/rbac.h index b8cbab3f..18b7f70a 100644 --- a/casbin/rbac.h +++ b/casbin/rbac.h @@ -1,3 +1,19 @@ +/* +* Copyright 2020 The casbin Authors. All Rights Reserved. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + #ifndef CASBIN_CPP_RBAC #define CASBIN_CPP_RBAC diff --git a/casbin/rbac/default_role_manager.cpp b/casbin/rbac/default_role_manager.cpp index 8fe61d15..029f4faf 100644 --- a/casbin/rbac/default_role_manager.cpp +++ b/casbin/rbac/default_role_manager.cpp @@ -1,3 +1,19 @@ +/* +* Copyright 2020 The casbin Authors. All Rights Reserved. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + #pragma once #include "pch.h" diff --git a/casbin/rbac/default_role_manager.h b/casbin/rbac/default_role_manager.h index 136335dd..ecb0571b 100644 --- a/casbin/rbac/default_role_manager.h +++ b/casbin/rbac/default_role_manager.h @@ -1,3 +1,19 @@ +/* +* Copyright 2020 The casbin Authors. All Rights Reserved. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + #ifndef CASBIN_CPP_RBAC_DEFAULT_ROLE_MANAGER #define CASBIN_CPP_RBAC_DEFAULT_ROLE_MANAGER diff --git a/casbin/rbac/role_manager.h b/casbin/rbac/role_manager.h index 2aa71d0e..e23c0686 100644 --- a/casbin/rbac/role_manager.h +++ b/casbin/rbac/role_manager.h @@ -1,3 +1,19 @@ +/* +* Copyright 2020 The casbin Authors. All Rights Reserved. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + #ifndef CASBIN_CPP_RBAC_ROLE_MANAGER #define CASBIN_CPP_RBAC_ROLE_MANAGER diff --git a/casbin/rbac_api.cpp b/casbin/rbac_api.cpp index 9cfd61fd..a28fdb45 100644 --- a/casbin/rbac_api.cpp +++ b/casbin/rbac_api.cpp @@ -1,3 +1,19 @@ +/* +* Copyright 2020 The casbin Authors. All Rights Reserved. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + #pragma once #include "pch.h" diff --git a/casbin/rbac_api_with_domains.cpp b/casbin/rbac_api_with_domains.cpp index 049f0b9d..01a30ed7 100644 --- a/casbin/rbac_api_with_domains.cpp +++ b/casbin/rbac_api_with_domains.cpp @@ -1,3 +1,19 @@ +/* +* Copyright 2020 The casbin Authors. All Rights Reserved. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + #pragma once #include "pch.h" diff --git a/casbin/util.h b/casbin/util.h index 9b787031..c4caa340 100644 --- a/casbin/util.h +++ b/casbin/util.h @@ -1,3 +1,19 @@ +/* +* Copyright 2020 The casbin Authors. All Rights Reserved. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + #ifndef CASBIN_CPP_UTIL #define CASBIN_CPP_UTIL diff --git a/casbin/util/array_equals.cpp b/casbin/util/array_equals.cpp index d3dc0b00..658cffa0 100644 --- a/casbin/util/array_equals.cpp +++ b/casbin/util/array_equals.cpp @@ -1,3 +1,19 @@ +/* +* Copyright 2020 The casbin Authors. All Rights Reserved. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + #pragma once #include "pch.h" diff --git a/casbin/util/array_remove_duplicates.cpp b/casbin/util/array_remove_duplicates.cpp index 0c907ca4..9ad15419 100644 --- a/casbin/util/array_remove_duplicates.cpp +++ b/casbin/util/array_remove_duplicates.cpp @@ -1,3 +1,19 @@ +/* +* Copyright 2020 The casbin Authors. All Rights Reserved. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + #pragma once #include "pch.h" diff --git a/casbin/util/array_to_string.cpp b/casbin/util/array_to_string.cpp index 32f1c07b..0695778a 100644 --- a/casbin/util/array_to_string.cpp +++ b/casbin/util/array_to_string.cpp @@ -1,3 +1,19 @@ +/* +* Copyright 2020 The casbin Authors. All Rights Reserved. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + #pragma once #include "pch.h" diff --git a/casbin/util/built_in_functions.cpp b/casbin/util/built_in_functions.cpp index 75b7eb15..9cd05e05 100644 --- a/casbin/util/built_in_functions.cpp +++ b/casbin/util/built_in_functions.cpp @@ -1,3 +1,19 @@ +/* +* Copyright 2020 The casbin Authors. All Rights Reserved. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + #pragma once #include "pch.h" diff --git a/casbin/util/built_in_functions.h b/casbin/util/built_in_functions.h index 90c9b3d3..c8fcbb1d 100644 --- a/casbin/util/built_in_functions.h +++ b/casbin/util/built_in_functions.h @@ -1,3 +1,19 @@ +/* +* Copyright 2020 The casbin Authors. All Rights Reserved. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + #ifndef CASBIN_CPP_UTIL_BUILT_IN_FUNCTIONS #define CASBIN_CPP_UTIL_BUILT_IN_FUNCTIONS diff --git a/casbin/util/ends_with.cpp b/casbin/util/ends_with.cpp index 6044381a..e0d88aee 100644 --- a/casbin/util/ends_with.cpp +++ b/casbin/util/ends_with.cpp @@ -1,3 +1,19 @@ +/* +* Copyright 2020 The casbin Authors. All Rights Reserved. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + #pragma once #include "pch.h" diff --git a/casbin/util/escape_assertion.cpp b/casbin/util/escape_assertion.cpp index cfb453ad..5c041510 100644 --- a/casbin/util/escape_assertion.cpp +++ b/casbin/util/escape_assertion.cpp @@ -1,3 +1,19 @@ +/* +* Copyright 2020 The casbin Authors. All Rights Reserved. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + #pragma once #include "pch.h" diff --git a/casbin/util/find_all_occurences.cpp b/casbin/util/find_all_occurences.cpp index 97f4a051..a34d152e 100644 --- a/casbin/util/find_all_occurences.cpp +++ b/casbin/util/find_all_occurences.cpp @@ -1,3 +1,19 @@ +/* +* Copyright 2020 The casbin Authors. All Rights Reserved. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + #pragma once #include "pch.h" diff --git a/casbin/util/is_instance_of.cpp b/casbin/util/is_instance_of.cpp index db5843c9..89932751 100644 --- a/casbin/util/is_instance_of.cpp +++ b/casbin/util/is_instance_of.cpp @@ -1,3 +1,19 @@ +/* +* Copyright 2020 The casbin Authors. All Rights Reserved. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + #pragma once #include "pch.h" diff --git a/casbin/util/join.cpp b/casbin/util/join.cpp index e1510053..6c4c13af 100644 --- a/casbin/util/join.cpp +++ b/casbin/util/join.cpp @@ -1,3 +1,19 @@ +/* +* Copyright 2020 The casbin Authors. All Rights Reserved. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + #pragma once #include "pch.h" diff --git a/casbin/util/join_slice.cpp b/casbin/util/join_slice.cpp index 73074b20..c1d5eb08 100644 --- a/casbin/util/join_slice.cpp +++ b/casbin/util/join_slice.cpp @@ -1,3 +1,19 @@ +/* +* Copyright 2020 The casbin Authors. All Rights Reserved. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + #pragma once #include "pch.h" diff --git a/casbin/util/remove_comments.cpp b/casbin/util/remove_comments.cpp index 94f4c86d..77d29ab5 100644 --- a/casbin/util/remove_comments.cpp +++ b/casbin/util/remove_comments.cpp @@ -1,3 +1,19 @@ +/* +* Copyright 2020 The casbin Authors. All Rights Reserved. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + #pragma once #include "pch.h" diff --git a/casbin/util/set_subtract.cpp b/casbin/util/set_subtract.cpp index debea89c..f4fd2aab 100644 --- a/casbin/util/set_subtract.cpp +++ b/casbin/util/set_subtract.cpp @@ -1,3 +1,19 @@ +/* +* Copyright 2020 The casbin Authors. All Rights Reserved. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + #pragma once #include "pch.h" diff --git a/casbin/util/split.cpp b/casbin/util/split.cpp index 83e603ff..4b2f656f 100644 --- a/casbin/util/split.cpp +++ b/casbin/util/split.cpp @@ -1,3 +1,19 @@ +/* +* Copyright 2020 The casbin Authors. All Rights Reserved. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + #pragma once #include "pch.h" diff --git a/casbin/util/trim.cpp b/casbin/util/trim.cpp index 66c4898f..42eba4e7 100644 --- a/casbin/util/trim.cpp +++ b/casbin/util/trim.cpp @@ -1,3 +1,19 @@ +/* +* Copyright 2020 The casbin Authors. All Rights Reserved. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + #pragma once #include "pch.h" diff --git a/casbin/util/util.h b/casbin/util/util.h index 5d029581..7fd700c2 100644 --- a/casbin/util/util.h +++ b/casbin/util/util.h @@ -1,3 +1,19 @@ +/* +* Copyright 2020 The casbin Authors. All Rights Reserved. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + #ifndef CASBIN_CPP_UTIL_UTIL #define CASBIN_CPP_UTIL_UTIL