Open Reality Reference Guide
fbnamespace.h
1 #ifndef __FBNAMESPACE_H__
2 #define __FBNAMESPACE_H__
3 /**************************************************************************
4  Copyright (c) 1994 - 2009 Autodesk, Inc. and/or its licensors.
5  All Rights Reserved.
6 
7  The coded instructions, statements, computer programs, and/or related
8  material (collectively the "Data") in these files contain unpublished
9  information proprietary to Autodesk, Inc. and/or its licensors, which is
10  protected by Canada and United States of America federal copyright law
11  and by international treaties.
12 
13  The Data may not be disclosed or distributed to third parties, in whole
14  or in part, without the prior written consent of Autodesk, Inc.
15  ("Autodesk").
16 
17  THE DATA IS PROVIDED "AS IS" AND WITHOUT WARRANTY.
18  ALL WARRANTIES ARE EXPRESSLY EXCLUDED AND DISCLAIMED. AUTODESK MAKES NO
19  WARRANTY OF ANY KIND WITH RESPECT TO THE DATA, EXPRESS, IMPLIED OR
20  ARISING BY CUSTOM OR TRADE USAGE, AND DISCLAIMS ANY IMPLIED WARRANTIES
21  OF TITLE, NON-INFRINGEMENT, MERCHANTABILITY OR FITNESS FOR A PARTICULAR
22  PURPOSE OR USE. WITHOUT LIMITING THE FOREGOING, AUTODESK DOES NOT
23  WARRANT THAT THE OPERATION OF THE DATA WILL BE UNINTERRUPTED OR ERROR
24  FREE.
25 
26  IN NO EVENT SHALL AUTODESK, ITS AFFILIATES, PARENT COMPANIES, LICENSORS
27  OR SUPPLIERS ("AUTODESK GROUP") BE LIABLE FOR ANY LOSSES, DAMAGES OR
28  EXPENSES OF ANY KIND (INCLUDING WITHOUT LIMITATION PUNITIVE OR MULTIPLE
29  DAMAGES OR OTHER SPECIAL, DIRECT, INDIRECT, EXEMPLARY, INCIDENTAL, LOSS
30  OF PROFITS, REVENUE OR DATA, COST OF COVER OR CONSEQUENTIAL LOSSES OR
31  DAMAGES OF ANY KIND), HOWEVER CAUSED, AND REGARDLESS OF THE THEORY OF
32  LIABILITY, WHETHER DERIVED FROM CONTRACT, TORT (INCLUDING, BUT NOT
33  LIMITED TO, NEGLIGENCE), OR OTHERWISE, ARISING OUT OF OR RELATING TO THE
34  DATA OR ITS USE OR ANY OTHER PERFORMANCE, WHETHER OR NOT AUTODESK HAS
35  BEEN ADVISED OF THE POSSIBILITY OF SUCH LOSS OR DAMAGE.
36 
37 **************************************************************************/
38 
39 #include <kaydaradef.h>
40 #ifndef FBSDK_DLL
41 
44  #define FBSDK_DLL K_DLLIMPORT
45 #endif
46 
47 #include <fbsdk/fbcomponent.h>
48 
49 #ifdef FBSDKUseNamespace
50  namespace FBSDKNamespace {
51 #endif
52 
54 FB_DEFINE_COMPONENT( FBSDK_DLL, Namespace );
55 
57 
58 FB_DEFINE_LIST( FBSDK_DLL, Namespace );
59 
63 {
64 public:
70  FBNamespace* operator[](int pIndex);
71 };
72 
74 // FBNamespace
76 
80 {
81  //--- Open Reality declaration.
83 
84  void Init();
85 
86 protected:
87 
93  FBNamespace(const char* pMultiLevelNamespace, HIObject pObject);
94 
95 public:
96 
102  FBNamespace(const char* pSingleLevelNamespace, FBNamespace* pParentNSObj);
103 
107  int GetContentCount() const;
108 
113  FBComponent* GetContent(int pIndex) const;
114 
122  void GetContentList(FBComponentList& pContentList, FBPlugModificationFlag pModificationFlags = kFBPlugAllContent, bool pRecursive = true, int pTypeInfo = FBPlug::TypeInfo, bool pExactTypeMatch = false);
123 
126 };
127 
129 
130 #ifdef FBSDKUseNamespace
131  }
132 #endif
133 #endif /* this must be the last line of this file */
FBNamespace::ChildrenNamespaces
FBPropertyListNamespace ChildrenNamespaces
List: Direct Children Namespace Objects.
Definition: fbnamespace.h:124
FBPropertyListNamespace
List: Namespace
Definition: fbnamespace.h:63
FBNamespace
Objects Containing class.
Definition: fbnamespace.h:80
FBSDK_DLL
#define FBSDK_DLL
Be sure that FBSDK_DLL is defined only once...
Definition: fbconstraintlayout.h:48
FBPlugModificationFlag
FBPlugModificationFlag
Definition: fbplug.h:154
FBPlug::TypeInfo
static int TypeInfo
TypeInfo.
Definition: fbplug.h:469
FBNamespace::FBNamespace
FBNamespace(const char *pSingleLevelNamespace, FBNamespace *pParentNSObj)
Constructor.
FBNamespace::GetContent
FBComponent * GetContent(int pIndex) const
Get the namespace content object count (Not Recursive).
__FBClassDeclare
#define __FBClassDeclare(Name, Parent)
For internal use only.
Definition: fbcomponent.h:131
__FB_FORWARD
#define __FB_FORWARD(ClassName)
Forwarding of class and typedef declaration.
Definition: fbtypes.h:68
FBPropertyListNamespace::operator[]
FBNamespace * operator[](int pIndex)
Get the Namespace object at pIndex.
FBNamespace::FBNamespace
FBNamespace(const char *pMultiLevelNamespace, HIObject pObject)
Constructor.
FBNamespace::GetContentList
void GetContentList(FBComponentList &pContentList, FBPlugModificationFlag pModificationFlags=kFBPlugAllContent, bool pRecursive=true, int pTypeInfo=FBPlug::TypeInfo, bool pExactTypeMatch=false)
Get List of the namespace content.
FBPropertyBool
class K_DLLIMPORT FBPropertyBase< bool, kFBPT_bool > FBPropertyBool
Property: bool
Definition: fbproperties.h:1308
fbcomponent.h
Basic class definitions.
FB_DEFINE_LIST
#define FB_DEFINE_LIST(DllTag, Type)
Define a component list.
Definition: fbproperties.h:163
FBNamespace::ContentLocked
FBPropertyBool ContentLocked
Read Write Property: Content locking state.
Definition: fbnamespace.h:125
FBPropertyListComponent
PropertyList: Concrete class for PropertyList of component
Definition: fbcomponent.h:536
FBNamespace::GetContentCount
int GetContentCount() const
Get the namespace content objects count (Not Recursive).
FBArrayTemplate
Template class to contain an array of items.
Definition: fbarray.h:78
FB_FORWARD
#define FB_FORWARD(ClassName)
Forwarding of class and typedef declaration.
Definition: fbtypes.h:62
kFBPlugAllContent
@ kFBPlugAllContent
None Modified.
Definition: fbplug.h:155
FB_DEFINE_COMPONENT
FB_DEFINE_COMPONENT(K_DLLIMPORT, AnimationNode)
Animation node class.
FBComponent
MotionBuilder SDK base class.
Definition: fbcomponent.h:651