file_manager_options.h
Go to the documentation of this file.
1 /*
2  * Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License").
5  * You may not use this file except in compliance with the License.
6  * A copy of the License is located at
7  *
8  * http://aws.amazon.com/apache2.0
9  *
10  * or in the "license" file accompanying this file. This file is distributed
11  * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12  * express or implied. See the License for the specific language governing
13  * permissions and limitations under the License.
14  */
15 
16 #pragma once
17 
18 #include <string>
19 
20 namespace Aws {
21 namespace FileManagement {
22 
27  std::string backup_directory;
28 };
29 
31  FileManagerStrategyOptions() = default;
32 
34  std::string _storage_directory,
35  std::string _file_prefix,
36  std::string _file_extension,
37  size_t _maximum_file_size,
38  size_t _storage_limit,
39  bool _delete_stale_data = false)
40  : storage_directory(std::move(_storage_directory)),
41  file_prefix(std::move(_file_prefix)),
42  file_extension(std::move(_file_extension)),
43  maximum_file_size_in_kb(_maximum_file_size),
44  storage_limit_in_kb(_storage_limit),
45  delete_stale_data(_delete_stale_data) {}
46 
50  std::string storage_directory;
54  std::string file_prefix;
58  std::string file_extension;
63  size_t maximum_file_size_in_kb{};
68  size_t storage_limit_in_kb{};
73 };
74 
75 static const FileManagerStrategyOptions kDefaultFileManagerStrategyOptions{"~/.ros/cwlogs", "cwlog", ".log", 1024, 1024*1024, false};
76 
77 } // namespace FileManagement
78 } // namespace Aws
FileManagerStrategyOptions(std::string _storage_directory, std::string _file_prefix, std::string _file_extension, size_t _maximum_file_size, size_t _storage_limit, bool _delete_stale_data=false)
static const FileManagerStrategyOptions kDefaultFileManagerStrategyOptions


file_management
Author(s): AWS RoboMaker
autogenerated on Fri May 7 2021 02:18:23