author | Mathieu Lacage <mathieu.lacage@sophia.inria.fr> |
Mon, 05 Nov 2007 16:31:52 +0100 | |
changeset 2066 | 4477ee7d0798 |
parent 2013 | 4a5335c67eac |
child 3365 | 6409d2460601 |
permissions | -rw-r--r-- |
1937
996383a87ae3
add new code to build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
1 |
/* -*- Mode: C++; c-file-style: "gnu"; indent-tabs-mode:nil; -*- */ |
996383a87ae3
add new code to build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
2 |
/* |
996383a87ae3
add new code to build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
3 |
* Copyright (c) 2006 INRIA |
996383a87ae3
add new code to build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
4 |
* |
996383a87ae3
add new code to build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
5 |
* This program is free software; you can redistribute it and/or modify |
996383a87ae3
add new code to build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
6 |
* it under the terms of the GNU General Public License version 2 as |
996383a87ae3
add new code to build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
7 |
* published by the Free Software Foundation; |
996383a87ae3
add new code to build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
8 |
* |
996383a87ae3
add new code to build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
9 |
* This program is distributed in the hope that it will be useful, |
996383a87ae3
add new code to build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
10 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
996383a87ae3
add new code to build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
11 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
996383a87ae3
add new code to build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
12 |
* GNU General Public License for more details. |
996383a87ae3
add new code to build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
13 |
* |
996383a87ae3
add new code to build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
14 |
* You should have received a copy of the GNU General Public License |
996383a87ae3
add new code to build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
15 |
* along with this program; if not, write to the Free Software |
996383a87ae3
add new code to build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
16 |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
996383a87ae3
add new code to build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
17 |
* |
996383a87ae3
add new code to build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
18 |
* Author: Mathieu Lacage <mathieu.lacage@sophia.inria.fr> |
996383a87ae3
add new code to build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
19 |
*/ |
996383a87ae3
add new code to build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
20 |
#ifndef STATUS_CODE_H |
996383a87ae3
add new code to build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
21 |
#define STATUS_CODE_H |
996383a87ae3
add new code to build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
22 |
|
996383a87ae3
add new code to build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
23 |
#include <stdint.h> |
1939
40af0232df83
add management frame implementations
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
1937
diff
changeset
|
24 |
#include "ns3/buffer.h" |
1937
996383a87ae3
add new code to build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
25 |
|
996383a87ae3
add new code to build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
26 |
namespace ns3 { |
996383a87ae3
add new code to build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
27 |
|
996383a87ae3
add new code to build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
28 |
class StatusCode { |
996383a87ae3
add new code to build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
29 |
public: |
996383a87ae3
add new code to build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
30 |
StatusCode (); |
996383a87ae3
add new code to build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
31 |
void SetSuccess (void); |
996383a87ae3
add new code to build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
32 |
void SetFailure (void); |
996383a87ae3
add new code to build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
33 |
|
996383a87ae3
add new code to build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
34 |
bool IsSuccess (void) const; |
1939
40af0232df83
add management frame implementations
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
1937
diff
changeset
|
35 |
|
40af0232df83
add management frame implementations
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
1937
diff
changeset
|
36 |
uint32_t GetSerializedSize (void) const; |
40af0232df83
add management frame implementations
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
1937
diff
changeset
|
37 |
Buffer::Iterator Serialize (Buffer::Iterator start) const; |
40af0232df83
add management frame implementations
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
1937
diff
changeset
|
38 |
Buffer::Iterator Deserialize (Buffer::Iterator start); |
1937
996383a87ae3
add new code to build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
39 |
private: |
996383a87ae3
add new code to build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
40 |
uint16_t m_code; |
996383a87ae3
add new code to build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
41 |
}; |
996383a87ae3
add new code to build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
42 |
|
2013
4a5335c67eac
add printing support
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
1939
diff
changeset
|
43 |
std::ostream &operator << (std::ostream &os, const StatusCode &code); |
4a5335c67eac
add printing support
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
1939
diff
changeset
|
44 |
|
1937
996383a87ae3
add new code to build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
45 |
} // namespace ns3 |
996383a87ae3
add new code to build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
46 |
|
996383a87ae3
add new code to build
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
47 |
#endif /* STATUS_CODE_H */ |