DataDirector API
DDD_Base.h
Go to the documentation of this file.
1 #ifndef _DDD_Base_h_
2 #define _DDD_Base_h_
3 
4 /*! \file DDD_Base.h
5 
6  \par Copyright Information
7 
8  Copyright (c) 2012 The DiSTI Corporation.<br>
9  11301 Corporate Blvd; Suite 100<br>
10  Orlando, Florida 32817<br>
11  USA<br>
12  <br>
13  All rights reserved.<br>
14 
15  This Software contains proprietary trade secrets of DiSTI and may not be
16 reproduced, in whole or part, in any form, or by any means of electronic,
17 mechanical, or otherwise, without the written permission of DiSTI. Said
18 permission may be derived through the purchase of applicable DiSTI product
19 licenses which detail the distribution rights of this content and any
20 Derivative Works based on this or other copyrighted DiSTI Software.
21 
22  NO WARRANTY. THE SOFTWARE IS PROVIDED "AS-IS," WITHOUT WARRANTY OF ANY KIND,
23 AND ANY USE OF THIS SOFTWARE PRODUCT IS AT YOUR OWN RISK. TO THE MAXIMUM EXTENT
24 PERMITTED BY APPLICABLE LAW, DISTI AND ITS SUPPLIERS DISCLAIM ALL WARRANTIES
25 AND CONDITIONS, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
26 IMPLIED WARRANTIES AND CONDITIONS OF MERCHANTABILITY AND/OR FITNESS FOR A
27 PARTICULAR PURPOSE, TITLE, AND NON-INFRINGEMENT, WITH REGARD TO THE SOFTWARE.
28 
29  LIMITATION OF LIABILITY. TO THE MAXIMUM EXTENT PERMITTED BY APPLICABLE LAW,
30 IN NO EVENT SHALL DISTI OR ITS SUPPLIERS BE LIABLE FOR ANY SPECIAL, INCIDENTAL,
31 INDIRECT, OR CONSEQUENTIAL DAMAGES WHATSOEVER (INCLUDING, WITHOUT LIMITATION,
32 DAMAGES FOR LOSS OF BUSINESS PROFITS, BUSINESS INTERRUPTION, LOSS OF BUSINESS
33 INFORMATION, OR ANY OTHER PECUNIARY LOSS) ARISING OUT OF THE USE OF OR
34 INABILITY TO USE THE SOFTWARE, EVEN IF DISTI HAS BEEN ADVISED OF THE POSSIBLITY
35 OF SUCH DAMAGES. DISTI'S ENTIRE LIABILITY AND YOUR EXCLUSIVE REMEDY SHALL NOT
36 EXCEED FIVE DOLLARS (US$5.00).
37 
38  The aforementioned terms and restrictions are governed by the laws of the
39 State of Florida and the United States of America.
40 
41 */
42 
43 #include "DDD_Include.h"
44 #include "DDD_AttributeList.h"
45 #include "DDD_LogFacade.h"
46 #include <string>
47 
48 namespace disti
49 {
50 
51 /** \brief The DDD_Base class. Base class for Data Director objects.
52  */
53 class DDD_EXPORT DDD_Base : public DDD_LogFacade
54 {
55 protected:
56  std::string _instanceName; /**< The instance name of this object */
57 
58  /** The parameters of this object
59  * \warning Any parameter stored in this list will get deallocated in DDD_Base's
60  * destructor. Be wary of dangling pointers!
61  */
63 public:
64 
65  /** Constructor */
67  {
68  }
69 
70  /** Destructor */
71  virtual ~DDD_Base();
72 
73  /** \return Returns the instance name for this asset
74  */
75  const char* GetInstanceName() const { return _instanceName.c_str(); }
76 
77  /** Set the instance name for this asset
78  * \param name The instance name to set
79  */
80  virtual void SetInstanceName(const char *name) { _instanceName = name; }
81 
82  /** Sets the initialization parameters. The params specified will be merged with the parameters
83  * in the asset. Parameters that don't exist will be added. Parameters that do exist will be updated.
84  * \param params A set of parameter values to update or add.
85  */
86  virtual void SetParams(const DDD_AttributeList &params);
87 
88  /** \return Gets the list of initialization parameters for the object */
89  virtual DDD_AttributeList &GetParams() { return _params; }
90 };
91 
92 } // namespace disti
93 
94 #endif
95 
virtual DDD_AttributeList & GetParams()
Definition: DDD_Base.h:89
virtual void SetInstanceName(const char *name)
Definition: DDD_Base.h:80
Facade to provide a simpler interface to the DDD_Log singleton. Its second purpose is for decoupling;...
Definition: DDD_LogFacade.h:50
The DDD_AttributeList class. Maintains a list of Data Director attributes.
Definition: DDD_AttributeList.h:52
The DDD_AttributeList class. Maintains a list of Data Director attributes.
DDD_Base()
Definition: DDD_Base.h:66
DDD_AttributeList _params
Definition: DDD_Base.h:62
The DDD_Base class. Base class for Data Director objects.
Definition: DDD_Base.h:53
const char * GetInstanceName() const
Definition: DDD_Base.h:75
std::string _instanceName
Definition: DDD_Base.h:56
Definition: AttributeChangedEmitter.h:46