Faker C++
Loading...
Searching...
No Matches
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
8{
9struct FAKER_CXX_EXPORT ChemicalElement
10{
11 std::string_view name;
12 std::string_view symbol;
14};
15
27
28struct FAKER_CXX_EXPORT Unit
29{
30 std::string_view name;
31 std::string_view symbol;
32 std::string_view usedToMeasure;
33};
34
44FAKER_CXX_EXPORT Unit unit();
45
56FAKER_CXX_EXPORT Unit distanceUnit();
57
67FAKER_CXX_EXPORT Unit timeUnit();
68
78FAKER_CXX_EXPORT Unit massUnit();
79
89FAKER_CXX_EXPORT Unit tempUnit();
90
101FAKER_CXX_EXPORT Unit currentUnit();
102}
Definition science.h:8
FAKER_CXX_EXPORT Unit distanceUnit()
Returns a unit of measurement for either distance.
FAKER_CXX_EXPORT Unit massUnit()
Returns a unit of measurement for either mass.
FAKER_CXX_EXPORT Unit tempUnit()
Returns a unit of measurement for either temp.
FAKER_CXX_EXPORT ChemicalElement chemicalElement()
Returns a random chemical element from the periodic table.
FAKER_CXX_EXPORT Unit timeUnit()
Returns a unit of measurement for either time.
FAKER_CXX_EXPORT Unit currentUnit()
Returns a unit of measurement for either current.
FAKER_CXX_EXPORT Unit unit()
Returns a unit of measurement for either distance, mass, time, temp, current.
Definition science.h:10
std::string_view name
Definition science.h:11
std::string_view symbol
Definition science.h:12
int atomicNumber
Definition science.h:13
Definition science.h:29
std::string_view symbol
Definition science.h:31
std::string_view name
Definition science.h:30
std::string_view usedToMeasure
Definition science.h:32