1/****************************************************************************************
2
3 Copyright (C) 2015 Autodesk, Inc.
4 All rights reserved.
5
6 Use of this software is subject to the terms of the Autodesk license agreement
7 provided at the time of installation or download, or which otherwise accompanies
8 this software in either electronic or hard copy form.
9
10****************************************************************************************/
11
12//! \file fbxconstantentryview.h
13#ifndef _FBXSDK_SCENE_SHADING_CONSTANT_ENTRY_VIEW_H_
14#define _FBXSDK_SCENE_SHADING_CONSTANT_ENTRY_VIEW_H_
15
16#include <fbxsdk/fbxsdk_def.h>
17
18#include <fbxsdk/scene/shading/fbxentryview.h>
19
20#include <fbxsdk/fbxsdk_nsbegin.h>
21
22class FbxBindingTableEntry;
23
24/** FbxConstantEntryView represents constant string entry in entry tables.
25 * The constant string can be used as source or destination for the binding entry.
26 * \see FbxBindingTableEntry and FbxBindingTable.
27 */
28class FBXSDK_DLL FbxConstantEntryView : public FbxEntryView
29{
30public:
31 /** Name of the entry type used in the binding entry.
32 * It should be "FbxConstantEntry" in this case.
33 */
34 static const char* sEntryType;
35
36 /** Constructor.
37 * \param pEntry The binding table entry to create the entry view for.
38 * \param pAsSource \c true to create the entry view as source, \c false as destination.
39 * \param pCreate \c true to create the entry view, \c false otherwise.
40 */
41 FbxConstantEntryView( FbxBindingTableEntry* pEntry, bool pAsSource, bool pCreate = false );
42
43 //! Destructor.
44 ~FbxConstantEntryView();
45
46 /** Get the constant string for binding entry.
47 * \return The constant string.
48 */
49 const char* GetConstantName() const;
50
51 /** Set the constant string for binding entry.
52 * \param pName The constant string to set.
53 */
54 void SetConstantName(const char* pName);
55
56 /** Get the entry type.
57 * \return Entry type as string "FbxConstantEntry".
58 * \remarks Always use EntryType() to get the right entry type.
59 */
60 virtual const char* EntryType() const;
61};
62
63#include <fbxsdk/fbxsdk_nsend.h>
64
65#endif /* _FBXSDK_SCENE_SHADING_CONSTANT_ENTRY_VIEW_H_ */
66