cpp-enum-class-string-idl
python3 -m cpp_enum_class_string_idl MyEnums.yaml
MyEnums.yaml
interfaces:
- MyEnum.yaml
- MyOtherEnum.yaml
MyEnum.yaml
name: MyEnum
type: int
values:
- Value0
- Value1
MyEnum.h
#pragma once
/*
* generated code from cpp-enum-class-string-idl
*/
enum class MyEnum : int {
Value0,
Value1,
Count
};
const char* enum_to_string(const MyEnum value);
MyEnum.cpp
#include "MyEnum.h"
/*
* generated code from cpp-enum-class-string-idl
*/
const char* _MyEnum[] = {
"Value0",
"Value1"
};
const char* enum_to_string(const MyEnum value) {
if (MyEnum::Count == value) {
return "";
}
return _MyEnum[static_cast<int>(value)];
}
Metadata
Release files for cpp-enum-class-string-idl 0.0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| cpp-enum-class-string-idl-0.0.4.tar.gz | 2.9 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| cpp_enum_class_string_idl-0.0.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 7.8 kB
Release files / cpp-enum-class-string-idl-0.0.4.tar.gz
| Download URL | cpp-enum-class-string-idl-0.0.4.tar.gz |
|---|---|
| Size | 2.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
90c621f5ddf63f4dd4f4209e41495626ae6874bbe2a957948055d35e10c519cb
|
|
BLAKE2b-256 checksum How to use checksums |
950808993d3fac2995644721c062e0e9166c16b5e751735410a2e1ef47c391dd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.2
|
Release files / cpp_enum_class_string_idl-0.0.4-py3-none-any.whl
| Download URL | cpp_enum_class_string_idl-0.0.4-py3-none-any.whl |
|---|---|
| Size | 4.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e9c7816796b9e807ae82fd1985c32ce5f020742bcbc9fa33bd561fda4008a97e
|
|
BLAKE2b-256 checksum How to use checksums |
32ac687903169667db70d4b241675d551f02e6d35e6f96ce74d475ec3fa7f8c0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.2
|
Security for cpp-enum-class-string-idl 0.0.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.