cpp-validator/2.0.3

C++ header-only library for generic data validation
Recipe info
2024-01-20

Available packages
Header Only

Install
Add the following line to your conanfile.txt:
[requires]
cpp-validator/2.0.3

Using cpp-validator

Note

If you are a new Conan user, we recommend reading the how to consume packages tutorial.

If you need additional assistance, please ask a question in the Conan Center Index repository.

Simplest use case consuming this recipe and assuming CMake as your local build tool:

[requires]
cpp-validator/2.0.3
[generators]
CMakeDeps
CMakeToolchain
[layout]
cmake_layout
from conan import ConanFile
from conan.tools.cmake import cmake_layout


class ExampleRecipe(ConanFile):
    settings = "os", "compiler", "build_type", "arch"
    generators = "CMakeDeps", "CMakeToolchain"

    def requirements(self):
        self.requires("cpp-validator/2.0.3")

    def layout(self):
        cmake_layout(self)

Now, you can run this Conan command to locally install (and build if necessary) this recipe and its dependencies (if any):

$ conan install conanfile.txt --build=missing

Useful information to take into account to consume this library:


These are the main declared targets:

  • CMake package name(s): cpp-validator
  • CMake target name(s): cpp-validator::cpp-validator
  • pkg-config file name(s): cpp-validator.pc

A simple use case using the CMake file name and the global target:

# ...
find_package(cpp-validator REQUIRED)
# ...
target_link_libraries(YOUR_TARGET cpp-validator::cpp-validator)

These are all the available headers. Some of these ones might be non-public; make sure of it by visiting the cpp-validator homepage listed above:

