Fawkes API  Fawkes Development Version
fuse_lutlist_content.h
1 
2 /***************************************************************************
3  * fuse_lutlist_content.h - FUSE LUT list content encapsulation
4  *
5  * Created: Wed Nov 21 16:32:31 2007
6  * Copyright 2005-2007 Tim Niemueller [www.niemueller.de]
7  *
8  ****************************************************************************/
9 
10 /* This program is free software; you can redistribute it and/or modify
11  * it under the terms of the GNU General Public License as published by
12  * the Free Software Foundation; either version 2 of the License, or
13  * (at your option) any later version. A runtime exception applies to
14  * this software (see LICENSE.GPL_WRE file mentioned below for details).
15  *
16  * This program is distributed in the hope that it will be useful,
17  * but WITHOUT ANY WARRANTY; without even the implied warranty of
18  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19  * GNU Library General Public License for more details.
20  *
21  * Read the full text in the LICENSE.GPL_WRE file in the doc directory.
22  */
23 
24 #ifndef __FIREVISION_FVUTILS_NET_FUSE_LUTLIST_CONTENT_H_
25 #define __FIREVISION_FVUTILS_NET_FUSE_LUTLIST_CONTENT_H_
26 
27 #include <fvutils/net/fuse.h>
28 #include <fvutils/net/fuse_message_content.h>
29 #include <sys/types.h>
30 
31 namespace firevision {
32 #if 0 /* just to make Emacs auto-indent happy */
33 }
34 #endif
35 
37 {
38  public:
40  FuseLutListContent(uint32_t type, void *payload, size_t payload_size);
42 
43  void add_lutinfo(const char *lut_id,
44  unsigned int width, unsigned int height,
45  unsigned int depth, unsigned int bytes_per_cell);
46 
47 
48  void reset_iterator();
49  bool has_next();
50  FUSE_lutinfo_t * next();
51 
52  virtual void serialize();
53 
54  private:
55  fawkes::DynamicBuffer *__list;
56  FUSE_lutlist_message_t __lutlist_msg;
57 };
58 
59 } // end namespace firevision
60 
61 #endif
LUT list message.
Definition: fuse.h:189
FUSE_lutinfo_t * next()
Get next LUT info.
virtual void * payload() const
Return pointer to payload.
virtual void serialize()
Serialize message content.
void add_lutinfo(const char *lut_id, unsigned int width, unsigned int height, unsigned int depth, unsigned int bytes_per_cell)
Add LUT info.
LUT info message.
Definition: fuse.h:175
FUSE lookup table list content.
virtual size_t payload_size() const
Return payload size.
Dynamically growing buffer.
bool has_next()
Check if another LUT info is available.