VR-Vantage 2.8 API Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ciMoviePlayer.h
Go to the documentation of this file.
1 
2 // Copyright JRM Enterprises, Inc. 2004
3 // All rights reserved.
4 //
5 // This code is the intellectual property of JRM Enterprises, Inc.
6 // It may not be used or released as source or compiled binary form
7 // without the prior written consent of JRM Enterprises, Inc.
8 //
9 // Original Author: Tim George
10 // Date: Oct 2005
11 //
12 //
13 //
15 
16 #if !defined(_ciMOVIEPLAYER_H_)
17 #define _ciMOVIEPLAYER_H_
18 
19 #if _MSC_VER > 1000
20 #pragma once
21 #endif // _MSC_VER > 1000
22 #include "ciApi.h"
23 
24 #include <stdio.h>
25 #include <iostream>
26 #include <fstream>
27 
31 #include <iostream>
32 #include <fstream>
33 #include <string.h>
34 #include "clXML.h"
35 #include "clXMLNode.h"
36 
38 {
39 public: // methods
40 
42  // getFrameRate
49  double getFrameRate() { return m_frameRate; }
50 
52  // setFrameRate
60  void setFrameRate(double rate) { m_frameRate = rate; }
61 
63  //getOpenFrameCount
68  int getOpenFrameCount() { return m_openFrameCount; }
69 
71  //setOpenFrameCount
76  void setOpenFrameCount( int framecount ) { m_openFrameCount = framecount; }
77 
79  //*getOpenFile
84  char *getOpenFile();
85 
87  //setOpenFile
92  void setOpenFile(char* openFile);
93 
95  //getCurrentFrame
100  int getCurrentFrame(){return m_currentFrame;}
101 
103  //setCurrentFrame
108  void setCurrentFrame(int currentFrame){m_currentFrame = currentFrame;}
110  // archive
118  bool archive(std::ofstream &outf);
119 
121  // serialize
129  bool serialize(char *filepath);
130 
131  //
132  // loadXML
133  //
134  // \par Description:
135  // Loads attributes from an XML node
136  //
137  // \param clXMLNode* trackNode
138  // \return bool
139  //
140  bool loadXML(clXMLNode* trackNode);
141 
142  //
143  // parseXML
144  //
145  // \par Description:
146  // Parses an XML document for specific tags
147  //
148  // \param clXML xmlDocument
149  // \return bool
150  //
151  bool parseXML(clXML& xmlDocument);
152 
154  //loadXMLNode
161  bool loadXMLNode(std::string tag, char *nodeString);
163  //loadXMLNode
170  bool loadXMLNode(std::string tag, bool *nodeBool);
172  //loadXMLNode
179  bool loadXMLNode(std::string tag, int *nodeBool);
181  //loadXMLNode
188  bool loadXMLNode(std::string tag, double *nodeBool);
189 
190  //
191  // saveXML
192  //
193  // \par Description:
194  // Saves XML nodes to an XML document
195  //
196  // \param clXML* xmlDocument
197  //
198  void saveXML(clXML* xmlDocument);
199 
201  // operator =
209  ciMoviePlayer operator = (ciMoviePlayer &obj);
210 
211 protected: // methods
212 
213 public: // construction/destruction
214 
216  // ciTrack
221  ciMoviePlayer();
222 
224  // ciTrack
232 
234  //~ciMoviePlayer
238  virtual ~ciMoviePlayer();
239 
240 protected: // variables
241 
242  double m_frameRate;
245  char m_openFile[256];
247 
248 private: // variables
249 
250 };
251 
252 #endif // _ciTRACK_H_


Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)