fbsdk/fbconsole.h Source File

fbconsole.h
Go to the documentation of this file.
1 #ifndef __FBCONSOLE_H__
2 #define __FBCONSOLE_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 
44 #include <kaydaradef.h>
45 #ifndef FBSDK_DLL
46 
49  #define FBSDK_DLL K_DLLIMPORT
50 #endif
51 
52 #include <fbsdk/fbcomponent.h>
53 
54 #ifdef FBSDKUseNamespace
55  namespace FBSDKNamespace {
56 #endif
57 
68 };
69 FB_DEFINE_ENUM( FBSDK_DLL, ConsoleChannelType );
70 
72 
76 public:
80  FBConsoleChannel(const char *pName);
81 
82  //--- Properties ---
91 };
92 FB_DEFINE_ARRAY ( FBSDK_DLL, ConsoleChannel );
93 
95 // FBPropertyListConsoleChannel
97 
99 class FBSDK_DLL FBPropertyListConsoleChannel : public FBPropertyBaseList< FBConsoleChannel* >
100 {
101 private:
103 
108  virtual int Add ( FBConsoleChannel* pItem );
109 
110 public:
114  virtual void RemoveAt( int pIndex );
115 
121  virtual FBConsoleChannel* operator[](int pIndex);
122 
126  virtual int GetCount();
127 
128 public:
134  virtual int Add ( const char *pName );
135 
141  FBConsoleChannel* Find(const char *pName);
142 };
143 
144 /*-------------------------------------------------------------------------
145  Class FBConsole: Console base class
146  -------------------------------------------------------------------------*/
149 
154  private:
155 
156  public:
161  FBConsole(const char *pName=NULL, HIObject pObject=NULL);
162 
165 
167 
172  virtual bool FbxStore(FBFbxObject* pFbxObject,kFbxObjectStore pStoreWhat);
173  virtual bool FbxRetrieve(FBFbxObject* pFbxObject,kFbxObjectStore pStoreWhat);
175 
176  // Re-implemented from FBComponent.
177  virtual bool FBCreate();
178  virtual void FBDestroy();
179 
183  virtual bool Open() = 0;
184 
188  virtual bool Close() = 0;
189 
193  virtual bool Initialize() = 0;
194 
198  virtual bool FetchData() = 0;
199 };
203 #define IJLCooper_Declare(IsPure)\
204  public:\
205  /* LCD screen */ \
206  \
207  virtual void LCDClearScreen ( ) IsPure;\
208  \
209  virtual void LCDSendString ( const char* pMessage, int pX = 0, int pY = 0 )IsPure;\
210  \
211  virtual void LCDSendChar ( char pChar, int pX = 0, int pY = 0 ) IsPure;\
212  \
213  virtual void LCDSetCursorBlink ( bool pState = true ) IsPure;\
214  /* TimeCode */ \
215  \
216  virtual void TCSetTime ( FBTime pTime ) IsPure;\
217 
218 
219 K_INTERFACE( IJLCooper, 100103033 );
220 
222 
227 {
228  private:
230  public:
234  FBJLCooper ( int pIndex = 0 );
235 
237 };
238 
239 
240 #ifdef FBSDKUseNamespace
241 }
242 #endif
243 #endif
#define K_INTERFACE(Name, Id)
Definition: iobject.h:98
#define __FBClassDeclare(Name, Parent)
For internal use only.
Definition: fbcomponent.h:132
FBPropertyConsoleChannelType Type
Property: Type of channel.
Definition: fbconsole.h:86
class FBPropertyBase< double, kFBPT_double > FBPropertyDouble
Property: double
#define NULL
Definition: kaydara.h:169
FBPropertyDouble Min
Property: Minimum value.
Definition: fbconsole.h:88
#define K_IMPLEMENTATION
Definition: iobject.h:53
Console data channel.
Definition: fbconsole.h:74
JL Cooper interface class.
Definition: fbconsole.h:226
Generic encoder.
Definition: fbconsole.h:64
Property class: const char * (String).
#define FB_DEFINE_ENUM(DllTag, Type)
Define an enum and give it the ability to be a property.
Definition: fbproperties.h:148
FBX file interface.
Definition: fbfbx.h:80
MotionBuilder SDK base class.
Definition: fbcomponent.h:668
class FBPropertyBase< bool, kFBPT_bool > FBPropertyBool
Property: bool
Generic type.
Definition: fbconsole.h:60
#define IJLCooper_Declare(IsPure)
LCD screen related function.
Definition: fbconsole.h:203
FBPropertyString Name
Property: Name of channel.
Definition: fbconsole.h:83
Definition: Python-ast.h:18
#define FB_DEFINE_ARRAY(DllTag, Type)
Define an array (template) for a component (discard the FB..).
Definition: fbarray.h:360
#define __FB_FORWARD(ClassName)
Forwarding of class and typedef declaration.
Definition: fbtypes.h:68
Template class to contain an array of items.
Definition: fbarray.h:77
FBPropertyBool IsTransportControl
Property: Is the console able to interface transport controls (true/false)?
Definition: fbconsole.h:164
#define FBSDKNamespace
FBSDKNamespace define.
Definition: fbversion.h:64
Basic class definitions.
FBPropertyDouble Max
Property: Maximum value.
Definition: fbconsole.h:89
FBPropertyString Group
Property: Group that channel is part of.
Definition: fbconsole.h:85
class FBPropertyBaseEnum< enum FBConsoleChannelType > FBPropertyConsoleChannelType
Definition: fbconsole.h:69
FBConsoleChannelType
Console channel types.
Definition: fbconsole.h:59
#define FB_FORWARD(ClassName)
Forwarding of class and typedef declaration.
Definition: fbtypes.h:62
FBPropertyListConsoleChannel Channels
List: Data Channels.
Definition: fbconsole.h:163
#define FBSDK_DLL
Be sure that FBSDK_DLL is defined only once...
Definition: fbconsole.h:49
kFbxObjectStore
Description of the different store/retrieve passes of the FBX format.
Definition: fbtypes.h:74
FBPropertyDouble Value
Property: Current value of channel.
Definition: fbconsole.h:87
PropertyList: Data Channels.
Definition: fbconsole.h:99
Console base class.
Definition: fbconsole.h:152
FBPropertyString Description
Property: Description of channel.
Definition: fbconsole.h:84
FBPropertyDouble Step
Property: Stepping value of channel.
Definition: fbconsole.h:90