#include "dracosha/validator/adapter.hpp"
#include "dracosha/validator/adapters/adapter_traits_wrapper.hpp"
#include "dracosha/validator/adapters/default_adapter.hpp"
#include "dracosha/validator/adapters/impl/default_adapter_impl.hpp"
#include "dracosha/validator/adapters/impl/intermediate_adapter_traits.hpp"
#include "dracosha/validator/adapters/make_intermediate_adapter.hpp"
#include "dracosha/validator/adapters/prevalidation_adapter.hpp"
#include "dracosha/validator/adapters/reporting_adapter.hpp"
#include "dracosha/validator/aggregation/aggregation.hpp"
#include "dracosha/validator/aggregation/aggregation.ipp"
#include "dracosha/validator/aggregation/all.hpp"
#include "dracosha/validator/aggregation/and.hpp"
#include "dracosha/validator/aggregation/any.hpp"
#include "dracosha/validator/aggregation/element_aggregation.hpp"
#include "dracosha/validator/aggregation/element_aggregation.ipp"
#include "dracosha/validator/aggregation/not.hpp"
#include "dracosha/validator/aggregation/or.hpp"
#include "dracosha/validator/aggregation/tree.hpp"
#include "dracosha/validator/aggregation/wrap_heterogeneous_index.hpp"
#include "dracosha/validator/aggregation/wrap_index.hpp"
#include "dracosha/validator/aggregation/wrap_it.hpp"
#include "dracosha/validator/apply.hpp"
#include "dracosha/validator/apply_generated_paths.hpp"
#include "dracosha/validator/apply_generated_paths.ipp"
#include "dracosha/validator/apply_member_path.hpp"
#include "dracosha/validator/apply_member_path.ipp"
#include "dracosha/validator/base_validator.hpp"
#include "dracosha/validator/basic_property.hpp"
#include "dracosha/validator/can_check_contains.hpp"
#include "dracosha/validator/can_get.hpp"
#include "dracosha/validator/check_contains.hpp"
#include "dracosha/validator/check_exists.hpp"
#include "dracosha/validator/check_member.hpp"
#include "dracosha/validator/check_member_exists_traits_proxy.hpp"
#include "dracosha/validator/check_member_path.hpp"
#include "dracosha/validator/compact_variadic_property.hpp"
#include "dracosha/validator/config.hpp"
#include "dracosha/validator/detail/aggregate_all.hpp"
#include "dracosha/validator/detail/aggregate_and.hpp"
#include "dracosha/validator/detail/aggregate_any.hpp"
#include "dracosha/validator/detail/aggregate_or.hpp"
#include "dracosha/validator/detail/backend_formatter_helper.hpp"
#include "dracosha/validator/detail/dispatcher_impl.hpp"
#include "dracosha/validator/detail/formatter_fmt.hpp"
#include "dracosha/validator/detail/formatter_std.hpp"
#include "dracosha/validator/detail/get_impl.hpp"
#include "dracosha/validator/detail/has_method.hpp"
#include "dracosha/validator/detail/has_property.hpp"
#include "dracosha/validator/detail/hint_helper.hpp"
#include "dracosha/validator/detail/logical_not.hpp"
#include "dracosha/validator/detail/member_helper.hpp"
#include "dracosha/validator/detail/member_helper.ipp"
#include "dracosha/validator/detail/reorder_and_present.hpp"
#include "dracosha/validator/dispatcher.hpp"
#include "dracosha/validator/embedded_object.hpp"
#include "dracosha/validator/error.hpp"
#include "dracosha/validator/extract.hpp"
#include "dracosha/validator/filter_member.hpp"
#include "dracosha/validator/filter_path.hpp"
#include "dracosha/validator/generate_paths.hpp"
#include "dracosha/validator/get.hpp"
#include "dracosha/validator/get_member.hpp"
#include "dracosha/validator/heterogeneous_property.hpp"
#include "dracosha/validator/ignore_compiler_warnings.hpp"
#include "dracosha/validator/interval.hpp"
#include "dracosha/validator/invoke_member_if_exists.hpp"
#include "dracosha/validator/lazy.hpp"
#include "dracosha/validator/make_member.hpp"
#include "dracosha/validator/make_validator.hpp"
#include "dracosha/validator/master_sample.hpp"
#include "dracosha/validator/member.hpp"
#include "dracosha/validator/member_path.hpp"
#include "dracosha/validator/member_property.hpp"
#include "dracosha/validator/member_with_name.hpp"
#include "dracosha/validator/member_with_name_list.hpp"
#include "dracosha/validator/operand.hpp"
#include "dracosha/validator/operators.hpp"
#include "dracosha/validator/operators/comparison.hpp"
#include "dracosha/validator/operators/contains.hpp"
#include "dracosha/validator/operators/exists.hpp"
#include "dracosha/validator/operators/flag.hpp"
#include "dracosha/validator/operators/in.hpp"
#include "dracosha/validator/operators/invert_op.hpp"
#include "dracosha/validator/operators/lex_in.hpp"
#include "dracosha/validator/operators/lexicographical.hpp"
#include "dracosha/validator/operators/logical.hpp"
#include "dracosha/validator/operators/number_patterns.hpp"
#include "dracosha/validator/operators/op_report_without_operand.hpp"
#include "dracosha/validator/operators/operator.hpp"
#include "dracosha/validator/operators/regex.hpp"
#include "dracosha/validator/operators/string_patterns.hpp"
#include "dracosha/validator/operators/wrap_op.hpp"
#include "dracosha/validator/prepend_super_member.hpp"
#include "dracosha/validator/prepend_super_member.ipp"
#include "dracosha/validator/prevalidation/clear_validated.hpp"
#include "dracosha/validator/prevalidation/prevalidation_adapter_impl.hpp"
#include "dracosha/validator/prevalidation/prevalidation_adapter_tag.hpp"
#include "dracosha/validator/prevalidation/resize_validated.hpp"
#include "dracosha/validator/prevalidation/set_validated.hpp"
#include "dracosha/validator/prevalidation/strict_any.hpp"
#include "dracosha/validator/prevalidation/true_if_empty.hpp"
#include "dracosha/validator/prevalidation/true_if_size.hpp"
#include "dracosha/validator/prevalidation/unset_validated.hpp"
#include "dracosha/validator/prevalidation/validate_empty.hpp"
#include "dracosha/validator/prevalidation/validate_value.hpp"
#include "dracosha/validator/properties.hpp"
#include "dracosha/validator/properties/empty.hpp"
#include "dracosha/validator/properties/h_size.hpp"
#include "dracosha/validator/properties/length.hpp"
#include "dracosha/validator/properties/pair.hpp"
#include "dracosha/validator/properties/size.hpp"
#include "dracosha/validator/properties/value.hpp"
#include "dracosha/validator/property.hpp"
#include "dracosha/validator/property_validator.hpp"
#include "dracosha/validator/range.hpp"
#include "dracosha/validator/reporting/aggregation_strings.hpp"
#include "dracosha/validator/reporting/backend_formatter.hpp"
#include "dracosha/validator/reporting/concrete_phrase.hpp"
#include "dracosha/validator/reporting/decorator.hpp"
#include "dracosha/validator/reporting/extend_translator.hpp"
#include "dracosha/validator/reporting/flag_presets.hpp"
#include "dracosha/validator/reporting/format_bool_operand.hpp"
#include "dracosha/validator/reporting/format_join_grammar_cats.hpp"
#include "dracosha/validator/reporting/format_operand.hpp"
#include "dracosha/validator/reporting/formatter.hpp"
#include "dracosha/validator/reporting/grammar_categories.hpp"
#include "dracosha/validator/reporting/locale/ru.hpp"
#include "dracosha/validator/reporting/locale/sample_locale.hpp"
#include "dracosha/validator/reporting/mapped_translator.hpp"
#include "dracosha/validator/reporting/member_names.hpp"
#include "dracosha/validator/reporting/member_operand.hpp"
#include "dracosha/validator/reporting/nested_member_name.hpp"
#include "dracosha/validator/reporting/no_translator.hpp"
#include "dracosha/validator/reporting/operand_formatter.hpp"
#include "dracosha/validator/reporting/order_and_presentation.hpp"
#include "dracosha/validator/reporting/phrase_grammar_cats.hpp"
#include "dracosha/validator/reporting/phrase_translator.hpp"
#include "dracosha/validator/reporting/prepare_operand_for_formatter.hpp"
#include "dracosha/validator/reporting/prepare_property_formatting.hpp"
#include "dracosha/validator/reporting/property_member_name.hpp"
#include "dracosha/validator/reporting/quotes_decorator.hpp"
#include "dracosha/validator/reporting/report_aggregation.hpp"
#include "dracosha/validator/reporting/reporter.hpp"
#include "dracosha/validator/reporting/reporter_with_object_name.hpp"
#include "dracosha/validator/reporting/reporting_adapter_impl.hpp"
#include "dracosha/validator/reporting/single_member_name.hpp"
#include "dracosha/validator/reporting/strings.hpp"
#include "dracosha/validator/reporting/translate.hpp"
#include "dracosha/validator/reporting/translator.hpp"
#include "dracosha/validator/reporting/translator_repository.hpp"
#include "dracosha/validator/status.hpp"
#include "dracosha/validator/utils/adjust_storable_ignore.hpp"
#include "dracosha/validator/utils/adjust_storable_type.hpp"
#include "dracosha/validator/utils/class_method_args.hpp"
#include "dracosha/validator/utils/conditional_fold.hpp"
#include "dracosha/validator/utils/copy.hpp"
#include "dracosha/validator/utils/enable_to_string.hpp"
#include "dracosha/validator/utils/feature_bitmask.hpp"
#include "dracosha/validator/utils/foreach_if.hpp"
#include "dracosha/validator/utils/get_it.hpp"
#include "dracosha/validator/utils/hana_to_std_tuple.hpp"
#include "dracosha/validator/utils/heterogeneous_size.hpp"
#include "dracosha/validator/utils/invoke_and.hpp"
#include "dracosha/validator/utils/invoke_or.hpp"
#include "dracosha/validator/utils/is_container.hpp"
#include "dracosha/validator/utils/is_pair.hpp"
#include "dracosha/validator/utils/make_types_tuple.hpp"
#include "dracosha/validator/utils/object_wrapper.hpp"
#include "dracosha/validator/utils/optional.hpp"
#include "dracosha/validator/utils/pointer_as_reference.hpp"
#include "dracosha/validator/utils/reference_wrapper.hpp"
#include "dracosha/validator/utils/safe_compare.hpp"
#include "dracosha/validator/utils/string_view.hpp"
#include "dracosha/validator/utils/to_string.hpp"
#include "dracosha/validator/utils/unwrap_object.hpp"
#include "dracosha/validator/utils/value_as_container.hpp"
#include "dracosha/validator/utils/wrap_object.hpp"
#include "dracosha/validator/validate.hpp"
#include "dracosha/validator/validator.hpp"
#include "dracosha/validator/validators.hpp"
#include "dracosha/validator/value_transformer.hpp"
#include "dracosha/validator/variadic_arg.hpp"
#include "dracosha/validator/variadic_arg_tag.hpp"
#include "dracosha/validator/variadic_property.hpp"
#include "dracosha/validator/version.hpp"
#include "dracosha/validator/with_check_member_exists.hpp"