VR-Forces 4.6 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties 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 
13 
14 namespace makArchives
15 {
18  {
19  public:
22 
25 
27  DtVideoStreamRecord& operator=( const DtVideoStreamRecord& rhs );
28 
31 
33  const std::string& windowName() const;
34 
36  void setWindowName( const std::string& windowName );
37 
39  const std::string& channelName() const;
40 
42  void setChannelName( const std::string& channelName );
43 
44  bool autoStart() const;
45 
46  void setAutoStart( bool autoStart );
47 
49  int frameRate() const;
50 
52  void setFrameRate( int frameRate );
53 
55  const std::string& dataType() const;
56 
58  void setDataType( const std::string& dataType );
59 
61  const std::string& pixelFormat() const;
62 
64  void setPixelFormat( const std::string& pixelFormat );
65 
67  int numBuffers() const;
68 
70  void setNumBuffers( int numBuffers );
71 
73  const std::string& readBuffer() const;
74 
76  void setReadBuffer( const std::string& readBuffer );
77 
79  const DtMetadataPublisherRecord& metadataPublisher() const;
80 
82  void setMetadataPublisher(
83  const DtMetadataPublisherRecord& metadataPublisher );
84 
86  typedef std::vector<DtImageTaskRecord> ImageTaskRecords;
87 
89  void setImageTasks( const ImageTaskRecords& recs );
90 
92  void addImageTask( const DtImageTaskRecord& imageTask );
93 
95  void removeImageTask( const DtImageTaskRecord& imageTask );
96 
98  void clearImageTasks();
99 
101  const ImageTaskRecords& imageTasks() const;
102 
104  ImageTaskRecords& imageTasks();
105 
106  protected:
107  friend class boost::serialization::access;
108 
109  template <class Archive>
110  void serialize(Archive& ar, const unsigned int version)
111  {
112  ar & BOOST_SERIALIZATION_NVP( myWindowName );
113  ar & BOOST_SERIALIZATION_NVP( myChannelName );
114  ar & BOOST_SERIALIZATION_NVP( myFrameRate );
115  ar & BOOST_SERIALIZATION_NVP( myDataType );
116  ar & BOOST_SERIALIZATION_NVP( myPixelFormat );
117  ar & BOOST_SERIALIZATION_NVP( myNumBuffers );
118  ar & BOOST_SERIALIZATION_NVP( myReadBuffer );
119  ar & BOOST_SERIALIZATION_NVP( myMetadataPublisherRecord );
120  ar & BOOST_SERIALIZATION_NVP( myImageTaskRecords );
121  if ( version >= 3 )
122  {
123  ar & BOOST_SERIALIZATION_NVP( myAutoStart );
124  }
125  }
126 
127  std::string myWindowName;
128  std::string myChannelName;
130  std::string myDataType;
131  std::string myPixelFormat;
133  std::string myReadBuffer;
137  };
138 }
140 

Document ID: Generated on Thu Apr 12 03:15:37 EDT 2018 from SVN revision 187986
Copyright © 2005-2018 VT MÄK. All Rights Reserved (www.mak.com)