RINASim
October 2016
Documentation of framework for OMNeT++
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
DAFEnrollmentStateTable.h
Go to the documentation of this file.
1
// The MIT License (MIT)
2
//
3
// Copyright (c) 2014-2016 Brno University of Technology, PRISTINE project
4
//
5
// Permission is hereby granted, free of charge, to any person obtaining a copy
6
// of this software and associated documentation files (the "Software"), to deal
7
// in the Software without restriction, including without limitation the rights
8
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
// copies of the Software, and to permit persons to whom the Software is
10
// furnished to do so, subject to the following conditions:
11
//
12
// The above copyright notice and this permission notice shall be included in
13
// all copies or substantial portions of the Software.
14
//
15
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
// THE SOFTWARE.
22
31
#ifndef __RINA_DAFENROLLMENTSTATETABLE_H_
32
#define __RINA_DAFENROLLMENTSTATETABLE_H_
33
34
#include <omnetpp.h>
35
#include <string>
36
#include "
Flow.h
"
37
#include "
DAFEnrollmentStateTableEntry.h
"
38
39
typedef
std::list<DAFEnrollmentStateTableEntry>
DAFEnrollStateTable
;
40
typedef
DAFEnrollStateTable::iterator
DAFEnrollStateTableIter
;
41
typedef
DAFEnrollStateTable::const_iterator
DAFEnrollStateTableConstIter
;
42
43
class
DAFEnrollmentStateTable
:
public
cSimpleModule
44
{
45
public
:
46
void
insert
(
DAFEnrollmentStateTableEntry
entry);
47
DAFEnrollmentStateTableEntry
*
findEntryByDstAPN
(
const
APN
& apn);
48
DAFEnrollmentStateTableEntry
*
findEntryByDstAPNI
(
const
APNamingInfo
& apni);
49
bool
isEnrolled
(
const
APN
& myApn);
50
bool
isEmpty
();
51
52
protected
:
53
virtual
void
initialize
();
54
virtual
void
handleMessage
(cMessage *msg);
55
56
void
parseConfig
(cXMLElement* config);
57
58
private
:
59
DAFEnrollStateTable
StateTable
;
60
};
61
62
#endif
Flow.h
DAFEnrollmentStateTable::findEntryByDstAPNI
DAFEnrollmentStateTableEntry * findEntryByDstAPNI(const APNamingInfo &apni)
Definition:
DAFEnrollmentStateTable.cc:69
APN
Application Process Name class.
Definition:
APN.h:36
DAFEnrollmentStateTable::findEntryByDstAPN
DAFEnrollmentStateTableEntry * findEntryByDstAPN(const APN &apn)
Definition:
DAFEnrollmentStateTable.cc:58
DAFEnrollmentStateTable
Definition:
DAFEnrollmentStateTable.h:43
DAFEnrollStateTable
std::list< DAFEnrollmentStateTableEntry > DAFEnrollStateTable
Definition:
DAFEnrollmentStateTable.h:39
DAFEnrollmentStateTable::insert
void insert(DAFEnrollmentStateTableEntry entry)
Definition:
DAFEnrollmentStateTable.cc:54
DAFEnrollmentStateTable::isEnrolled
bool isEnrolled(const APN &myApn)
Definition:
DAFEnrollmentStateTable.cc:88
APNamingInfo
APNamingInfo holds complete naming info for particular application process.
Definition:
APNamingInfo.h:43
DAFEnrollmentStateTable::isEmpty
bool isEmpty()
Definition:
DAFEnrollmentStateTable.cc:50
DAFEnrollmentStateTable::StateTable
DAFEnrollStateTable StateTable
Definition:
DAFEnrollmentStateTable.h:59
DAFEnrollStateTableIter
DAFEnrollStateTable::iterator DAFEnrollStateTableIter
Definition:
DAFEnrollmentStateTable.h:40
DAFEnrollmentStateTable::initialize
virtual void initialize()
Definition:
DAFEnrollmentStateTable.cc:41
DAFEnrollmentStateTableEntry.h
DAFEnrollment state table entry .
DAFEnrollmentStateTableEntry
Definition:
DAFEnrollmentStateTableEntry.h:41
DAFEnrollmentStateTable::parseConfig
void parseConfig(cXMLElement *config)
Definition:
DAFEnrollmentStateTable.cc:100
DAFEnrollStateTableConstIter
DAFEnrollStateTable::const_iterator DAFEnrollStateTableConstIter
Definition:
DAFEnrollmentStateTable.h:41
DAFEnrollmentStateTable::handleMessage
virtual void handleMessage(cMessage *msg)
Definition:
DAFEnrollmentStateTable.cc:83
src
DAF
Enrollment
DAFEnrollmentStateTable.h
Generated on Tue Oct 25 2016 21:09:03 for RINASim by
1.8.10