ai_enum.h
Go to the documentation of this file.
1// Copyright 2021 Autodesk, Inc. All rights reserved.
2//
3// Use of this software is subject to the terms of the Autodesk license
4// agreement provided at the time of installation or download, or which
5// otherwise accompanies this software in either electronic or hard copy form.
6
12#pragma once
13#include "ai_api.h"
14
31typedef const char** AtEnum;
32
33AI_API AI_PURE int AiEnumGetValue(AtEnum enum_type, const char* string);
34AI_API AI_PURE const char* AiEnumGetString(AtEnum enum_type, int index);
35
36/*\}*/
DLL export prefix for API functions (necessary for multi-platform development)
const char ** AtEnum
String-based enumerated data type.
Definition: ai_enum.h:31
AI_API AI_PURE int AiEnumGetValue(AtEnum enum_type, const char *string)
Return the corresponding integer value (or index) of an enum string.
Definition: ai_enum.cpp:20
AI_API AI_PURE const char * AiEnumGetString(AtEnum enum_type, int index)
Get the corresponding string value of an integer in an enum.
Definition: ai_enum.cpp:55

© 2022 Autodesk, Inc. · All rights reserved · www.arnoldrenderer.com