init
[open-duckbox-project-sh4:theseus-tdt.git] / tdt / cvs / apps / dvb / libdvbsi++ / include / dvbsi++ / application_identifier.h
1 /*
2  * $Id: application_identifier.h,v 1.3 2005/10/29 00:10:08 obi Exp $
3  *
4  * Copyright (C) 2004-2005 Stéphane Esté-Gracias <sestegra@free.fr>
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Lesser General Public
8  * License version 2.1 as published by the Free Software Foundation.
9  *
10  * See the file 'COPYING' in the top level directory for details.
11  */
12
13 #ifndef __application_identifier_h__
14 #define __application_identifier_h__
15
16 #include "compat.h"
17
18 class ApplicationIdentifier
19 {
20         protected:
21                 unsigned organisationId                         : 32;
22                 unsigned applicationId                          : 16;
23
24         public:
25                 ApplicationIdentifier(const uint8_t * const buffer);
26
27                 uint32_t getOrganisationId(void) const;
28                 uint16_t getApplicationId(void) const;
29 };
30
31 typedef std::list<ApplicationIdentifier *> ApplicationIdentifierList;
32 typedef ApplicationIdentifierList::iterator ApplicationIdentifierIterator;
33 typedef ApplicationIdentifierList::const_iterator ApplicationIdentifierConstIterator;
34
35 #endif /* __application_identifier_h__ */