HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
CH_File.h
Go to the documentation of this file.
1 /*
2  * PROPRIETARY INFORMATION. This software is proprietary to
3  * Side Effects Software Inc., and is not to be reproduced,
4  * transmitted, or disclosed in any way without written permission.
5  *
6  * NAME: CH_File.h ( CH Library, C++)
7  *
8  * COMMENTS:
9  */
10 
11 #ifndef __CH_File__
12 #define __CH_File__
13 
14 #include "CH_API.h"
15 #include "CH_Manager.h"
16 #include <SYS/SYS_Types.h>
17 
19 {
20 public:
21  enum Error
22  {
23  INVALID_FRAME_RANGE = -1,
24  FILE_NOT_LOADED = -2,
25  FILE_NOT_SAVED = -3,
26  NO_DATA_IN_FILE = -4,
27  NO_CHANNELS = -5,
28  NO_PARAMETERS = -6,
29  ALLOCATION_FAILED = -7
30  };
31 
32  // from, to are assumed to be frames
33  // results will be saved to tstart, tend
34  static void getTimeRange(const fpreal *from, const fpreal *to,
35  fpreal &tstart, fpreal &tend);
36 
37  // from and to are supplied as frames
38  static int loadRawChannels(CH_ChannelRefList *chrefs,
39  const char *filename,
40  CH_CollectionList &parents,
41  const fpreal *from = NULL, const fpreal *to = NULL,
42  bool full_replace = false);
43 
44  // from and to are supplied as frames
45  static int saveRawChannels(CH_ChannelList &list,
46  const char *filename, bool binary,
47  const fpreal *from = NULL, const fpreal *to = NULL);
48 };
49 
50 #endif
51 
GT_API const UT_StringHolder filename
const GLuint GLenum const void * binary
Definition: glcorearb.h:1923
double fpreal
Definition: SYS_Types.h:270
#define CH_API
Definition: CH_API.h:10