root/ossie/trunk/ossie/parser/ProvidesPort.cpp @ 3321

Revision 3321, 1.9 KB (checked in by balister, 6 years ago)

Change parser to tinyxml, about half done.

  • Property svn:eol-style set to native
Line 
1/*******************************************************************************
2
3Copyright 2004, 2007 Virginia Polytechnic Institute and State University
4
5This file is part of the OSSIE Parser.
6
7OSSIE Parser is free software; you can redistribute it and/or modify
8it under the terms of the Lesser GNU General Public License as published by
9the Free Software Foundation; either version 2.1 of the License, or
10(at your option) any later version.
11
12OSSIE Parser is distributed in the hope that it will be useful,
13but WITHOUT ANY WARRANTY; without even the implied warranty of
14MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15Lesser GNU General Public License for more details.
16
17You should have received a copy of the Lesser GNU General Public License
18along with OSSIE Parser; if not, write to the Free Software
19Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
20
21Even though all code is original, the architecture of the OSSIE Parser is based
22on the architecture of the CRCs SCA Reference Implementation (SCARI)
23see: http://www.crc.ca/en/html/rmsc/home/sdr/projects/scari
24
25*********************************************************************************/
26
27#include "ossie/ProvidesPort.h"
28
29#include "tinyxml.h"
30
31ProvidesPort::ProvidesPort(TiXmlElement * element):
32Port(element)
33{
34    parseID(element);
35}
36
37
38ProvidesPort::ProvidesPort (const ProvidesPort & _pp)
39{
40
41    this->ifComponentInstantiationRef = _pp.ifComponentInstantiationRef;
42    this->ifDeviceThatLoadedThisComponentRef =
43    _pp.ifDeviceThatLoadedThisComponentRef;
44    this->ifDeviceUsedByThisComponentRef = _pp.ifDeviceUsedByThisComponentRef;
45    this->ifFindBy = _pp.ifFindBy;
46
47    identifier = _pp.identifier;
48}
49
50ProvidesPort::~ProvidesPort()
51{
52}
53
54
55void ProvidesPort::parseID(TiXmlElement *elem)
56{
57    TiXmlElement *providesId = elem->FirstChildElement("providesidentifier");
58    identifier = providesId->GetText();
59}
60
61const char* ProvidesPort::getID()
62{
63    return identifier.c_str();
64}
Note: See TracBrowser for help on using the browser.