Faker C++
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Concepts
science.h
Go to the documentation of this file.
1#pragma once
2
3#include <string_view>
4
5#include "faker-cxx/export.h"
6#include "faker-cxx/types/locale.h"
7
9{
10struct FAKER_CXX_EXPORT ChemicalElement
11{
12 std::string_view name;
13 std::string_view symbol;
15};
16
29FAKER_CXX_EXPORT ChemicalElement chemicalElement(Locale locale = Locale::en_US);
30
31struct FAKER_CXX_EXPORT Unit
32{
33 std::string_view name;
34 std::string_view symbol;
35 std::string_view usedToMeasure;
36};
37
49FAKER_CXX_EXPORT Unit unit(Locale locale = Locale::en_US);
50
63FAKER_CXX_EXPORT Unit distanceUnit(Locale locale = Locale::en_US);
64
76FAKER_CXX_EXPORT Unit timeUnit(Locale locale = Locale::en_US);
77
89FAKER_CXX_EXPORT Unit massUnit(Locale locale = Locale::en_US);
90
102FAKER_CXX_EXPORT Unit tempUnit(Locale locale = Locale::en_US);
103
116FAKER_CXX_EXPORT Unit currentUnit(Locale locale = Locale::en_US);
117}
Definition science.h:9
FAKER_CXX_EXPORT Unit distanceUnit(Locale locale=Locale::en_US)
Returns a unit of measurement for either distance.
FAKER_CXX_EXPORT Unit unit(Locale locale=Locale::en_US)
Returns a unit of measurement for either distance, mass, time, temp, current.
FAKER_CXX_EXPORT Unit timeUnit(Locale locale=Locale::en_US)
Returns a unit of measurement for either time.
FAKER_CXX_EXPORT Unit currentUnit(Locale locale=Locale::en_US)
Returns a unit of measurement for either current.
FAKER_CXX_EXPORT Unit tempUnit(Locale locale=Locale::en_US)
Returns a unit of measurement for either temp.
FAKER_CXX_EXPORT Unit massUnit(Locale locale=Locale::en_US)
Returns a unit of measurement for either mass.
FAKER_CXX_EXPORT ChemicalElement chemicalElement(Locale locale=Locale::en_US)
Returns a random chemical element from the periodic table.
Definition science.h:11
std::string_view name
Definition science.h:12
std::string_view symbol
Definition science.h:13
int atomicNumber
Definition science.h:14
Definition science.h:32
std::string_view symbol
Definition science.h:34
std::string_view name
Definition science.h:33
std::string_view usedToMeasure
Definition science.h:35