RINASim
October 2016
Documentation of framework for OMNeT++
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
NamingInformation.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
23
#ifndef __RINA_NAMINGINFORMATION_H_
24
#define __RINA_NAMINGINFORMATION_H_
25
26
#include <omnetpp.h>
27
//RINASim libraries
28
#include "
NamingInformationEntry.h
"
29
#include "
ExternConsts.h
"
30
31
typedef
std::list<NamingInformationEntry>
NamingInformations
;
32
typedef
NamingInformations::iterator
NamingItem
;
33
typedef
NamingInformations::const_iterator
NamingCItem
;
34
35
//Constants
36
extern
const
char
*
ELEM_NAMINGTABLE
;
37
extern
const
char
*
ELEM_SYNONYM
;
38
39
class
NamingInformation
:
public
cSimpleModule
40
{
41
public
:
42
43
void
addNamingEntry
(
const
APN
& apn);
44
NamingInformationEntry
*
findNamingEntryByApn
(
const
APN
& apn);
45
NamingInformationEntry
*
findNamingEntryBySynonym
(
const
APN
& synonym);
46
const
APN
*
findApnBySynonym
(
const
APN
& synonym);
47
const
APNList
findAllApnNames
(
const
APN
& apn);
48
void
addNewSynonym
(
const
APN
& apn,
const
APN
& synonym);
49
void
removeNamingEntry
(
const
APN
& apn);
50
51
protected
:
52
NamingInformations
NamingInfoTable
;
53
54
virtual
void
initialize
();
55
virtual
void
handleMessage
(cMessage *msg);
56
57
void
parseConfig
(cXMLElement* config);
58
59
void
udateDisplayString
();
60
61
};
62
63
#endif
ExternConsts.h
NamingInformation::removeNamingEntry
void removeNamingEntry(const APN &apn)
Definition:
NamingInformation.cc:57
APN
Application Process Name class.
Definition:
APN.h:36
NamingInformationEntry
Definition:
NamingInformationEntry.h:29
APNList
std::list< APN > APNList
APNList represents the list of APNs.
Definition:
APN.h:96
NamingInformation::addNamingEntry
void addNamingEntry(const APN &apn)
Definition:
NamingInformation.cc:41
NamingInformation::udateDisplayString
void udateDisplayString()
Definition:
NamingInformation.cc:145
NamingInformation::handleMessage
virtual void handleMessage(cMessage *msg)
Definition:
NamingInformation.cc:75
ELEM_NAMINGTABLE
const char * ELEM_NAMINGTABLE
Definition:
NamingInformation.cc:26
NamingInformations
std::list< NamingInformationEntry > NamingInformations
Definition:
NamingInformation.h:31
NamingItem
NamingInformations::iterator NamingItem
Definition:
NamingInformation.h:32
NamingInformation::findApnBySynonym
const APN * findApnBySynonym(const APN &synonym)
Definition:
NamingInformation.cc:70
NamingInformation::findAllApnNames
const APNList findAllApnNames(const APN &apn)
Definition:
NamingInformation.cc:80
NamingInformation::NamingInfoTable
NamingInformations NamingInfoTable
Definition:
NamingInformation.h:52
NamingInformationEntry.h
NamingInformation::parseConfig
void parseConfig(cXMLElement *config)
Definition:
NamingInformation.cc:108
NamingInformation
Definition:
NamingInformation.h:39
NamingInformation::initialize
virtual void initialize()
Definition:
NamingInformation.cc:31
NamingInformation::addNewSynonym
void addNewSynonym(const APN &apn, const APN &synonym)
Definition:
NamingInformation.cc:53
NamingInformation::findNamingEntryByApn
NamingInformationEntry * findNamingEntryByApn(const APN &apn)
Definition:
NamingInformation.cc:45
ELEM_SYNONYM
const char * ELEM_SYNONYM
Definition:
NamingInformation.cc:27
NamingCItem
NamingInformations::const_iterator NamingCItem
Definition:
NamingInformation.h:33
NamingInformation::findNamingEntryBySynonym
NamingInformationEntry * findNamingEntryBySynonym(const APN &synonym)
Definition:
NamingInformation.cc:61
src
DAF
DA
NamingInformation.h
Generated on Tue Oct 25 2016 21:09:02 for RINASim by
1.8.10