Faker C++
Loading...
Searching...
No Matches
system.h File Reference
#include <optional>
#include <string>
#include <string_view>
#include "faker-cxx/export.h"
Include dependency graph for system.h:

Go to the source code of this file.

Classes

struct  faker::system::CronOptions
 
struct  faker::system::NetworkInterfaceOptions
 

Namespaces

namespace  faker
 
namespace  faker::system
 

Enumerations

enum class  faker::system::FileType {
  faker::system::Application , faker::system::Audio , faker::system::Image , faker::system::Text ,
  faker::system::Video
}
 

Functions

FAKER_CXX_EXPORT std::string faker::system::fileName ()
 Returns a random file name with extension.
 
FAKER_CXX_EXPORT std::string faker::system::fileExtension (const std::optional< FileType > &mimeType=std::nullopt)
 Returns a file extension.
 
FAKER_CXX_EXPORT std::string faker::system::commonFileName ()
 Returns a random file name with a given extension or a commonly used extension.
 
FAKER_CXX_EXPORT std::string_view faker::system::commonFileExtension ()
 Returns a commonly used file extension.
 
FAKER_CXX_EXPORT std::string_view faker::system::mimeType ()
 Returns a mime-type.
 
FAKER_CXX_EXPORT std::string_view faker::system::fileType ()
 Returns a commonly used file type.
 
FAKER_CXX_EXPORT std::string_view faker::system::directoryPath ()
 Returns a directory path.
 
FAKER_CXX_EXPORT std::string faker::system::filePath ()
 Returns a file path.
 
FAKER_CXX_EXPORT std::string faker::system::semver ()
 Returns a semantic version.
 
FAKER_CXX_EXPORT std::string faker::system::networkInterface (const std::optional< NetworkInterfaceOptions > &options={})
 Returns a random network interface.
 
FAKER_CXX_EXPORT std::string faker::system::cron (const CronOptions &options={})
 Returns a random cron expression.