Component.h
Go to the documentation of this file.
1 /*
2  * This file is protected by Copyright. Please refer to the COPYRIGHT file
3  * distributed with this source distribution.
4  *
5  * This file is part of REDHAWK core.
6  *
7  * REDHAWK core is free software: you can redistribute it and/or modify it
8  * under the terms of the GNU Lesser General Public License as published by the
9  * Free Software Foundation, either version 3 of the License, or (at your
10  * option) any later version.
11  *
12  * REDHAWK core is distributed in the hope that it will be useful, but WITHOUT
13  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
14  * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
15  * for more details.
16  *
17  * You should have received a copy of the GNU Lesser General Public License
18  * along with this program. If not, see http://www.gnu.org/licenses/.
19  */
20 
21 #ifndef COMPONENT_H
22 #define COMPONENT_H
23 #include "Resource_impl.h"
24 #include "ossie/debug.h"
25 #include "ossie/Events.h"
26 #include "ossie/Autocomplete.h"
27 
28 class Component : public Resource_impl {
29 public:
30  Component(const char* _uuid);
31  Component(const char* _uuid, const char *label);
32  virtual ~Component();
33  void setAdditionalParameters(std::string &softwareProfile, std::string &application_registrar_ior, std::string &nic);
34  /*
35  * Return a pointer to the Application that the Resource is deployed on
36  */
37  redhawk::ApplicationContainer* getApplication() {
38  return this->_app;
39  }
40  /*
41  * Return the network information that was allocated to this Component (if applicable)
42  */
43  redhawk::NetworkContainer* getNetwork() {
44  return this->_net;
45  }
46 private:
47  redhawk::ApplicationContainer *_app;
48  redhawk::NetworkContainer *_net;
49 
50 };
51 
52 #endif /* COMPONENT_H */
53 
void setAdditionalParameters(std::string &softwareProfile, std::string &application_registrar_ior, std::string &nic)
Component(const char *_uuid)
redhawk::NetworkContainer * getNetwork()
Definition: Component.h:43
virtual ~Component()
char * softwareProfile()
Definition: Resource_impl.h:40
Definition: Component.h:28
redhawk::ApplicationContainer * getApplication()
Definition: Component.h:37