Teamcenter C++ API Reference  2312
IExtendedResource.hxx
Go to the documentation of this file.
1 /*
2  Copyright 2022 Siemens Digital Industries Software
3  ==================================================
4  Copyright 2014.
5  Siemens Product Lifecycle Management Software Inc.
6  All Rights Reserved.
7  ==================================================
8  Copyright 2022 Siemens Digital Industries Software
9 */
10 
18 #ifndef LIS0LISFMWRK_IEXTENDEDRESOURCE_HXX
19 #define LIS0LISFMWRK_IEXTENDEDRESOURCE_HXX
20 
21 #include <map>
22 #include <string>
23 #include <vector>
24 
27 #include <Lis0lisfmwrk/libLis0lisfmwrk_exports.h>
28 
40 namespace lis0lisfmwrk
41 {
42  class Property;
43  class IExtendedResource;
44 }
45 
46 class LIS0LISFMWRK_API lis0lisfmwrk::IExtendedResource
48 {
49 public:
50 
53 
55  virtual ~IExtendedResource();
56 
62  virtual void setTypes( const std::vector<std::string>& types ) = 0;
63 
68  virtual std::vector<std::string> getTypes() = 0;
69 
75  virtual std::string getType() = 0;
76 
82  virtual void addType( const std::string& type ) = 0;
83 
90  virtual void addNamespace( const std::string& value, const std::string& key ) = 0;
91 
98  virtual std::string getNamespacePrefix( const std::string& url, bool &isNull ) = 0;
99 
106  virtual std::string getNamespaceURL( const std::string& prefix, bool &isNull ) = 0;
107 
112  virtual std::map<std::string, std::string> getNamespaces() = 0;
113 
120  virtual void addProperty( lis0lisfmwrk::Property* value, const std::string& key ) = 0;
121 
127  virtual lis0lisfmwrk::Property* getProperty( const std::string& key ) = 0;
128 
133  virtual std::map<std::string, lis0lisfmwrk::Property*> getProperties() = 0;
134 
141  virtual void addExtendedProperty( lis0lisfmwrk::Property* value, const std::string& key ) = 0;
142 
148  virtual lis0lisfmwrk::Property* getExtendedProperty( const std::string& key ) = 0;
149 
154  virtual std::map<std::string, lis0lisfmwrk::Property*> getExtendedProperties() = 0;
155 
162  virtual void addXmlLiteralPropertyValue( const std::string& str, const std::string& key ) = 0;
163 
169  virtual std::string getXmlLiteralPropertyValue( const std::string& key ) = 0;
170 
177  virtual void addSimpleStringPropertyValue( const std::string& str, const std::string& key ) = 0;
178 
184  virtual std::string getSimpleStringPropertyValue( const std::string& key ) = 0;
185 
192  virtual void addResourcePropertyValue( const std::string& str, const std::string& key ) = 0;
193 
199  virtual std::string getResourcePropertyValue( const std::string& key ) = 0;
200 
206  virtual std::vector<std::string> getResourcePropertyValues( const std::string& key ) = 0;
207 
214  virtual void addBoolDataPropertyValue( const bool& value, const std::string& key ) = 0;
215 
221  virtual bool getBoolDataPropertyValue( const std::string& key, bool &isNull ) = 0;
227  virtual Teamcenter::BoolVector getBoolDataPropertyValues( const std::string& key ) = 0;
228 
235  virtual void addDoubleDataPropertyValue( const double& value, const std::string& key ) = 0;
236 
242  virtual double getDoubleDataPropertyValue( const std::string& key, bool &isNull ) = 0;
243 
249  virtual Teamcenter::DoubleVector getDoubleDataPropertyValues( const std::string& key ) = 0;
255  virtual void addFloatDataPropertyValue( const double& value, const std::string& key ) = 0;
256 
262  virtual double getFloatDataPropertyValue( const std::string& key, bool &isNull ) = 0;
263 
269  virtual Teamcenter::DoubleVector getFloatDataPropertyValues( const std::string& key ) = 0;
270 
277  virtual void addDecimalDataPropertyValue( const double& value, const std::string& key ) = 0;
278 
284  virtual double getDecimalDataPropertyValue( const std::string& key, bool &isNull ) = 0;
285 
291  virtual Teamcenter::DoubleVector getDecimalDataPropertyValues( const std::string& key ) = 0;
292 
299  virtual void addIntDataPropertyValue( const int& value, const std::string& key ) = 0;
300 
306  virtual int getIntDataPropertyValue( const std::string& key, bool &isNull ) = 0;
307 
313  virtual Teamcenter::IntVector getIntDataPropertyValues( const std::string& key ) = 0;
314 
321  virtual void addStringDataPropertyValue( const std::string& value, const std::string& key ) = 0;
322 
328  virtual std::string getStringDataPropertyValue( const std::string& key, bool &isNull ) = 0;
329 
335  virtual std::vector<std::string> getStringDataPropertyValues( const std::string& key ) = 0;
336 
343  virtual void addDateTimePropertyValue( const date_t& value, const std::string& key ) = 0;
344 
350  virtual date_t getDateTimePropertyValue( const std::string& key, bool &isNull ) = 0;
351 
357  virtual Teamcenter::DateVector getDateTimePropertyValues( const std::string& key ) = 0;
358 
359 private:
360 
363 
366 
367 };
368 
371 #include <Lis0lisfmwrk/libLis0lisfmwrk_undef.h>
372 #endif