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::FileOptions
 
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 (const FileOptions &options={})
 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 (const std::optional< std::string > &ext=std::nullopt)
 
FAKER_CXX_EXPORT std::string_view faker::system::commonFileExtension ()
 
FAKER_CXX_EXPORT std::string_view faker::system::mimeType ()
 
FAKER_CXX_EXPORT std::string_view faker::system::fileType ()
 
FAKER_CXX_EXPORT std::string_view faker::system::directoryPath ()
 
FAKER_CXX_EXPORT std::string faker::system::filePath ()
 
FAKER_CXX_EXPORT std::string faker::system::semver ()
 
FAKER_CXX_EXPORT std::string faker::system::networkInterface (const std::optional< NetworkInterfaceOptions > &options={})
 
FAKER_CXX_EXPORT std::string faker::system::cron (const CronOptions &options={})