VR-Forces 4.3 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DtVideoStreamRecord.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2012 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
7 
8 #pragma once
9 
16 
17 namespace makArchives
18 {
21  {
22  public:
25 
28 
30  DtVideoStreamRecord& operator=( const DtVideoStreamRecord& rhs );
31 
34 
36  const std::string& windowName() const;
37 
39  void setWindowName( const std::string& windowName );
40 
42  const std::string& channelName() const;
43 
45  void setChannelName( const std::string& channelName );
46 
47  bool autoStart() const;
48 
49  void setAutoStart( bool autoStart );
50 
52  int frameRate() const;
53 
55  void setFrameRate( int frameRate );
56 
58  const std::string& dataType() const;
59 
61  void setDataType( const std::string& dataType );
62 
64  const std::string& pixelFormat() const;
65 
67  void setPixelFormat( const std::string& pixelFormat );
68 
70  int numBuffers() const;
71 
73  void setNumBuffers( int numBuffers );
74 
76  const std::string& readBuffer() const;
77 
79  void setReadBuffer( const std::string& readBuffer );
80 
82  const DtMetadataPublisherRecord& metadataPublisher() const;
83 
85  void setMetadataPublisher(
86  const DtMetadataPublisherRecord& metadataPublisher );
87 
89  typedef std::vector<DtImageTaskRecord> ImageTaskRecords;
90 
92  void setImageTasks( const ImageTaskRecords& recs );
93 
95  void addImageTask( const DtImageTaskRecord& imageTask );
96 
98  void removeImageTask( const DtImageTaskRecord& imageTask );
99 
101  void clearImageTasks();
102 
104  const ImageTaskRecords& imageTasks() const;
105 
107  ImageTaskRecords& imageTasks();
108 
109  protected:
110  friend class boost::serialization::access;
111 
112  template <class Archive>
113  void serialize(Archive& ar, const unsigned int version)
114  {
115  ar & BOOST_SERIALIZATION_NVP( myWindowName );
116  ar & BOOST_SERIALIZATION_NVP( myChannelName );
117  ar & BOOST_SERIALIZATION_NVP( myFrameRate );
118  ar & BOOST_SERIALIZATION_NVP( myDataType );
119  ar & BOOST_SERIALIZATION_NVP( myPixelFormat );
120  ar & BOOST_SERIALIZATION_NVP( myNumBuffers );
121  ar & BOOST_SERIALIZATION_NVP( myReadBuffer );
122  ar & BOOST_SERIALIZATION_NVP( myMetadataPublisherRecord );
123  ar & BOOST_SERIALIZATION_NVP( myImageTaskRecords );
124  if ( version >= 3 )
125  {
126  ar & BOOST_SERIALIZATION_NVP( myAutoStart );
127  }
128  }
129 
130  std::string myWindowName;
131  std::string myChannelName;
133  std::string myDataType;
134  std::string myPixelFormat;
136  std::string myReadBuffer;
140  };
141 }
143 

Document ID: Generated on Wed Mar 11 21:20:57 EDT 2015 from SVN revision 150940
Copyright © 2005-2014 VT MÄK. All Rights Reserved (www.mak.com)