depth.hpp
Go to the documentation of this file.
/**
* @file svnxx/depth.hpp
* @copyright
* ====================================================================
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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.
* ====================================================================
* @endcopyright
*/
#ifndef SVNXX_DEPTH_HPP
#define SVNXX_DEPTH_HPP
#include "svn_types_impl.h"
#include <cstdint>
#include <string>
namespace apache {
namespace subversion {
namespace svnxx {
/**
* @brief The concept of depth for directories (see @ref svn_depth_t).
*/
// NOTE: Keep these values identical to those in svn_depth_t!
enum class depth : std::int8_t
{
unknown = svn_depth_unknown,
exclude = svn_depth_exclude,
empty = svn_depth_empty,
files = svn_depth_files,
immediates = svn_depth_immediates,
infinity = svn_depth_infinity,
};
/**
* @brief Converts a depth constant to its string representation.
* @see svn_depth_to_word()
*/
std::string to_string(depth);
/**
* @brief Converts a depth constant to its wide-string representation.
* @see svn_depth_to_word()
*/
std::wstring to_wstring(depth);
/**
* @brief Converts a depth constant to its UTF-16 string representation.
* @see svn_depth_to_word()
*/
std::u16string to_u16string(depth);
/**
* @brief Converts a depth constant to its UTF-32 string representation.
* @see svn_depth_to_word()
*/
std::u32string to_u32string(depth);
} // namespace svnxx
} // namespace subversion
} // namespace apache
#endif // SVNXX_DEPTH_HPP
apache::subversion::svnxx::depth
depth
The concept of depth for directories (see svn_depth_t).
Definition: depth.hpp:42
apache::subversion::svnxx::to_u32string
std::u32string to_u32string(depth)
Converts a depth constant to its UTF-32 string representation.
apache::subversion::svnxx::to_u16string
std::u16string to_u16string(depth)
Converts a depth constant to its UTF-16 string representation.
apache::subversion::svnxx::to_string
std::string to_string(depth)
Converts a depth constant to its string representation.
apache::subversion::svnxx::to_wstring
std::wstring to_wstring(depth)
Converts a depth constant to its wide-string representation.
svn_types_impl.h
Subversion's data types (common implementation)
svn_depth_files
@ svn_depth_files
D + its file children, but not subdirs.
Definition: svn_types_impl.h:138
svn_depth_exclude
@ svn_depth_exclude
Exclude (i.e., don't descend into) directory D.
Definition: svn_types_impl.h:130
svn_depth_immediates
@ svn_depth_immediates
D + immediate children (D and its entries).
Definition: svn_types_impl.h:143
svn_depth_empty
@ svn_depth_empty
Just the named directory D, no entries.
Definition: svn_types_impl.h:134
svn_depth_infinity
@ svn_depth_infinity
D + all descendants (full recursion from D).
Definition: svn_types_impl.h:149
svn_depth_unknown
@ svn_depth_unknown
Depth undetermined or ignored.
Definition: svn_types_impl.h:119