From: Oliver Kurth Date: Fri, 15 Sep 2017 18:22:48 +0000 (-0700) Subject: Bulk changes for the common-agent service. X-Git-Tag: stable-10.2.0~670 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f07c2501fbc0d5e590b248861abefbad048d7bde;p=thirdparty%2Fopen-vm-tools.git Bulk changes for the common-agent service. --- diff --git a/open-vm-tools/common-agent/Cpp/Communication/amqpListener/src/amqpListenerMain.cpp b/open-vm-tools/common-agent/Cpp/Communication/amqpListener/src/amqpListenerMain.cpp index c0b173c5d..68aecd083 100644 --- a/open-vm-tools/common-agent/Cpp/Communication/amqpListener/src/amqpListenerMain.cpp +++ b/open-vm-tools/common-agent/Cpp/Communication/amqpListener/src/amqpListenerMain.cpp @@ -93,6 +93,11 @@ int32 main(int32 argc, char** argv) { try { _gAmqpListenerWorker.CreateInstance(); + const uint32 maxStrLen = 4096; + if ((argc < 1) || (NULL == argv) || (NULL == argv[0]) || (::strnlen(argv[0], maxStrLen) >= maxStrLen)) { + CAF_CM_EXCEPTION_VA0(E_INVALIDARG, "argc/argv are invalid"); + } + #ifdef WIN32 CWinService::initialize(_gAmqpListenerWorker); CWinService::execute(argc, argv); diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/CafCoreTypesDoc/CAddInCollectionDoc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/CafCoreTypesDoc/CAddInCollectionDoc.h index 2c1b3875a..15c73ca0c 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/CafCoreTypesDoc/CAddInCollectionDoc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/CafCoreTypesDoc/CAddInCollectionDoc.h @@ -5,8 +5,6 @@ * Copyright (c) 2012 Vmware, Inc. All rights reserved. * -- VMware Confidential * - * This code was generated by the script "build/dev/codeGen/genCppDoc". Please - * speak to Brian W. before modifying it by hand. * */ @@ -16,30 +14,21 @@ namespace Caf { /// A simple container for objects of type AddInCollection -class CAddInCollectionDoc { +class CAFCORETYPESDOC_LINKAGE CAddInCollectionDoc { public: - CAddInCollectionDoc() : - _isInitialized(false) {} - virtual ~CAddInCollectionDoc() {} + CAddInCollectionDoc(); + virtual ~CAddInCollectionDoc(); public: /// Initializes the object with everything required by this /// container. Once initialized, this object cannot /// be changed (i.e. it is immutable). void initialize( - const std::deque addInCollection = std::deque()) { - if (! _isInitialized) { - _addInCollection = addInCollection; - - _isInitialized = true; - } - } + const std::deque addInCollection = std::deque()); public: /// Accessor for the AddIn - std::deque getAddInCollection() const { - return _addInCollection; - } + std::deque getAddInCollection() const; private: bool _isInitialized; diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/CafCoreTypesDoc/CAddInsDoc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/CafCoreTypesDoc/CAddInsDoc.h index bb03f6c46..10a851fce 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/CafCoreTypesDoc/CAddInsDoc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/CafCoreTypesDoc/CAddInsDoc.h @@ -5,8 +5,6 @@ * Copyright (c) 2012 Vmware, Inc. All rights reserved. * -- VMware Confidential * - * This code was generated by the script "build/dev/codeGen/genCppDoc". Please - * speak to Brian W. before modifying it by hand. * */ @@ -16,30 +14,21 @@ namespace Caf { /// A simple container for objects of type AddIns -class CAddInsDoc { +class CAFCORETYPESDOC_LINKAGE CAddInsDoc { public: - CAddInsDoc() : - _isInitialized(false) {} - virtual ~CAddInsDoc() {} + CAddInsDoc(); + virtual ~CAddInsDoc(); public: /// Initializes the object with everything required by this /// container. Once initialized, this object cannot /// be changed (i.e. it is immutable). void initialize( - const std::deque addInCollection = std::deque()) { - if (! _isInitialized) { - _addInCollection = addInCollection; - - _isInitialized = true; - } - } + const std::deque addInCollection = std::deque()); public: /// Accessor for the AddInCollection - std::deque getAddInCollection() const { - return _addInCollection; - } + std::deque getAddInCollection() const; private: bool _isInitialized; diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/CafCoreTypesDoc/CAttachmentCollectionDoc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/CafCoreTypesDoc/CAttachmentCollectionDoc.h index d12a71583..c6f6d761e 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/CafCoreTypesDoc/CAttachmentCollectionDoc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/CafCoreTypesDoc/CAttachmentCollectionDoc.h @@ -5,8 +5,6 @@ * Copyright (c) 2012 Vmware, Inc. All rights reserved. * -- VMware Confidential * - * This code was generated by the script "build/dev/codeGen/genCppDoc". Please - * speak to Brian W. before modifying it by hand. * */ @@ -16,11 +14,10 @@ namespace Caf { /// A simple container for objects of type AttachmentCollection -class CAttachmentCollectionDoc { +class CAFCORETYPESDOC_LINKAGE CAttachmentCollectionDoc { public: - CAttachmentCollectionDoc() : - _isInitialized(false) {} - virtual ~CAttachmentCollectionDoc() {} + CAttachmentCollectionDoc(); + virtual ~CAttachmentCollectionDoc(); public: /// Initializes the object with everything required by this @@ -28,25 +25,14 @@ public: /// be changed (i.e. it is immutable). void initialize( const std::deque attachment = std::deque(), - const std::deque inlineAttachment = std::deque()) { - if (! _isInitialized) { - _attachment = attachment; - _inlineAttachment = inlineAttachment; - - _isInitialized = true; - } - } + const std::deque inlineAttachment = std::deque()); public: /// Accessor for the Attachment - std::deque getAttachment() const { - return _attachment; - } + std::deque getAttachment() const; /// Accessor for the InlineAttachment - std::deque getInlineAttachment() const { - return _inlineAttachment; - } + std::deque getInlineAttachment() const; private: bool _isInitialized; diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/CafCoreTypesDoc/CAttachmentDoc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/CafCoreTypesDoc/CAttachmentDoc.h index ddcf46ce2..ce1c49abc 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/CafCoreTypesDoc/CAttachmentDoc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/CafCoreTypesDoc/CAttachmentDoc.h @@ -13,13 +13,10 @@ namespace Caf { /// A simple container for objects of type Attachment -class CAttachmentDoc { +class CAFCORETYPESDOC_LINKAGE CAttachmentDoc { public: - CAttachmentDoc() : - _isInitialized(false), - _isReference(false), - _cmsPolicy(CMS_POLICY_CAF_ENCRYPTED_AND_SIGNED) {} - virtual ~CAttachmentDoc() {} + CAttachmentDoc(); + virtual ~CAttachmentDoc(); public: /// Initializes the object with everything required by this @@ -30,43 +27,23 @@ public: const std::string type, const std::string uri, const bool isReference, - const CMS_POLICY cmsPolicy = CMS_POLICY_CAF_ENCRYPTED_AND_SIGNED) { - if (! _isInitialized) { - _name = name; - _type = type; - _uri = uri; - _isReference = isReference; - _cmsPolicy = cmsPolicy; - - _isInitialized = true; - } - } + const CMS_POLICY cmsPolicy = CMS_POLICY_CAF_ENCRYPTED_AND_SIGNED); public: /// Accessor for the Name - std::string getName() const { - return _name; - } + std::string getName() const; /// Accessor for the Type - std::string getType() const { - return _type; - } + std::string getType() const; /// Accessor for the Uri - std::string getUri() const { - return _uri; - } + std::string getUri() const; /// Accessor for the IsReference - bool getIsReference() const { - return _isReference; - } + bool getIsReference() const; /// Accessor for the CMS Policy - CMS_POLICY getCmsPolicy() const { - return _cmsPolicy; - } + CMS_POLICY getCmsPolicy() const; private: bool _isInitialized; diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/CafCoreTypesDoc/CAttachmentNameCollectionDoc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/CafCoreTypesDoc/CAttachmentNameCollectionDoc.h index 341696649..0f542f0fc 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/CafCoreTypesDoc/CAttachmentNameCollectionDoc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/CafCoreTypesDoc/CAttachmentNameCollectionDoc.h @@ -5,8 +5,6 @@ * Copyright (c) 2012 Vmware, Inc. All rights reserved. * -- VMware Confidential * - * This code was generated by the script "build/dev/codeGen/genCppDoc". Please - * speak to Brian W. before modifying it by hand. * */ @@ -16,30 +14,21 @@ namespace Caf { /// A simple container for objects of type AttachmentNameCollection -class CAttachmentNameCollectionDoc { +class CAFCORETYPESDOC_LINKAGE CAttachmentNameCollectionDoc { public: - CAttachmentNameCollectionDoc() : - _isInitialized(false) {} - virtual ~CAttachmentNameCollectionDoc() {} + CAttachmentNameCollectionDoc(); + virtual ~CAttachmentNameCollectionDoc(); public: /// Initializes the object with everything required by this /// container. Once initialized, this object cannot /// be changed (i.e. it is immutable). void initialize( - const std::deque name = std::deque()) { - if (! _isInitialized) { - _name = name; - - _isInitialized = true; - } - } + const std::deque name = std::deque()); public: /// Accessor for the Name - std::deque getName() const { - return _name; - } + std::deque getName() const; private: bool _isInitialized; diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/CafCoreTypesDoc/CAuthnAuthzCollectionDoc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/CafCoreTypesDoc/CAuthnAuthzCollectionDoc.h index 4bd791434..ad58811f1 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/CafCoreTypesDoc/CAuthnAuthzCollectionDoc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/CafCoreTypesDoc/CAuthnAuthzCollectionDoc.h @@ -5,8 +5,6 @@ * Copyright (c) 2012 Vmware, Inc. All rights reserved. * -- VMware Confidential * - * This code was generated by the script "build/dev/codeGen/genCppDoc". Please - * speak to Brian W. before modifying it by hand. * */ @@ -16,30 +14,21 @@ namespace Caf { /// Set of logging levels for different components -class CAuthnAuthzCollectionDoc { +class CAFCORETYPESDOC_LINKAGE CAuthnAuthzCollectionDoc { public: - CAuthnAuthzCollectionDoc() : - _isInitialized(false) {} - virtual ~CAuthnAuthzCollectionDoc() {} + CAuthnAuthzCollectionDoc(); + virtual ~CAuthnAuthzCollectionDoc(); public: /// Initializes the object with everything required by this /// container. Once initialized, this object cannot /// be changed (i.e. it is immutable). void initialize( - const std::deque authnAuthz = std::deque()) { - if (! _isInitialized) { - _authnAuthz = authnAuthz; - - _isInitialized = true; - } - } + const std::deque authnAuthz = std::deque()); public: /// Used to change the logging level for a specific component - std::deque getAuthnAuthz() const { - return _authnAuthz; - } + std::deque getAuthnAuthz() const; private: bool _isInitialized; diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/CafCoreTypesDoc/CAuthnAuthzDoc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/CafCoreTypesDoc/CAuthnAuthzDoc.h index 39afc7e27..4c262380b 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/CafCoreTypesDoc/CAuthnAuthzDoc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/CafCoreTypesDoc/CAuthnAuthzDoc.h @@ -13,12 +13,10 @@ namespace Caf { /// A simple container for objects of type AuthnAuthz -class CAuthnAuthzDoc { +class CAFCORETYPESDOC_LINKAGE CAuthnAuthzDoc { public: - CAuthnAuthzDoc() : - _isInitialized(false), - _sequenceNumber(0) {} - virtual ~CAuthnAuthzDoc() {} + CAuthnAuthzDoc(); + virtual ~CAuthnAuthzDoc(); public: /// Initializes the object with everything required by this @@ -28,37 +26,20 @@ public: const std::string type, const std::string value, const std::string name = std::string(), - const int32 sequenceNumber = 0) { - if (! _isInitialized) { - _type = type; - _value = value; - _name = name; - _sequenceNumber = sequenceNumber; - - _isInitialized = true; - } - } + const int32 sequenceNumber = 0); public: /// Accessor for the Type - std::string getType() const { - return _type; - } + std::string getType() const; /// Accessor for the Value - std::string getValue() const { - return _value; - } + std::string getValue() const; /// Accessor for the Name - std::string getName() const { - return _name; - } + std::string getName() const; /// Accessor for the SequenceNumber - int32 getSequenceNumber() const { - return _sequenceNumber; - } + int32 getSequenceNumber() const; private: bool _isInitialized; diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/CafCoreTypesDoc/CClassFiltersDoc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/CafCoreTypesDoc/CClassFiltersDoc.h index 6599701fb..eeed1c770 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/CafCoreTypesDoc/CClassFiltersDoc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/CafCoreTypesDoc/CClassFiltersDoc.h @@ -5,8 +5,6 @@ * Copyright (c) 2012 Vmware, Inc. All rights reserved. * -- VMware Confidential * - * This code was generated by the script "build/dev/codeGen/genCppDoc". Please - * speak to Brian W. before modifying it by hand. * */ @@ -16,11 +14,10 @@ namespace Caf { /// A simple container for objects of type ClassFilters -class CClassFiltersDoc { +class CAFCORETYPESDOC_LINKAGE CClassFiltersDoc { public: - CClassFiltersDoc() : - _isInitialized(false) {} - virtual ~CClassFiltersDoc() {} + CClassFiltersDoc(); + virtual ~CClassFiltersDoc(); public: /// Initializes the object with everything required by this @@ -28,25 +25,14 @@ public: /// be changed (i.e. it is immutable). void initialize( const std::string dialect = std::string(), - const std::deque classFilter = std::deque()) { - if (! _isInitialized) { - _dialect = dialect; - _classFilter = classFilter; - - _isInitialized = true; - } - } + const std::deque classFilter = std::deque()); public: /// Accessor for the Dialect - std::string getDialect() const { - return _dialect; - } + std::string getDialect() const; /// Accessor for the ClassFilter - std::deque getClassFilter() const { - return _classFilter; - } + std::deque getClassFilter() const; private: bool _isInitialized; diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/CafCoreTypesDoc/CClassSpecifierDoc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/CafCoreTypesDoc/CClassSpecifierDoc.h index 6672a9276..85d492491 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/CafCoreTypesDoc/CClassSpecifierDoc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/CafCoreTypesDoc/CClassSpecifierDoc.h @@ -5,8 +5,6 @@ * Copyright (c) 2012 Vmware, Inc. All rights reserved. * -- VMware Confidential * - * This code was generated by the script "build/dev/codeGen/genCppDoc". Please - * speak to Brian W. before modifying it by hand. * */ @@ -16,11 +14,10 @@ namespace Caf { /// A simple container for objects of type ClassSpecifier -class CClassSpecifierDoc { +class CAFCORETYPESDOC_LINKAGE CClassSpecifierDoc { public: - CClassSpecifierDoc() : - _isInitialized(false) {} - virtual ~CClassSpecifierDoc() {} + CClassSpecifierDoc(); + virtual ~CClassSpecifierDoc(); public: /// Initializes the object with everything required by this @@ -28,25 +25,14 @@ public: /// be changed (i.e. it is immutable). void initialize( const SmartPtrCFullyQualifiedClassGroupDoc fullyQualifiedClass = SmartPtrCFullyQualifiedClassGroupDoc(), - const SmartPtrCClassFiltersDoc classFilters = SmartPtrCClassFiltersDoc()) { - if (! _isInitialized) { - _fullyQualifiedClass = fullyQualifiedClass; - _classFilters = classFilters; - - _isInitialized = true; - } - } + const SmartPtrCClassFiltersDoc classFilters = SmartPtrCClassFiltersDoc()); public: /// Accessor for the FullyQualifiedClass - SmartPtrCFullyQualifiedClassGroupDoc getFullyQualifiedClass() const { - return _fullyQualifiedClass; - } + SmartPtrCFullyQualifiedClassGroupDoc getFullyQualifiedClass() const; /// Accessor for the ClassFilters - SmartPtrCClassFiltersDoc getClassFilters() const { - return _classFilters; - } + SmartPtrCClassFiltersDoc getClassFilters() const; private: bool _isInitialized; diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/CafCoreTypesDoc/CFullyQualifiedClassGroupDoc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/CafCoreTypesDoc/CFullyQualifiedClassGroupDoc.h index cd2d04db7..037453eac 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/CafCoreTypesDoc/CFullyQualifiedClassGroupDoc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/CafCoreTypesDoc/CFullyQualifiedClassGroupDoc.h @@ -5,8 +5,6 @@ * Copyright (c) 2012 Vmware, Inc. All rights reserved. * -- VMware Confidential * - * This code was generated by the script "build/dev/codeGen/genCppDoc". Please - * speak to Brian W. before modifying it by hand. * */ @@ -16,11 +14,10 @@ namespace Caf { /// A simple container for objects of type FullyQualifiedClassGroup -class CFullyQualifiedClassGroupDoc { +class CAFCORETYPESDOC_LINKAGE CFullyQualifiedClassGroupDoc { public: - CFullyQualifiedClassGroupDoc() : - _isInitialized(false) {} - virtual ~CFullyQualifiedClassGroupDoc() {} + CFullyQualifiedClassGroupDoc(); + virtual ~CFullyQualifiedClassGroupDoc(); public: /// Initializes the object with everything required by this @@ -29,31 +26,17 @@ public: void initialize( const std::string classNamespace, const std::string className, - const std::string classVersion) { - if (! _isInitialized) { - _classNamespace = classNamespace; - _className = className; - _classVersion = classVersion; - - _isInitialized = true; - } - } + const std::string classVersion); public: /// Accessor for the ClassNamespace - std::string getClassNamespace() const { - return _classNamespace; - } + std::string getClassNamespace() const; /// Accessor for the ClassName - std::string getClassName() const { - return _className; - } + std::string getClassName() const; /// Accessor for the ClassVersion - std::string getClassVersion() const { - return _classVersion; - } + std::string getClassVersion() const; private: bool _isInitialized; diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/CafCoreTypesDoc/CInlineAttachmentCollectionDoc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/CafCoreTypesDoc/CInlineAttachmentCollectionDoc.h index 7c33ab046..db1d4cbac 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/CafCoreTypesDoc/CInlineAttachmentCollectionDoc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/CafCoreTypesDoc/CInlineAttachmentCollectionDoc.h @@ -5,8 +5,6 @@ * Copyright (c) 2012 Vmware, Inc. All rights reserved. * -- VMware Confidential * - * This code was generated by the script "build/dev/codeGen/genCppDoc". Please - * speak to Brian W. before modifying it by hand. * */ @@ -16,30 +14,21 @@ namespace Caf { /// A simple container for objects of type InlineAttachmentCollection -class CInlineAttachmentCollectionDoc { +class CAFCORETYPESDOC_LINKAGE CInlineAttachmentCollectionDoc { public: - CInlineAttachmentCollectionDoc() : - _isInitialized(false) {} - virtual ~CInlineAttachmentCollectionDoc() {} + CInlineAttachmentCollectionDoc(); + virtual ~CInlineAttachmentCollectionDoc(); public: /// Initializes the object with everything required by this /// container. Once initialized, this object cannot /// be changed (i.e. it is immutable). void initialize( - const std::deque attachment = std::deque()) { - if (! _isInitialized) { - _attachment = attachment; - - _isInitialized = true; - } - } + const std::deque attachment = std::deque()); public: /// Accessor for the InlineAttachment - std::deque getInlineAttachment() const { - return _attachment; - } + std::deque getInlineAttachment() const; private: bool _isInitialized; diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/CafCoreTypesDoc/CInlineAttachmentDoc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/CafCoreTypesDoc/CInlineAttachmentDoc.h index 0bdf80350..25789d2f6 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/CafCoreTypesDoc/CInlineAttachmentDoc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/CafCoreTypesDoc/CInlineAttachmentDoc.h @@ -5,8 +5,6 @@ * Copyright (c) 2012 Vmware, Inc. All rights reserved. * -- VMware Confidential * - * This code was generated by the script "build/dev/codeGen/genCppDoc". Please - * speak to Brian W. before modifying it by hand. * */ @@ -16,11 +14,10 @@ namespace Caf { /// A simple container for objects of type InlineAttachment -class CInlineAttachmentDoc { +class CAFCORETYPESDOC_LINKAGE CInlineAttachmentDoc { public: - CInlineAttachmentDoc() : - _isInitialized(false) {} - virtual ~CInlineAttachmentDoc() {} + CInlineAttachmentDoc(); + virtual ~CInlineAttachmentDoc(); public: /// Initializes the object with everything required by this @@ -29,31 +26,17 @@ public: void initialize( const std::string name, const std::string type, - const std::string value) { - if (! _isInitialized) { - _name = name; - _type = type; - _value = value; - - _isInitialized = true; - } - } + const std::string value); public: /// Accessor for the Name - std::string getName() const { - return _name; - } + std::string getName() const; /// Accessor for the Type - std::string getType() const { - return _type; - } + std::string getType() const; /// Accessor for the Value - std::string getValue() const { - return _value; - } + std::string getValue() const; private: bool _isInitialized; diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/CafCoreTypesDoc/CLoggingLevelCollectionDoc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/CafCoreTypesDoc/CLoggingLevelCollectionDoc.h index 2f41493fe..4900cbfd7 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/CafCoreTypesDoc/CLoggingLevelCollectionDoc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/CafCoreTypesDoc/CLoggingLevelCollectionDoc.h @@ -5,8 +5,6 @@ * Copyright (c) 2012 Vmware, Inc. All rights reserved. * -- VMware Confidential * - * This code was generated by the script "build/dev/codeGen/genCppDoc". Please - * speak to Brian W. before modifying it by hand. * */ @@ -16,30 +14,21 @@ namespace Caf { /// Set of logging levels for different components -class CLoggingLevelCollectionDoc { +class CAFCORETYPESDOC_LINKAGE CLoggingLevelCollectionDoc { public: - CLoggingLevelCollectionDoc() : - _isInitialized(false) {} - virtual ~CLoggingLevelCollectionDoc() {} + CLoggingLevelCollectionDoc(); + virtual ~CLoggingLevelCollectionDoc(); public: /// Initializes the object with everything required by this /// container. Once initialized, this object cannot /// be changed (i.e. it is immutable). void initialize( - const std::deque loggingLevel = std::deque()) { - if (! _isInitialized) { - _loggingLevel = loggingLevel; - - _isInitialized = true; - } - } + const std::deque loggingLevel = std::deque()); public: /// Used to change the logging level for a specific component - std::deque getLoggingLevel() const { - return _loggingLevel; - } + std::deque getLoggingLevel() const; private: bool _isInitialized; diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/CafCoreTypesDoc/CLoggingLevelElemDoc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/CafCoreTypesDoc/CLoggingLevelElemDoc.h index 6791e8e25..1219a305c 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/CafCoreTypesDoc/CLoggingLevelElemDoc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/CafCoreTypesDoc/CLoggingLevelElemDoc.h @@ -5,8 +5,6 @@ * Copyright (c) 2012 Vmware, Inc. All rights reserved. * -- VMware Confidential * - * This code was generated by the script "build/dev/codeGen/genCppDoc". Please - * speak to Brian W. before modifying it by hand. * */ @@ -16,13 +14,10 @@ namespace Caf { /// Logging level for a component -class CLoggingLevelElemDoc { +class CAFCORETYPESDOC_LINKAGE CLoggingLevelElemDoc { public: - CLoggingLevelElemDoc() : - _component(LOGGINGCOMPONENT_NONE), - _level(LOGGINGLEVEL_NONE), - _isInitialized(false) {} - virtual ~CLoggingLevelElemDoc() {} + CLoggingLevelElemDoc(); + virtual ~CLoggingLevelElemDoc(); public: /// Initializes the object with everything required by this @@ -30,25 +25,14 @@ public: /// be changed (i.e. it is immutable). void initialize( const LOGGINGCOMPONENT_TYPE component = LOGGINGCOMPONENT_NONE, - const LOGGINGLEVEL_TYPE level = LOGGINGLEVEL_NONE) { - if (! _isInitialized) { - _component = component; - _level = level; - - _isInitialized = true; - } - } + const LOGGINGLEVEL_TYPE level = LOGGINGLEVEL_NONE); public: /// The logging level applies to this component - LOGGINGCOMPONENT_TYPE getComponent() const { - return _component; - } + LOGGINGCOMPONENT_TYPE getComponent() const; /// Set the logging level to this value - LOGGINGLEVEL_TYPE getLevel() const { - return _level; - } + LOGGINGLEVEL_TYPE getLevel() const; private: LOGGINGCOMPONENT_TYPE _component; diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/CafCoreTypesDoc/COperationDoc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/CafCoreTypesDoc/COperationDoc.h index 3d2dbff2b..2b3402503 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/CafCoreTypesDoc/COperationDoc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/CafCoreTypesDoc/COperationDoc.h @@ -5,8 +5,6 @@ * Copyright (c) 2012 Vmware, Inc. All rights reserved. * -- VMware Confidential * - * This code was generated by the script "build/dev/codeGen/genCppDoc". Please - * speak to Brian W. before modifying it by hand. * */ @@ -16,11 +14,10 @@ namespace Caf { /// A simple container for objects of type Operation -class COperationDoc { +class CAFCORETYPESDOC_LINKAGE COperationDoc { public: - COperationDoc() : - _isInitialized(false) {} - virtual ~COperationDoc() {} + COperationDoc(); + virtual ~COperationDoc(); public: /// Initializes the object with everything required by this @@ -28,25 +25,14 @@ public: /// be changed (i.e. it is immutable). void initialize( const std::string name, - const SmartPtrCParameterCollectionDoc parameterCollection = SmartPtrCParameterCollectionDoc()) { - if (! _isInitialized) { - _name = name; - _parameterCollection = parameterCollection; - - _isInitialized = true; - } - } + const SmartPtrCParameterCollectionDoc parameterCollection = SmartPtrCParameterCollectionDoc()); public: /// Accessor for the Name - std::string getName() const { - return _name; - } + std::string getName() const; /// Accessor for the ParameterCollection - SmartPtrCParameterCollectionDoc getParameterCollection() const { - return _parameterCollection; - } + SmartPtrCParameterCollectionDoc getParameterCollection() const; private: bool _isInitialized; diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/CafCoreTypesDoc/CParameterCollectionDoc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/CafCoreTypesDoc/CParameterCollectionDoc.h index e1c0ac533..dfc6b49f0 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/CafCoreTypesDoc/CParameterCollectionDoc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/CafCoreTypesDoc/CParameterCollectionDoc.h @@ -5,8 +5,6 @@ * Copyright (c) 2012 Vmware, Inc. All rights reserved. * -- VMware Confidential * - * This code was generated by the script "build/dev/codeGen/genCppDoc". Please - * speak to Brian W. before modifying it by hand. * */ @@ -16,11 +14,10 @@ namespace Caf { /// A simple container for objects of type ParameterCollection -class CParameterCollectionDoc { +class CAFCORETYPESDOC_LINKAGE CParameterCollectionDoc { public: - CParameterCollectionDoc() : - _isInitialized(false) {} - virtual ~CParameterCollectionDoc() {} + CParameterCollectionDoc(); + virtual ~CParameterCollectionDoc(); public: /// Initializes the object with everything required by this @@ -28,25 +25,14 @@ public: /// be changed (i.e. it is immutable). void initialize( const std::deque parameter = std::deque(), - const std::deque instanceParameter = std::deque()) { - if (! _isInitialized) { - _parameter = parameter; - _instanceParameter = instanceParameter; - - _isInitialized = true; - } - } + const std::deque instanceParameter = std::deque()); public: /// Accessor for the Parameter - std::deque getParameter() const { - return _parameter; - } + std::deque getParameter() const; /// Accessor for the InstanceParameter - std::deque getInstanceParameter() const { - return _instanceParameter; - } + std::deque getInstanceParameter() const; private: bool _isInitialized; diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/CafCoreTypesDoc/CPropertyCollectionDoc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/CafCoreTypesDoc/CPropertyCollectionDoc.h index 70b1785bb..2c1da8297 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/CafCoreTypesDoc/CPropertyCollectionDoc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/CafCoreTypesDoc/CPropertyCollectionDoc.h @@ -5,8 +5,6 @@ * Copyright (c) 2012 Vmware, Inc. All rights reserved. * -- VMware Confidential * - * This code was generated by the script "build/dev/codeGen/genCppDoc". Please - * speak to Brian W. before modifying it by hand. * */ @@ -16,30 +14,21 @@ namespace Caf { /// A simple container for objects of type PropertyCollection -class CPropertyCollectionDoc { +class CAFCORETYPESDOC_LINKAGE CPropertyCollectionDoc { public: - CPropertyCollectionDoc() : - _isInitialized(false) {} - virtual ~CPropertyCollectionDoc() {} + CPropertyCollectionDoc(); + virtual ~CPropertyCollectionDoc(); public: /// Initializes the object with everything required by this /// container. Once initialized, this object cannot /// be changed (i.e. it is immutable). void initialize( - const std::deque property = std::deque()) { - if (! _isInitialized) { - _property = property; - - _isInitialized = true; - } - } + const std::deque property = std::deque()); public: /// Accessor for the Property - std::deque getProperty() const { - return _property; - } + std::deque getProperty() const; private: bool _isInitialized; diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/CafCoreTypesDoc/CPropertyDoc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/CafCoreTypesDoc/CPropertyDoc.h index 3da307ebb..934915b7c 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/CafCoreTypesDoc/CPropertyDoc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/CafCoreTypesDoc/CPropertyDoc.h @@ -5,8 +5,6 @@ * Copyright (c) 2012 Vmware, Inc. All rights reserved. * -- VMware Confidential * - * This code was generated by the script "build/dev/codeGen/genCppDoc". Please - * speak to Brian W. before modifying it by hand. * */ @@ -16,12 +14,10 @@ namespace Caf { /// A simple container for objects of type Property -class CPropertyDoc { +class CAFCORETYPESDOC_LINKAGE CPropertyDoc { public: - CPropertyDoc() : - _type(PROPERTY_NONE), - _isInitialized(false) {} - virtual ~CPropertyDoc() {} + CPropertyDoc(); + virtual ~CPropertyDoc(); public: /// Initializes the object with everything required by this @@ -30,31 +26,17 @@ public: void initialize( const std::string name, const PROPERTY_TYPE type, - const std::deque value = std::deque()) { - if (! _isInitialized) { - _name = name; - _type = type; - _value = value; - - _isInitialized = true; - } - } + const std::deque value = std::deque()); public: /// Accessor for the Name - std::string getName() const { - return _name; - } + std::string getName() const; /// Accessor for the Type - PROPERTY_TYPE getType() const { - return _type; - } + PROPERTY_TYPE getType() const; /// Accessor for the Value - std::deque getValue() const { - return _value; - } + std::deque getValue() const; private: PROPERTY_TYPE _type; diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/CafCoreTypesDoc/CProtocolCollectionDoc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/CafCoreTypesDoc/CProtocolCollectionDoc.h index 25a7ab7fe..50a925ae1 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/CafCoreTypesDoc/CProtocolCollectionDoc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/CafCoreTypesDoc/CProtocolCollectionDoc.h @@ -5,8 +5,6 @@ * Copyright (c) 2012 Vmware, Inc. All rights reserved. * -- VMware Confidential * - * This code was generated by the script "build/dev/codeGen/genCppDoc". Please - * speak to Brian W. before modifying it by hand. * */ @@ -16,30 +14,21 @@ namespace Caf { /// Set of protocol -class CProtocolCollectionDoc { +class CAFCORETYPESDOC_LINKAGE CProtocolCollectionDoc { public: - CProtocolCollectionDoc() : - _isInitialized(false) {} - virtual ~CProtocolCollectionDoc() {} + CProtocolCollectionDoc(); + virtual ~CProtocolCollectionDoc(); public: /// Initializes the object with everything required by this /// container. Once initialized, this object cannot /// be changed (i.e. it is immutable). void initialize( - const std::deque protocol = std::deque()) { - if (! _isInitialized) { - _protocol = protocol; - - _isInitialized = true; - } - } + const std::deque protocol = std::deque()); public: /// Used to change the logging level for a specific component - std::deque getProtocol() const { - return _protocol; - } + std::deque getProtocol() const; private: bool _isInitialized; diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/CafCoreTypesDoc/CProtocolDoc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/CafCoreTypesDoc/CProtocolDoc.h index 8a7f1f1b1..65cd365d3 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/CafCoreTypesDoc/CProtocolDoc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/CafCoreTypesDoc/CProtocolDoc.h @@ -5,8 +5,6 @@ * Copyright (c) 2012 Vmware, Inc. All rights reserved. * -- VMware Confidential * - * This code was generated by the script "build/dev/codeGen/genCppDoc". Please - * speak to Brian W. before modifying it by hand. * */ @@ -16,12 +14,10 @@ namespace Caf { /// A simple container for objects of Protocol -class CProtocolDoc { +class CAFCORETYPESDOC_LINKAGE CProtocolDoc { public: - CProtocolDoc() : - _sequenceNumber(0), - _isInitialized(false) {} - virtual ~CProtocolDoc() {} + CProtocolDoc(); + virtual ~CProtocolDoc(); public: /// Initializes the object with everything required by this @@ -30,31 +26,17 @@ public: void initialize( const std::string uri, const std::string name = std::string(), - const int32 sequenceNumber = 0) { - if (! _isInitialized) { - _name = name; - _uri = uri; - _sequenceNumber = sequenceNumber; - - _isInitialized = true; - } - } + const int32 sequenceNumber = 0); public: /// Accessor for the Uri - std::string getUri() const { - return _uri; - } + std::string getUri() const; /// Accessor for the Name - std::string getName() const { - return _name; - } + std::string getName() const; /// Accessor for the Value - int32 getSequenceNumber() const { - return _sequenceNumber; - } + int32 getSequenceNumber() const; private: int32 _sequenceNumber; diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/CafCoreTypesDoc/CRequestConfigDoc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/CafCoreTypesDoc/CRequestConfigDoc.h index b766dc5a6..0bf1b0665 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/CafCoreTypesDoc/CRequestConfigDoc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/CafCoreTypesDoc/CRequestConfigDoc.h @@ -5,8 +5,6 @@ * Copyright (c) 2012 Vmware, Inc. All rights reserved. * -- VMware Confidential * - * This code was generated by the script "build/dev/codeGen/genCppDoc". Please - * speak to Brian W. before modifying it by hand. * */ @@ -16,11 +14,10 @@ namespace Caf { /// A simple container for objects of type RequestConfig -class CRequestConfigDoc { +class CAFCORETYPESDOC_LINKAGE CRequestConfigDoc { public: - CRequestConfigDoc() : - _isInitialized(false) {} - virtual ~CRequestConfigDoc() {} + CRequestConfigDoc(); + virtual ~CRequestConfigDoc(); public: /// Initializes the object with everything required by this @@ -30,37 +27,20 @@ public: const std::string responseFormatType, const SmartPtrCAddInsDoc requestProcessorAddIns = SmartPtrCAddInsDoc(), const SmartPtrCAddInsDoc responseProcessorAddIns = SmartPtrCAddInsDoc(), - const SmartPtrCLoggingLevelCollectionDoc loggingLevelCollection = SmartPtrCLoggingLevelCollectionDoc()) { - if (! _isInitialized) { - _responseFormatType = responseFormatType; - _requestProcessorAddIns = requestProcessorAddIns; - _responseProcessorAddIns = responseProcessorAddIns; - _loggingLevelCollection = loggingLevelCollection; - - _isInitialized = true; - } - } + const SmartPtrCLoggingLevelCollectionDoc loggingLevelCollection = SmartPtrCLoggingLevelCollectionDoc()); public: /// Accessor for the ResponseFormatType - std::string getResponseFormatType() const { - return _responseFormatType; - } + std::string getResponseFormatType() const; /// Accessor for the RequestProcessorAddIns - SmartPtrCAddInsDoc getRequestProcessorAddIns() const { - return _requestProcessorAddIns; - } + SmartPtrCAddInsDoc getRequestProcessorAddIns() const; /// Accessor for the ResponseProcessorAddIns - SmartPtrCAddInsDoc getResponseProcessorAddIns() const { - return _responseProcessorAddIns; - } + SmartPtrCAddInsDoc getResponseProcessorAddIns() const; /// Accessor for the LoggingLevelCollection - SmartPtrCLoggingLevelCollectionDoc getLoggingLevelCollection() const { - return _loggingLevelCollection; - } + SmartPtrCLoggingLevelCollectionDoc getLoggingLevelCollection() const; private: bool _isInitialized; diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/CafCoreTypesDoc/CRequestHeaderDoc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/CafCoreTypesDoc/CRequestHeaderDoc.h index 820509f78..491ba9774 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/CafCoreTypesDoc/CRequestHeaderDoc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/CafCoreTypesDoc/CRequestHeaderDoc.h @@ -5,8 +5,6 @@ * Copyright (c) 2012 Vmware, Inc. All rights reserved. * -- VMware Confidential * - * This code was generated by the script "build/dev/codeGen/genCppDoc". Please - * speak to Brian W. before modifying it by hand. * */ @@ -16,12 +14,10 @@ namespace Caf { /// A simple container for objects of type RequestHeader -class CRequestHeaderDoc { +class CAFCORETYPESDOC_LINKAGE CRequestHeaderDoc { public: - CRequestHeaderDoc() : - _isInitialized(false), - _sessionId(CAFCOMMON_GUID_NULL) {} - virtual ~CRequestHeaderDoc() {} + CRequestHeaderDoc(); + virtual ~CRequestHeaderDoc(); public: /// Initializes the object with everything required by this @@ -34,55 +30,29 @@ public: const SmartPtrCPropertyCollectionDoc echoPropertyBag = SmartPtrCPropertyCollectionDoc(), const std::string version = "1.0", const std::string createdDateTime = CDateTimeUtils::getCurrentDateTime(), - const UUID sessionId = CAFCOMMON_GUID_NULL) { - if (! _isInitialized) { - _requestConfig = requestConfig; - _authnAuthzCollection = authnAuthzCollection; - _protocolCollection = protocolCollection; - _echoPropertyBag = echoPropertyBag; - _version = version; - _createdDateTime = createdDateTime; - _sessionId = sessionId; - - _isInitialized = true; - } - } + const UUID sessionId = CAFCOMMON_GUID_NULL); public: /// Accessor for the RequestConfig - SmartPtrCRequestConfigDoc getRequestConfig() const { - return _requestConfig; - } + SmartPtrCRequestConfigDoc getRequestConfig() const; /// Accessor for the Authentication / Authorization Collection - SmartPtrCAuthnAuthzCollectionDoc getAuthnAuthzCollection() const { - return _authnAuthzCollection; - } + SmartPtrCAuthnAuthzCollectionDoc getAuthnAuthzCollection() const; /// Accessor for the Protocol Collection - SmartPtrCProtocolCollectionDoc getProtocolCollection() const { - return _protocolCollection; - } + SmartPtrCProtocolCollectionDoc getProtocolCollection() const; /// Accessor for the EchoPropertyBag - SmartPtrCPropertyCollectionDoc getEchoPropertyBag() const { - return _echoPropertyBag; - } + SmartPtrCPropertyCollectionDoc getEchoPropertyBag() const; /// Accessor for the version - std::string getVersion() const { - return _version; - } + std::string getVersion() const; /// Accessor for the date/time when the request was created - std::string getCreatedDateTime() const { - return _createdDateTime; - } + std::string getCreatedDateTime() const; /// Accessor for the session ID - UUID getSessionId() const { - return _sessionId; - } + UUID getSessionId() const; private: bool _isInitialized; diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/CafCoreTypesDoc/CRequestInstanceParameterDoc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/CafCoreTypesDoc/CRequestInstanceParameterDoc.h index 7e555c29c..09e903416 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/CafCoreTypesDoc/CRequestInstanceParameterDoc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/CafCoreTypesDoc/CRequestInstanceParameterDoc.h @@ -5,8 +5,6 @@ * Copyright (c) 2012 Vmware, Inc. All rights reserved. * -- VMware Confidential * - * This code was generated by the script "build/dev/codeGen/genCppDoc". Please - * speak to Brian W. before modifying it by hand. * */ @@ -16,11 +14,10 @@ namespace Caf { /// A simple container for objects of type RequestInstanceParameter -class CRequestInstanceParameterDoc { +class CAFCORETYPESDOC_LINKAGE CRequestInstanceParameterDoc { public: - CRequestInstanceParameterDoc() : - _isInitialized(false) {} - virtual ~CRequestInstanceParameterDoc() {} + CRequestInstanceParameterDoc(); + virtual ~CRequestInstanceParameterDoc(); public: /// Initializes the object with everything required by this @@ -31,43 +28,23 @@ public: const std::string classNamespace, const std::string className, const std::string classVersion, - const std::deque value) { - if (! _isInitialized) { - _name = name; - _classNamespace = classNamespace; - _className = className; - _classVersion = classVersion; - _value = value; - - _isInitialized = true; - } - } + const std::deque value); public: /// Accessor for the Name - std::string getName() const { - return _name; - } + std::string getName() const; /// Accessor for the ClassNamespace - std::string getClassNamespace() const { - return _classNamespace; - } + std::string getClassNamespace() const; /// Accessor for the ClassName - std::string getClassName() const { - return _className; - } + std::string getClassName() const; /// Accessor for the ClassVersion - std::string getClassVersion() const { - return _classVersion; - } + std::string getClassVersion() const; /// Accessor for the Value - std::deque getValue() const { - return _value; - } + std::deque getValue() const; private: bool _isInitialized; diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/CafCoreTypesDoc/CRequestParameterDoc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/CafCoreTypesDoc/CRequestParameterDoc.h index 5513c170b..33e80310c 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/CafCoreTypesDoc/CRequestParameterDoc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/CafCoreTypesDoc/CRequestParameterDoc.h @@ -5,8 +5,6 @@ * Copyright (c) 2012 Vmware, Inc. All rights reserved. * -- VMware Confidential * - * This code was generated by the script "build/dev/codeGen/genCppDoc". Please - * speak to Brian W. before modifying it by hand. * */ @@ -16,12 +14,10 @@ namespace Caf { /// A simple container for objects of type RequestParameter -class CRequestParameterDoc { +class CAFCORETYPESDOC_LINKAGE CRequestParameterDoc { public: - CRequestParameterDoc() : - _type(PARAMETER_NONE), - _isInitialized(false) {} - virtual ~CRequestParameterDoc() {} + CRequestParameterDoc(); + virtual ~CRequestParameterDoc(); public: /// Initializes the object with everything required by this @@ -30,31 +26,17 @@ public: void initialize( const std::string name, const PARAMETER_TYPE type, - const std::deque value) { - if (! _isInitialized) { - _name = name; - _type = type; - _value = value; - - _isInitialized = true; - } - } + const std::deque value); public: /// Accessor for the Name - std::string getName() const { - return _name; - } + std::string getName() const; /// Accessor for the Type - PARAMETER_TYPE getType() const { - return _type; - } + PARAMETER_TYPE getType() const; /// Accessor for the Value - std::deque getValue() const { - return _value; - } + std::deque getValue() const; private: PARAMETER_TYPE _type; diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/CafCoreTypesDoc/CStatisticsDoc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/CafCoreTypesDoc/CStatisticsDoc.h index 3a3175c84..d2db0a440 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/CafCoreTypesDoc/CStatisticsDoc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/CafCoreTypesDoc/CStatisticsDoc.h @@ -5,8 +5,6 @@ * Copyright (c) 2012 Vmware, Inc. All rights reserved. * -- VMware Confidential * - * This code was generated by the script "build/dev/codeGen/genCppDoc". Please - * speak to Brian W. before modifying it by hand. * */ @@ -16,17 +14,10 @@ namespace Caf { /// A simple container for objects of type Statistics -class CStatisticsDoc { +class CAFCORETYPESDOC_LINKAGE CStatisticsDoc { public: - CStatisticsDoc() : - _providerJobNum(0), - _providerJobTotal(0), - _providerJobDurationSecs(0), - _pmeNum(0), - _pmeTotal(0), - _pmeDurationSecs(0), - _isInitialized(false) {} - virtual ~CStatisticsDoc() {} + CStatisticsDoc(); + virtual ~CStatisticsDoc(); public: /// Initializes the object with everything required by this @@ -39,55 +30,29 @@ public: const int32 providerJobDurationSecs, const int32 pmeNum, const int32 pmeTotal, - const int32 pmeDurationSecs) { - if (! _isInitialized) { - _propertyCollection = propertyCollection; - _providerJobNum = providerJobNum; - _providerJobTotal = providerJobTotal; - _providerJobDurationSecs = providerJobDurationSecs; - _pmeNum = pmeNum; - _pmeTotal = pmeTotal; - _pmeDurationSecs = pmeDurationSecs; - - _isInitialized = true; - } - } + const int32 pmeDurationSecs); public: /// Accessor for the PropertyCollection - SmartPtrCPropertyCollectionDoc getPropertyCollection() const { - return _propertyCollection; - } + SmartPtrCPropertyCollectionDoc getPropertyCollection() const; /// Accessor for the ProviderJobNum - int32 getProviderJobNum() const { - return _providerJobNum; - } + int32 getProviderJobNum() const; /// Accessor for the ProviderJobTotal - int32 getProviderJobTotal() const { - return _providerJobTotal; - } + int32 getProviderJobTotal() const; /// Accessor for the ProviderJobDurationSecs - int32 getProviderJobDurationSecs() const { - return _providerJobDurationSecs; - } + int32 getProviderJobDurationSecs() const; /// Accessor for the PmeNum - int32 getPmeNum() const { - return _pmeNum; - } + int32 getPmeNum() const; /// Accessor for the PmeTotal - int32 getPmeTotal() const { - return _pmeTotal; - } + int32 getPmeTotal() const; /// Accessor for the PmeDurationSecs - int32 getPmeDurationSecs() const { - return _pmeDurationSecs; - } + int32 getPmeDurationSecs() const; private: SmartPtrCPropertyCollectionDoc _propertyCollection; diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/CafCoreTypesDoc/CafCoreTypesDocLink.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/CafCoreTypesDoc/CafCoreTypesDocLink.h new file mode 100644 index 000000000..182f3b47d --- /dev/null +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/CafCoreTypesDoc/CafCoreTypesDocLink.h @@ -0,0 +1,27 @@ +/* + * Author: bwilliams + * Created: February 25, 2016 + * + * Copyright (c) 2016 Vmware, Inc. All rights reserved. + * -- VMware Confidential + * + */ + +#ifndef CafCoreTypesDoc_Link_h_ +#define CafCoreTypesDoc_Link_h_ + +#ifndef CAFCORETYPESDOC_LINKAGE + #ifdef WIN32 + #ifdef FRAMEWORK_BUILD + #define CAFCORETYPESDOC_LINKAGE __declspec(dllexport) + #else + #define CAFCORETYPESDOC_LINKAGE __declspec(dllimport) + #endif + #else + #define CAFCORETYPESDOC_LINKAGE + #endif +#endif + +#include "Doc/CafCoreTypesDoc/CafCoreTypesDocInc.h" + +#endif /* CafCoreTypesDoc_Link_h_ */ diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/CafInstallRequestDoc/CFullPackageElemDoc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/CafInstallRequestDoc/CFullPackageElemDoc.h index 5b00823d1..fb63918d5 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/CafInstallRequestDoc/CFullPackageElemDoc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/CafInstallRequestDoc/CFullPackageElemDoc.h @@ -5,8 +5,6 @@ * Copyright (c) 2012 Vmware, Inc. All rights reserved. * -- VMware Confidential * - * This code was generated by the script "build/dev/codeGen/genCppDoc". Please - * speak to Brian W. before modifying it by hand. * */ @@ -16,12 +14,10 @@ namespace Caf { /// A simple container for objects of type FullPackageElem -class CFullPackageElemDoc { +class CAFINSTALLREQUESTDOC_LINKAGE CFullPackageElemDoc { public: - CFullPackageElemDoc() : - _index(0), - _isInitialized(false) {} - virtual ~CFullPackageElemDoc() {} + CFullPackageElemDoc(); + virtual ~CFullPackageElemDoc(); public: /// Initializes the object with everything required by this @@ -33,49 +29,26 @@ public: const std::string packageName, const std::string packageVersion, const SmartPtrCPackageDefnDoc installPackage, - const SmartPtrCPackageDefnDoc uninstallPackage) { - if (! _isInitialized) { - _index = index; - _packageNamespace = packageNamespace; - _packageName = packageName; - _packageVersion = packageVersion; - _installPackage = installPackage; - _uninstallPackage = uninstallPackage; - - _isInitialized = true; - } - } + const SmartPtrCPackageDefnDoc uninstallPackage); public: /// Accessor for the Index - int32 getIndex() const { - return _index; - } + int32 getIndex() const; /// Accessor for the PackageNamespace - std::string getPackageNamespace() const { - return _packageNamespace; - } + std::string getPackageNamespace() const; /// Accessor for the PackageName - std::string getPackageName() const { - return _packageName; - } + std::string getPackageName() const; /// Accessor for the PackageVersion - std::string getPackageVersion() const { - return _packageVersion; - } + std::string getPackageVersion() const; /// Accessor for the InstallPackage - SmartPtrCPackageDefnDoc getInstallPackage() const { - return _installPackage; - } + SmartPtrCPackageDefnDoc getInstallPackage() const; /// Accessor for the UninstallPackage - SmartPtrCPackageDefnDoc getUninstallPackage() const { - return _uninstallPackage; - } + SmartPtrCPackageDefnDoc getUninstallPackage() const; private: int32 _index; diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/CafInstallRequestDoc/CGetInventoryJobDoc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/CafInstallRequestDoc/CGetInventoryJobDoc.h index a6df7a782..9c0ec117b 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/CafInstallRequestDoc/CGetInventoryJobDoc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/CafInstallRequestDoc/CGetInventoryJobDoc.h @@ -5,8 +5,6 @@ * Copyright (c) 2012 Vmware, Inc. All rights reserved. * -- VMware Confidential * - * This code was generated by the script "build/dev/codeGen/genCppDoc". Please - * speak to Brian W. before modifying it by hand. * */ @@ -16,31 +14,21 @@ namespace Caf { /// A simple container for objects of type GetInventoryJob -class CGetInventoryJobDoc { +class CAFINSTALLREQUESTDOC_LINKAGE CGetInventoryJobDoc { public: - CGetInventoryJobDoc() : - _jobId(CAFCOMMON_GUID_NULL), - _isInitialized(false) {} - virtual ~CGetInventoryJobDoc() {} + CGetInventoryJobDoc(); + virtual ~CGetInventoryJobDoc(); public: /// Initializes the object with everything required by this /// container. Once initialized, this object cannot /// be changed (i.e. it is immutable). void initialize( - const UUID jobId) { - if (! _isInitialized) { - _jobId = jobId; - - _isInitialized = true; - } - } + const UUID jobId); public: /// Accessor for the JobId - UUID getJobId() const { - return _jobId; - } + UUID getJobId() const; private: UUID _jobId; diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/CafInstallRequestDoc/CInstallBatchDoc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/CafInstallRequestDoc/CInstallBatchDoc.h index 4abfae57e..e11113af5 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/CafInstallRequestDoc/CInstallBatchDoc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/CafInstallRequestDoc/CInstallBatchDoc.h @@ -5,8 +5,6 @@ * Copyright (c) 2012 Vmware, Inc. All rights reserved. * -- VMware Confidential * - * This code was generated by the script "build/dev/codeGen/genCppDoc". Please - * speak to Brian W. before modifying it by hand. * */ @@ -16,11 +14,10 @@ namespace Caf { /// A simple container for objects of type InstallBatch -class CInstallBatchDoc { +class CAFINSTALLREQUESTDOC_LINKAGE CInstallBatchDoc { public: - CInstallBatchDoc() : - _isInitialized(false) {} - virtual ~CInstallBatchDoc() {} + CInstallBatchDoc(); + virtual ~CInstallBatchDoc(); public: /// Initializes the object with everything required by this @@ -29,31 +26,17 @@ public: void initialize( const SmartPtrCGetInventoryJobDoc getInventory, const SmartPtrCInstallProviderJobDoc installProvider, - const SmartPtrCUninstallProviderJobDoc uninstallProvider) { - if (! _isInitialized) { - _getInventory = getInventory; - _installProvider = installProvider; - _uninstallProvider = uninstallProvider; - - _isInitialized = true; - } - } + const SmartPtrCUninstallProviderJobDoc uninstallProvider); public: /// Accessor for the GetInventory - SmartPtrCGetInventoryJobDoc getGetInventory() const { - return _getInventory; - } + SmartPtrCGetInventoryJobDoc getGetInventory() const; /// Accessor for the InstallProvider - SmartPtrCInstallProviderJobDoc getInstallProvider() const { - return _installProvider; - } + SmartPtrCInstallProviderJobDoc getInstallProvider() const; /// Accessor for the UninstallProvider - SmartPtrCUninstallProviderJobDoc getUninstallProvider() const { - return _uninstallProvider; - } + SmartPtrCUninstallProviderJobDoc getUninstallProvider() const; private: bool _isInitialized; diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/CafInstallRequestDoc/CInstallPackageSpecDoc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/CafInstallRequestDoc/CInstallPackageSpecDoc.h index 005b03b2f..da39352da 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/CafInstallRequestDoc/CInstallPackageSpecDoc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/CafInstallRequestDoc/CInstallPackageSpecDoc.h @@ -5,8 +5,6 @@ * Copyright (c) 2012 Vmware, Inc. All rights reserved. * -- VMware Confidential * - * This code was generated by the script "build/dev/codeGen/genCppDoc". Please - * speak to Brian W. before modifying it by hand. * */ @@ -16,11 +14,10 @@ namespace Caf { /// A simple container for objects of type InstallPackageSpec -class CInstallPackageSpecDoc { +class CAFINSTALLREQUESTDOC_LINKAGE CInstallPackageSpecDoc { public: - CInstallPackageSpecDoc() : - _isInitialized(false) {} - virtual ~CInstallPackageSpecDoc() {} + CInstallPackageSpecDoc(); + virtual ~CInstallPackageSpecDoc(); public: /// Initializes the object with everything required by this @@ -34,61 +31,32 @@ public: const std::string packageAttachmentName, const SmartPtrCAttachmentNameCollectionDoc attachmentNameCollection, const SmartPtrCAttachmentCollectionDoc attachmentCollection, - const std::string arguments) { - if (! _isInitialized) { - _packageNamespace = packageNamespace; - _packageName = packageName; - _packageVersion = packageVersion; - _startupAttachmentName = startupAttachmentName; - _packageAttachmentName = packageAttachmentName; - _attachmentNameCollection = attachmentNameCollection; - _attachmentCollection = attachmentCollection; - _arguments = arguments; - - _isInitialized = true; - } - } + const std::string arguments); public: /// Accessor for the PackageNamespace - std::string getPackageNamespace() const { - return _packageNamespace; - } + std::string getPackageNamespace() const; /// Accessor for the PackageName - std::string getPackageName() const { - return _packageName; - } + std::string getPackageName() const; /// Accessor for the PackageVersion - std::string getPackageVersion() const { - return _packageVersion; - } + std::string getPackageVersion() const; /// Accessor for the StartupAttachmentName - std::string getStartupAttachmentName() const { - return _startupAttachmentName; - } + std::string getStartupAttachmentName() const; /// Accessor for the PackageAttachmentName - std::string getPackageAttachmentName() const { - return _packageAttachmentName; - } + std::string getPackageAttachmentName() const; /// Accessor for the AttachmentNameCollection - SmartPtrCAttachmentNameCollectionDoc getSupportingAttachmentNameCollection() const { - return _attachmentNameCollection; - } + SmartPtrCAttachmentNameCollectionDoc getSupportingAttachmentNameCollection() const; /// Accessor for the AttachmentCollection - SmartPtrCAttachmentCollectionDoc getAttachmentCollection() const { - return _attachmentCollection; - } + SmartPtrCAttachmentCollectionDoc getAttachmentCollection() const; /// Accessor for the Arguments - std::string getArguments() const { - return _arguments; - } + std::string getArguments() const; private: bool _isInitialized; diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/CafInstallRequestDoc/CInstallProviderJobDoc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/CafInstallRequestDoc/CInstallProviderJobDoc.h index 93e988e12..896f2eede 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/CafInstallRequestDoc/CInstallProviderJobDoc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/CafInstallRequestDoc/CInstallProviderJobDoc.h @@ -5,8 +5,6 @@ * Copyright (c) 2012 Vmware, Inc. All rights reserved. * -- VMware Confidential * - * This code was generated by the script "build/dev/codeGen/genCppDoc". Please - * speak to Brian W. before modifying it by hand. * */ @@ -16,14 +14,10 @@ namespace Caf { /// A simple container for objects of type InstallProviderJob -class CInstallProviderJobDoc { +class CAFINSTALLREQUESTDOC_LINKAGE CInstallProviderJobDoc { public: - CInstallProviderJobDoc() : - _clientId(CAFCOMMON_GUID_NULL), - _jobId(CAFCOMMON_GUID_NULL), - _packageOSType(PACKAGE_OS_NONE), - _isInitialized(false) {} - virtual ~CInstallProviderJobDoc() {} + CInstallProviderJobDoc(); + virtual ~CInstallProviderJobDoc(); public: /// Initializes the object with everything required by this @@ -36,55 +30,29 @@ public: const std::string providerName, const std::string providerVersion, const PACKAGE_OS_TYPE packageOSType, - const std::deque packageCollection) { - if (! _isInitialized) { - _clientId = clientId; - _jobId = jobId; - _providerNamespace = providerNamespace; - _providerName = providerName; - _providerVersion = providerVersion; - _packageOSType = packageOSType; - _packageCollection = packageCollection; - - _isInitialized = true; - } - } + const std::deque packageCollection); public: /// Accessor for the ClientId - UUID getClientId() const { - return _clientId; - } + UUID getClientId() const; /// Accessor for the JobId - UUID getJobId() const { - return _jobId; - } + UUID getJobId() const; /// Accessor for the ProviderNamespace - std::string getProviderNamespace() const { - return _providerNamespace; - } + std::string getProviderNamespace() const; /// Accessor for the ProviderName - std::string getProviderName() const { - return _providerName; - } + std::string getProviderName() const; /// Accessor for the ProviderVersion - std::string getProviderVersion() const { - return _providerVersion; - } + std::string getProviderVersion() const; /// Accessor for the PackageOSType - PACKAGE_OS_TYPE getPackageOSType() const { - return _packageOSType; - } + PACKAGE_OS_TYPE getPackageOSType() const; /// Accessor for the PackageVal - std::deque getPackageCollection() const { - return _packageCollection; - } + std::deque getPackageCollection() const; private: UUID _clientId; diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/CafInstallRequestDoc/CInstallProviderSpecDoc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/CafInstallRequestDoc/CInstallProviderSpecDoc.h index ee8846bbe..c755c29ad 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/CafInstallRequestDoc/CInstallProviderSpecDoc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/CafInstallRequestDoc/CInstallProviderSpecDoc.h @@ -5,8 +5,6 @@ * Copyright (c) 2012 Vmware, Inc. All rights reserved. * -- VMware Confidential * - * This code was generated by the script "build/dev/codeGen/genCppDoc". Please - * speak to Brian W. before modifying it by hand. * */ @@ -16,12 +14,10 @@ namespace Caf { /// A simple container for objects of type InstallProviderSpec -class CInstallProviderSpecDoc { +class CAFINSTALLREQUESTDOC_LINKAGE CInstallProviderSpecDoc { public: - CInstallProviderSpecDoc() : - _clientId(CAFCOMMON_GUID_NULL), - _isInitialized(false) {} - virtual ~CInstallProviderSpecDoc() {} + CInstallProviderSpecDoc(); + virtual ~CInstallProviderSpecDoc(); public: /// Initializes the object with everything required by this @@ -32,43 +28,23 @@ public: const std::string providerNamespace, const std::string providerName, const std::string providerVersion, - const std::deque packageCollection) { - if (! _isInitialized) { - _clientId = clientId; - _providerNamespace = providerNamespace; - _providerName = providerName; - _providerVersion = providerVersion; - _packageCollection = packageCollection; - - _isInitialized = true; - } - } + const std::deque packageCollection); public: /// Accessor for the ClientId - UUID getClientId() const { - return _clientId; - } + UUID getClientId() const; /// Accessor for the ProviderNamespace - std::string getProviderNamespace() const { - return _providerNamespace; - } + std::string getProviderNamespace() const; /// Accessor for the ProviderName - std::string getProviderName() const { - return _providerName; - } + std::string getProviderName() const; /// Accessor for the ProviderVersion - std::string getProviderVersion() const { - return _providerVersion; - } + std::string getProviderVersion() const; /// Accessor for the PackageVal - std::deque getPackageCollection() const { - return _packageCollection; - } + std::deque getPackageCollection() const; private: UUID _clientId; diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/CafInstallRequestDoc/CInstallRequestDoc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/CafInstallRequestDoc/CInstallRequestDoc.h index 44d9f7470..08f6b8fb4 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/CafInstallRequestDoc/CInstallRequestDoc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/CafInstallRequestDoc/CInstallRequestDoc.h @@ -5,8 +5,6 @@ * Copyright (c) 2012 Vmware, Inc. All rights reserved. * -- VMware Confidential * - * This code was generated by the script "build/dev/codeGen/genCppDoc". Please - * speak to Brian W. before modifying it by hand. * */ @@ -16,13 +14,10 @@ namespace Caf { /// A simple container for objects of type InstallRequest -class CInstallRequestDoc { +class CAFINSTALLREQUESTDOC_LINKAGE CInstallRequestDoc { public: - CInstallRequestDoc() : - _clientId(CAFCOMMON_GUID_NULL), - _requestId(CAFCOMMON_GUID_NULL), - _isInitialized(false) {} - virtual ~CInstallRequestDoc() {} + CInstallRequestDoc(); + virtual ~CInstallRequestDoc(); public: /// Initializes the object with everything required by this @@ -34,49 +29,26 @@ public: const std::string pmeId, const SmartPtrCRequestHeaderDoc requestHeader, const SmartPtrCInstallBatchDoc batch, - const SmartPtrCAttachmentCollectionDoc attachmentCollection) { - if (! _isInitialized) { - _clientId = clientId; - _requestId = requestId; - _pmeId = pmeId; - _requestHeader = requestHeader; - _batch = batch; - _attachmentCollection = attachmentCollection; - - _isInitialized = true; - } - } + const SmartPtrCAttachmentCollectionDoc attachmentCollection); public: /// Accessor for the ClientId - UUID getClientId() const { - return _clientId; - } + UUID getClientId() const; /// Accessor for the RequestId - UUID getRequestId() const { - return _requestId; - } + UUID getRequestId() const; /// Accessor for the PmeId - std::string getPmeId() const { - return _pmeId; - } + std::string getPmeId() const; /// Accessor for the RequestHeader - SmartPtrCRequestHeaderDoc getRequestHeader() const { - return _requestHeader; - } + SmartPtrCRequestHeaderDoc getRequestHeader() const; /// Accessor for the Batch - SmartPtrCInstallBatchDoc getBatch() const { - return _batch; - } + SmartPtrCInstallBatchDoc getBatch() const; /// Accessor for the AttachmentCollection - SmartPtrCAttachmentCollectionDoc getAttachmentCollection() const { - return _attachmentCollection; - } + SmartPtrCAttachmentCollectionDoc getAttachmentCollection() const; private: UUID _clientId; diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/CafInstallRequestDoc/CMinPackageElemDoc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/CafInstallRequestDoc/CMinPackageElemDoc.h index d9505ca79..75baedf9c 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/CafInstallRequestDoc/CMinPackageElemDoc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/CafInstallRequestDoc/CMinPackageElemDoc.h @@ -5,8 +5,6 @@ * Copyright (c) 2012 Vmware, Inc. All rights reserved. * -- VMware Confidential * - * This code was generated by the script "build/dev/codeGen/genCppDoc". Please - * speak to Brian W. before modifying it by hand. * */ @@ -16,12 +14,10 @@ namespace Caf { /// A simple container for objects of type MinPackageElem -class CMinPackageElemDoc { +class CAFINSTALLREQUESTDOC_LINKAGE CMinPackageElemDoc { public: - CMinPackageElemDoc() : - _index(0), - _isInitialized(false) {} - virtual ~CMinPackageElemDoc() {} + CMinPackageElemDoc(); + virtual ~CMinPackageElemDoc(); public: /// Initializes the object with everything required by this @@ -31,37 +27,20 @@ public: const int32 index, const std::string packageNamespace, const std::string packageName, - const std::string packageVersion) { - if (! _isInitialized) { - _index = index; - _packageNamespace = packageNamespace; - _packageName = packageName; - _packageVersion = packageVersion; - - _isInitialized = true; - } - } + const std::string packageVersion); public: /// Accessor for the Index - int32 getIndex() const { - return _index; - } + int32 getIndex() const; /// Accessor for the PackageNamespace - std::string getPackageNamespace() const { - return _packageNamespace; - } + std::string getPackageNamespace() const; /// Accessor for the PackageName - std::string getPackageName() const { - return _packageName; - } + std::string getPackageName() const; /// Accessor for the PackageVersion - std::string getPackageVersion() const { - return _packageVersion; - } + std::string getPackageVersion() const; private: int32 _index; diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/CafInstallRequestDoc/CPackageDefnDoc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/CafInstallRequestDoc/CPackageDefnDoc.h index 60bdd2b19..5fc266f41 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/CafInstallRequestDoc/CPackageDefnDoc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/CafInstallRequestDoc/CPackageDefnDoc.h @@ -5,8 +5,6 @@ * Copyright (c) 2012 Vmware, Inc. All rights reserved. * -- VMware Confidential * - * This code was generated by the script "build/dev/codeGen/genCppDoc". Please - * speak to Brian W. before modifying it by hand. * */ @@ -16,11 +14,10 @@ namespace Caf { /// A simple container for objects of type PackageDefn -class CPackageDefnDoc { +class CAFINSTALLREQUESTDOC_LINKAGE CPackageDefnDoc { public: - CPackageDefnDoc() : - _isInitialized(false) {} - virtual ~CPackageDefnDoc() {} + CPackageDefnDoc(); + virtual ~CPackageDefnDoc(); public: /// Initializes the object with everything required by this @@ -30,37 +27,20 @@ public: const std::string startupAttachmentName, const std::string packageAttachmentName, const SmartPtrCAttachmentNameCollectionDoc attachmentNameCollection, - const std::string arguments) { - if (! _isInitialized) { - _startupAttachmentName = startupAttachmentName; - _packageAttachmentName = packageAttachmentName; - _attachmentNameCollection = attachmentNameCollection; - _arguments = arguments; - - _isInitialized = true; - } - } + const std::string arguments); public: /// Accessor for the StartupAttachmentName - std::string getStartupAttachmentName() const { - return _startupAttachmentName; - } + std::string getStartupAttachmentName() const; /// Accessor for the PackageAttachmentName - std::string getPackageAttachmentName() const { - return _packageAttachmentName; - } + std::string getPackageAttachmentName() const; /// Accessor for the AttachmentNameCollection - SmartPtrCAttachmentNameCollectionDoc getSupportingAttachmentNameCollection() const { - return _attachmentNameCollection; - } + SmartPtrCAttachmentNameCollectionDoc getSupportingAttachmentNameCollection() const; /// Accessor for the Arguments - std::string getArguments() const { - return _arguments; - } + std::string getArguments() const; private: bool _isInitialized; diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/CafInstallRequestDoc/CUninstallProviderJobDoc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/CafInstallRequestDoc/CUninstallProviderJobDoc.h index 5a60daee4..2ff65ce00 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/CafInstallRequestDoc/CUninstallProviderJobDoc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/CafInstallRequestDoc/CUninstallProviderJobDoc.h @@ -5,8 +5,6 @@ * Copyright (c) 2012 Vmware, Inc. All rights reserved. * -- VMware Confidential * - * This code was generated by the script "build/dev/codeGen/genCppDoc". Please - * speak to Brian W. before modifying it by hand. * */ @@ -16,14 +14,10 @@ namespace Caf { /// A simple container for objects of type UninstallProviderJob -class CUninstallProviderJobDoc { +class CAFINSTALLREQUESTDOC_LINKAGE CUninstallProviderJobDoc { public: - CUninstallProviderJobDoc() : - _clientId(CAFCOMMON_GUID_NULL), - _jobId(CAFCOMMON_GUID_NULL), - _packageOSType(PACKAGE_OS_NONE), - _isInitialized(false) {} - virtual ~CUninstallProviderJobDoc() {} + CUninstallProviderJobDoc(); + virtual ~CUninstallProviderJobDoc(); public: /// Initializes the object with everything required by this @@ -35,49 +29,26 @@ public: const std::string providerNamespace, const std::string providerName, const std::string providerVersion, - const PACKAGE_OS_TYPE packageOSType) { - if (! _isInitialized) { - _clientId = clientId; - _jobId = jobId; - _providerNamespace = providerNamespace; - _providerName = providerName; - _providerVersion = providerVersion; - _packageOSType = packageOSType; - - _isInitialized = true; - } - } + const PACKAGE_OS_TYPE packageOSType); public: /// Accessor for the ClientId - UUID getClientId() const { - return _clientId; - } + UUID getClientId() const; /// Accessor for the JobId - UUID getJobId() const { - return _jobId; - } + UUID getJobId() const; /// Accessor for the ProviderNamespace - std::string getProviderNamespace() const { - return _providerNamespace; - } + std::string getProviderNamespace() const; /// Accessor for the ProviderName - std::string getProviderName() const { - return _providerName; - } + std::string getProviderName() const; /// Accessor for the ProviderVersion - std::string getProviderVersion() const { - return _providerVersion; - } + std::string getProviderVersion() const; /// Accessor for the PackageOSType - PACKAGE_OS_TYPE getPackageOSType() const { - return _packageOSType; - } + PACKAGE_OS_TYPE getPackageOSType() const; private: UUID _clientId; diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/CafInstallRequestDoc/CafInstallRequestDocLink.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/CafInstallRequestDoc/CafInstallRequestDocLink.h new file mode 100644 index 000000000..52ba57d9c --- /dev/null +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/CafInstallRequestDoc/CafInstallRequestDocLink.h @@ -0,0 +1,27 @@ +/* + * Author: bwilliams + * Created: February 25, 2016 + * + * Copyright (c) 2016 Vmware, Inc. All rights reserved. + * -- VMware Confidential + * + */ + +#ifndef CafInstallRequestDoc_Link_h_ +#define CafInstallRequestDoc_Link_h_ + +#ifndef CAFINSTALLREQUESTDOC_LINKAGE + #ifdef WIN32 + #ifdef FRAMEWORK_BUILD + #define CAFINSTALLREQUESTDOC_LINKAGE __declspec(dllexport) + #else + #define CAFINSTALLREQUESTDOC_LINKAGE __declspec(dllimport) + #endif + #else + #define CAFINSTALLREQUESTDOC_LINKAGE + #endif +#endif + +#include "Doc/CafInstallRequestDoc/CafInstallRequestDocInc.h" + +#endif /* CafInstallRequestDoc_Link_h_ */ diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/DiagRequestDoc/CDiagRequestDoc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/DiagRequestDoc/CDiagRequestDoc.h index 5ba7a422d..6af9af0cf 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/DiagRequestDoc/CDiagRequestDoc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/DiagRequestDoc/CDiagRequestDoc.h @@ -5,8 +5,6 @@ * Copyright (c) 2012 Vmware, Inc. All rights reserved. * -- VMware Confidential * - * This code was generated by the script "build/dev/codeGen/genCppDoc". Please - * speak to Brian W. before modifying it by hand. * */ @@ -16,13 +14,10 @@ namespace Caf { /// A simple container for objects of type DiagRequest -class CDiagRequestDoc { +class DIAGREQUESTDOC_LINKAGE CDiagRequestDoc { public: - CDiagRequestDoc() : - _clientId(CAFCOMMON_GUID_NULL), - _requestId(CAFCOMMON_GUID_NULL), - _isInitialized(false) {} - virtual ~CDiagRequestDoc() {} + CDiagRequestDoc(); + virtual ~CDiagRequestDoc(); public: /// Initializes the object with everything required by this @@ -33,43 +28,23 @@ public: const UUID requestId, const std::string pmeId, const SmartPtrCRequestHeaderDoc requestHeader, - const SmartPtrCDiagBatchDoc batch) { - if (! _isInitialized) { - _clientId = clientId; - _requestId = requestId; - _pmeId = pmeId; - _requestHeader = requestHeader; - _batch = batch; - - _isInitialized = true; - } - } + const SmartPtrCDiagBatchDoc batch); public: /// Accessor for the ClientId - UUID getClientId() const { - return _clientId; - } + UUID getClientId() const; /// Accessor for the RequestId - UUID getRequestId() const { - return _requestId; - } + UUID getRequestId() const; /// Accessor for the PmeId - std::string getPmeId() const { - return _pmeId; - } + std::string getPmeId() const; /// Accessor for the RequestHeader - SmartPtrCRequestHeaderDoc getRequestHeader() const { - return _requestHeader; - } + SmartPtrCRequestHeaderDoc getRequestHeader() const; /// Accessor for the Batch - SmartPtrCDiagBatchDoc getBatch() const { - return _batch; - } + SmartPtrCDiagBatchDoc getBatch() const; private: UUID _clientId; diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/DiagRequestDoc/DiagRequestDocLink.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/DiagRequestDoc/DiagRequestDocLink.h new file mode 100644 index 000000000..a3384d651 --- /dev/null +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/DiagRequestDoc/DiagRequestDocLink.h @@ -0,0 +1,27 @@ +/* + * Author: bwilliams + * Created: February 25, 2016 + * + * Copyright (c) 2016 Vmware, Inc. All rights reserved. + * -- VMware Confidential + * + */ + +#ifndef DiagRequestDoc_Link_h_ +#define DiagRequestDoc_Link_h_ + +#ifndef DIAGREQUESTDOC_LINKAGE + #ifdef WIN32 + #ifdef FRAMEWORK_BUILD + #define DIAGREQUESTDOC_LINKAGE __declspec(dllexport) + #else + #define DIAGREQUESTDOC_LINKAGE __declspec(dllimport) + #endif + #else + #define DIAGREQUESTDOC_LINKAGE + #endif +#endif + +#include "Doc/DiagRequestDoc/DiagRequestDocInc.h" + +#endif /* DiagRequestDoc_Link_h_ */ diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/DiagTypesDoc/CDiagBatchDoc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/DiagTypesDoc/CDiagBatchDoc.h index af42ced5f..73378d151 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/DiagTypesDoc/CDiagBatchDoc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/DiagTypesDoc/CDiagBatchDoc.h @@ -5,8 +5,6 @@ * Copyright (c) 2012 Vmware, Inc. All rights reserved. * -- VMware Confidential * - * This code was generated by the script "build/dev/codeGen/genCppDoc". Please - * speak to Brian W. before modifying it by hand. * */ @@ -16,11 +14,10 @@ namespace Caf { /// A simple container for objects of type DiagBatch -class CDiagBatchDoc { +class DIAGTYPESDOC_LINKAGE CDiagBatchDoc { public: - CDiagBatchDoc() : - _isInitialized(false) {} - virtual ~CDiagBatchDoc() {} + CDiagBatchDoc(); + virtual ~CDiagBatchDoc(); public: /// Initializes the object with everything required by this @@ -29,31 +26,17 @@ public: void initialize( const SmartPtrCDiagCollectInstancesDoc collectInstances, const SmartPtrCDiagSetValueCollectionDoc setValueCollection, - const SmartPtrCDiagDeleteValueCollectionDoc deleteValueCollection) { - if (! _isInitialized) { - _collectInstances = collectInstances; - _setValueCollection = setValueCollection; - _deleteValueCollection = deleteValueCollection; - - _isInitialized = true; - } - } + const SmartPtrCDiagDeleteValueCollectionDoc deleteValueCollection); public: /// Accessor for the CollectInstances - SmartPtrCDiagCollectInstancesDoc getCollectInstances() const { - return _collectInstances; - } + SmartPtrCDiagCollectInstancesDoc getCollectInstances() const; /// Accessor for the SetValueCollection - SmartPtrCDiagSetValueCollectionDoc getSetValueCollection() const { - return _setValueCollection; - } + SmartPtrCDiagSetValueCollectionDoc getSetValueCollection() const; /// Accessor for the DeleteValueCollection - SmartPtrCDiagDeleteValueCollectionDoc getDeleteValueCollection() const { - return _deleteValueCollection; - } + SmartPtrCDiagDeleteValueCollectionDoc getDeleteValueCollection() const; private: bool _isInitialized; diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/DiagTypesDoc/CDiagCollectInstancesDoc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/DiagTypesDoc/CDiagCollectInstancesDoc.h index f41e858c3..f018f9af0 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/DiagTypesDoc/CDiagCollectInstancesDoc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/DiagTypesDoc/CDiagCollectInstancesDoc.h @@ -5,8 +5,6 @@ * Copyright (c) 2012 Vmware, Inc. All rights reserved. * -- VMware Confidential * - * This code was generated by the script "build/dev/codeGen/genCppDoc". Please - * speak to Brian W. before modifying it by hand. * */ @@ -16,31 +14,21 @@ namespace Caf { /// A simple container for objects of type DiagCollectInstances -class CDiagCollectInstancesDoc { +class DIAGTYPESDOC_LINKAGE CDiagCollectInstancesDoc { public: - CDiagCollectInstancesDoc() : - _jobId(CAFCOMMON_GUID_NULL), - _isInitialized(false) {} - virtual ~CDiagCollectInstancesDoc() {} + CDiagCollectInstancesDoc(); + virtual ~CDiagCollectInstancesDoc(); public: /// Initializes the object with everything required by this /// container. Once initialized, this object cannot /// be changed (i.e. it is immutable). void initialize( - const UUID jobId) { - if (! _isInitialized) { - _jobId = jobId; - - _isInitialized = true; - } - } + const UUID jobId); public: /// Accessor for the JobId - UUID getJobId() const { - return _jobId; - } + UUID getJobId() const; private: UUID _jobId; diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/DiagTypesDoc/CDiagDeleteValueCollectionDoc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/DiagTypesDoc/CDiagDeleteValueCollectionDoc.h index c634e5760..bfd70aa89 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/DiagTypesDoc/CDiagDeleteValueCollectionDoc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/DiagTypesDoc/CDiagDeleteValueCollectionDoc.h @@ -5,8 +5,6 @@ * Copyright (c) 2012 Vmware, Inc. All rights reserved. * -- VMware Confidential * - * This code was generated by the script "build/dev/codeGen/genCppDoc". Please - * speak to Brian W. before modifying it by hand. * */ @@ -16,30 +14,21 @@ namespace Caf { /// A simple container for objects of type DiagDeleteValueCollection -class CDiagDeleteValueCollectionDoc { +class DIAGTYPESDOC_LINKAGE CDiagDeleteValueCollectionDoc { public: - CDiagDeleteValueCollectionDoc() : - _isInitialized(false) {} - virtual ~CDiagDeleteValueCollectionDoc() {} + CDiagDeleteValueCollectionDoc(); + virtual ~CDiagDeleteValueCollectionDoc(); public: /// Initializes the object with everything required by this /// container. Once initialized, this object cannot /// be changed (i.e. it is immutable). void initialize( - const std::deque deleteValueCollection) { - if (! _isInitialized) { - _deleteValueCollection = deleteValueCollection; - - _isInitialized = true; - } - } + const std::deque deleteValueCollection); public: /// Accessor for the DeleteValue - std::deque getDeleteValueCollection() const { - return _deleteValueCollection; - } + std::deque getDeleteValueCollection() const; private: bool _isInitialized; diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/DiagTypesDoc/CDiagDeleteValueDoc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/DiagTypesDoc/CDiagDeleteValueDoc.h index b4808f7e5..7fcc8f889 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/DiagTypesDoc/CDiagDeleteValueDoc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/DiagTypesDoc/CDiagDeleteValueDoc.h @@ -5,8 +5,6 @@ * Copyright (c) 2012 Vmware, Inc. All rights reserved. * -- VMware Confidential * - * This code was generated by the script "build/dev/codeGen/genCppDoc". Please - * speak to Brian W. before modifying it by hand. * */ @@ -16,12 +14,10 @@ namespace Caf { /// A simple container for objects of type DiagDeleteValue -class CDiagDeleteValueDoc { +class DIAGTYPESDOC_LINKAGE CDiagDeleteValueDoc { public: - CDiagDeleteValueDoc() : - _jobId(CAFCOMMON_GUID_NULL), - _isInitialized(false) {} - virtual ~CDiagDeleteValueDoc() {} + CDiagDeleteValueDoc(); + virtual ~CDiagDeleteValueDoc(); public: /// Initializes the object with everything required by this @@ -30,31 +26,17 @@ public: void initialize( const UUID jobId, const std::string fileAlias, - const std::string valueName) { - if (! _isInitialized) { - _jobId = jobId; - _fileAlias = fileAlias; - _valueName = valueName; - - _isInitialized = true; - } - } + const std::string valueName); public: /// Accessor for the JobId - UUID getJobId() const { - return _jobId; - } + UUID getJobId() const; /// Accessor for the FileAlias - std::string getFileAlias() const { - return _fileAlias; - } + std::string getFileAlias() const; /// Accessor for the ValueName - std::string getValueName() const { - return _valueName; - } + std::string getValueName() const; private: UUID _jobId; diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/DiagTypesDoc/CDiagSetValueCollectionDoc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/DiagTypesDoc/CDiagSetValueCollectionDoc.h index 5b75cf5e8..c6096df2b 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/DiagTypesDoc/CDiagSetValueCollectionDoc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/DiagTypesDoc/CDiagSetValueCollectionDoc.h @@ -5,8 +5,6 @@ * Copyright (c) 2012 Vmware, Inc. All rights reserved. * -- VMware Confidential * - * This code was generated by the script "build/dev/codeGen/genCppDoc". Please - * speak to Brian W. before modifying it by hand. * */ @@ -16,30 +14,21 @@ namespace Caf { /// A simple container for objects of type DiagSetValueCollection -class CDiagSetValueCollectionDoc { +class DIAGTYPESDOC_LINKAGE CDiagSetValueCollectionDoc { public: - CDiagSetValueCollectionDoc() : - _isInitialized(false) {} - virtual ~CDiagSetValueCollectionDoc() {} + CDiagSetValueCollectionDoc(); + virtual ~CDiagSetValueCollectionDoc(); public: /// Initializes the object with everything required by this /// container. Once initialized, this object cannot /// be changed (i.e. it is immutable). void initialize( - const std::deque setValueCollection) { - if (! _isInitialized) { - _setValueCollection = setValueCollection; - - _isInitialized = true; - } - } + const std::deque setValueCollection); public: /// Accessor for the SetValue - std::deque getSetValueCollection() const { - return _setValueCollection; - } + std::deque getSetValueCollection() const; private: bool _isInitialized; diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/DiagTypesDoc/CDiagSetValueDoc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/DiagTypesDoc/CDiagSetValueDoc.h index 9f641f389..d640c3d38 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/DiagTypesDoc/CDiagSetValueDoc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/DiagTypesDoc/CDiagSetValueDoc.h @@ -5,8 +5,6 @@ * Copyright (c) 2012 Vmware, Inc. All rights reserved. * -- VMware Confidential * - * This code was generated by the script "build/dev/codeGen/genCppDoc". Please - * speak to Brian W. before modifying it by hand. * */ @@ -16,12 +14,10 @@ namespace Caf { /// A simple container for objects of type DiagSetValue -class CDiagSetValueDoc { +class DIAGTYPESDOC_LINKAGE CDiagSetValueDoc { public: - CDiagSetValueDoc() : - _jobId(CAFCOMMON_GUID_NULL), - _isInitialized(false) {} - virtual ~CDiagSetValueDoc() {} + CDiagSetValueDoc(); + virtual ~CDiagSetValueDoc(); public: /// Initializes the object with everything required by this @@ -30,31 +26,17 @@ public: void initialize( const UUID jobId, const std::string fileAlias, - const SmartPtrCPropertyDoc value) { - if (! _isInitialized) { - _jobId = jobId; - _fileAlias = fileAlias; - _value = value; - - _isInitialized = true; - } - } + const SmartPtrCPropertyDoc value); public: /// Accessor for the JobId - UUID getJobId() const { - return _jobId; - } + UUID getJobId() const; /// Accessor for the FileAlias - std::string getFileAlias() const { - return _fileAlias; - } + std::string getFileAlias() const; /// Accessor for the Value - SmartPtrCPropertyDoc getValue() const { - return _value; - } + SmartPtrCPropertyDoc getValue() const; private: UUID _jobId; diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/DiagTypesDoc/DiagTypesDocLink.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/DiagTypesDoc/DiagTypesDocLink.h new file mode 100644 index 000000000..2e45d5d6c --- /dev/null +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/DiagTypesDoc/DiagTypesDocLink.h @@ -0,0 +1,27 @@ +/* + * Author: bwilliams + * Created: February 25, 2016 + * + * Copyright (c) 2016 Vmware, Inc. All rights reserved. + * -- VMware Confidential + * + */ + +#ifndef DiagTypesDoc_Link_h_ +#define DiagTypesDoc_Link_h_ + +#ifndef DIAGTYPESDOC_LINKAGE + #ifdef WIN32 + #ifdef FRAMEWORK_BUILD + #define DIAGTYPESDOC_LINKAGE __declspec(dllexport) + #else + #define DIAGTYPESDOC_LINKAGE __declspec(dllimport) + #endif + #else + #define DIAGTYPESDOC_LINKAGE + #endif +#endif + +#include "Doc/DiagTypesDoc/DiagTypesDocInc.h" + +#endif /* DiagTypesDoc_Link_h_ */ diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/MgmtRequestDoc/CMgmtRequestDoc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/MgmtRequestDoc/CMgmtRequestDoc.h index 9f146d0aa..5453ca0c4 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/MgmtRequestDoc/CMgmtRequestDoc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/MgmtRequestDoc/CMgmtRequestDoc.h @@ -5,8 +5,6 @@ * Copyright (c) 2012 Vmware, Inc. All rights reserved. * -- VMware Confidential * - * This code was generated by the script "build/dev/codeGen/genCppDoc". Please - * speak to Brian W. before modifying it by hand. * */ @@ -16,13 +14,10 @@ namespace Caf { /// A simple container for objects of type MgmtRequest -class CMgmtRequestDoc { +class MGMTREQUESTDOC_LINKAGE CMgmtRequestDoc { public: - CMgmtRequestDoc() : - _clientId(CAFCOMMON_GUID_NULL), - _requestId(CAFCOMMON_GUID_NULL), - _isInitialized(false) {} - virtual ~CMgmtRequestDoc() {} + CMgmtRequestDoc(); + virtual ~CMgmtRequestDoc(); public: /// Initializes the object with everything required by this @@ -34,49 +29,26 @@ public: const std::string pmeId, const SmartPtrCRequestHeaderDoc requestHeader, const SmartPtrCMgmtBatchDoc batch, - const SmartPtrCAttachmentCollectionDoc attachmentCollection) { - if (! _isInitialized) { - _clientId = clientId; - _requestId = requestId; - _pmeId = pmeId; - _requestHeader = requestHeader; - _batch = batch; - _attachmentCollection = attachmentCollection; - - _isInitialized = true; - } - } + const SmartPtrCAttachmentCollectionDoc attachmentCollection); public: /// Accessor for the ClientId - UUID getClientId() const { - return _clientId; - } + UUID getClientId() const; /// Accessor for the RequestId - UUID getRequestId() const { - return _requestId; - } + UUID getRequestId() const; /// Accessor for the PmeId - std::string getPmeId() const { - return _pmeId; - } + std::string getPmeId() const; /// Accessor for the RequestHeader - SmartPtrCRequestHeaderDoc getRequestHeader() const { - return _requestHeader; - } + SmartPtrCRequestHeaderDoc getRequestHeader() const; /// Accessor for the Batch - SmartPtrCMgmtBatchDoc getBatch() const { - return _batch; - } + SmartPtrCMgmtBatchDoc getBatch() const; /// Accessor for the AttachmentCollection - SmartPtrCAttachmentCollectionDoc getAttachmentCollection() const { - return _attachmentCollection; - } + SmartPtrCAttachmentCollectionDoc getAttachmentCollection() const; private: UUID _clientId; diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/MgmtRequestDoc/MgmtRequestDocLink.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/MgmtRequestDoc/MgmtRequestDocLink.h new file mode 100644 index 000000000..171ba36e4 --- /dev/null +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/MgmtRequestDoc/MgmtRequestDocLink.h @@ -0,0 +1,27 @@ +/* + * Author: bwilliams + * Created: February 25, 2016 + * + * Copyright (c) 2016 Vmware, Inc. All rights reserved. + * -- VMware Confidential + * + */ + +#ifndef MgmtRequestDoc_Link_h_ +#define MgmtRequestDoc_Link_h_ + +#ifndef MGMTREQUESTDOC_LINKAGE + #ifdef WIN32 + #ifdef FRAMEWORK_BUILD + #define MGMTREQUESTDOC_LINKAGE __declspec(dllexport) + #else + #define MGMTREQUESTDOC_LINKAGE __declspec(dllimport) + #endif + #else + #define MGMTREQUESTDOC_LINKAGE + #endif +#endif + +#include "Doc/MgmtRequestDoc/MgmtRequestDocInc.h" + +#endif /* MgmtRequestDoc_Link_h_ */ diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/MgmtTypesDoc/CMgmtBatchDoc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/MgmtTypesDoc/CMgmtBatchDoc.h index d5c47d347..d2532a645 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/MgmtTypesDoc/CMgmtBatchDoc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/MgmtTypesDoc/CMgmtBatchDoc.h @@ -5,8 +5,6 @@ * Copyright (c) 2012 Vmware, Inc. All rights reserved. * -- VMware Confidential * - * This code was generated by the script "build/dev/codeGen/genCppDoc". Please - * speak to Brian W. before modifying it by hand. * */ @@ -16,11 +14,10 @@ namespace Caf { /// A simple container for objects of type MgmtBatch -class CMgmtBatchDoc { +class MGMTTYPESDOC_LINKAGE CMgmtBatchDoc { public: - CMgmtBatchDoc() : - _isInitialized(false) {} - virtual ~CMgmtBatchDoc() {} + CMgmtBatchDoc(); + virtual ~CMgmtBatchDoc(); public: /// Initializes the object with everything required by this @@ -29,31 +26,17 @@ public: void initialize( const SmartPtrCMgmtCollectSchemaDoc collectSchema, const SmartPtrCMgmtCollectInstancesCollectionDoc collectInstancesCollection, - const SmartPtrCMgmtInvokeOperationCollectionDoc invokeOperationCollection) { - if (! _isInitialized) { - _collectSchema = collectSchema; - _collectInstancesCollection = collectInstancesCollection; - _invokeOperationCollection = invokeOperationCollection; - - _isInitialized = true; - } - } + const SmartPtrCMgmtInvokeOperationCollectionDoc invokeOperationCollection); public: /// Accessor for the CollectSchema - SmartPtrCMgmtCollectSchemaDoc getCollectSchema() const { - return _collectSchema; - } + SmartPtrCMgmtCollectSchemaDoc getCollectSchema() const; /// Accessor for the CollectInstancesCollection - SmartPtrCMgmtCollectInstancesCollectionDoc getCollectInstancesCollection() const { - return _collectInstancesCollection; - } + SmartPtrCMgmtCollectInstancesCollectionDoc getCollectInstancesCollection() const; /// Accessor for the InvokeOperationCollection - SmartPtrCMgmtInvokeOperationCollectionDoc getInvokeOperationCollection() const { - return _invokeOperationCollection; - } + SmartPtrCMgmtInvokeOperationCollectionDoc getInvokeOperationCollection() const; private: bool _isInitialized; diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/MgmtTypesDoc/CMgmtCollectInstancesCollectionDoc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/MgmtTypesDoc/CMgmtCollectInstancesCollectionDoc.h index 397cc1de3..5d3968d9e 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/MgmtTypesDoc/CMgmtCollectInstancesCollectionDoc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/MgmtTypesDoc/CMgmtCollectInstancesCollectionDoc.h @@ -5,8 +5,6 @@ * Copyright (c) 2012 Vmware, Inc. All rights reserved. * -- VMware Confidential * - * This code was generated by the script "build/dev/codeGen/genCppDoc". Please - * speak to Brian W. before modifying it by hand. * */ @@ -16,30 +14,21 @@ namespace Caf { /// A simple container for objects of type MgmtCollectInstancesCollection -class CMgmtCollectInstancesCollectionDoc { +class MGMTTYPESDOC_LINKAGE CMgmtCollectInstancesCollectionDoc { public: - CMgmtCollectInstancesCollectionDoc() : - _isInitialized(false) {} - virtual ~CMgmtCollectInstancesCollectionDoc() {} + CMgmtCollectInstancesCollectionDoc(); + virtual ~CMgmtCollectInstancesCollectionDoc(); public: /// Initializes the object with everything required by this /// container. Once initialized, this object cannot /// be changed (i.e. it is immutable). void initialize( - const std::deque collectInstancesCollection) { - if (! _isInitialized) { - _collectInstancesCollection = collectInstancesCollection; - - _isInitialized = true; - } - } + const std::deque collectInstancesCollection); public: /// Accessor for the CollectInstances - std::deque getCollectInstancesCollection() const { - return _collectInstancesCollection; - } + std::deque getCollectInstancesCollection() const; private: bool _isInitialized; diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/MgmtTypesDoc/CMgmtCollectInstancesDoc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/MgmtTypesDoc/CMgmtCollectInstancesDoc.h index c15627e1e..2d83c397c 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/MgmtTypesDoc/CMgmtCollectInstancesDoc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/MgmtTypesDoc/CMgmtCollectInstancesDoc.h @@ -5,8 +5,6 @@ * Copyright (c) 2012 Vmware, Inc. All rights reserved. * -- VMware Confidential * - * This code was generated by the script "build/dev/codeGen/genCppDoc". Please - * speak to Brian W. before modifying it by hand. * */ @@ -16,12 +14,10 @@ namespace Caf { /// A simple container for objects of type MgmtCollectInstances -class CMgmtCollectInstancesDoc { +class MGMTTYPESDOC_LINKAGE CMgmtCollectInstancesDoc { public: - CMgmtCollectInstancesDoc() : - _jobId(CAFCOMMON_GUID_NULL), - _isInitialized(false) {} - virtual ~CMgmtCollectInstancesDoc() {} + CMgmtCollectInstancesDoc(); + virtual ~CMgmtCollectInstancesDoc(); public: /// Initializes the object with everything required by this @@ -30,31 +26,17 @@ public: void initialize( const UUID jobId, const SmartPtrCClassSpecifierDoc classSpecifier, - const SmartPtrCParameterCollectionDoc parameterCollection) { - if (! _isInitialized) { - _jobId = jobId; - _classSpecifier = classSpecifier; - _parameterCollection = parameterCollection; - - _isInitialized = true; - } - } + const SmartPtrCParameterCollectionDoc parameterCollection); public: /// Accessor for the JobId - UUID getJobId() const { - return _jobId; - } + UUID getJobId() const; /// Accessor for the ClassSpecifier - SmartPtrCClassSpecifierDoc getClassSpecifier() const { - return _classSpecifier; - } + SmartPtrCClassSpecifierDoc getClassSpecifier() const; /// Accessor for the ParameterCollection - SmartPtrCParameterCollectionDoc getParameterCollection() const { - return _parameterCollection; - } + SmartPtrCParameterCollectionDoc getParameterCollection() const; private: UUID _jobId; diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/MgmtTypesDoc/CMgmtCollectSchemaDoc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/MgmtTypesDoc/CMgmtCollectSchemaDoc.h index 4d6713f30..5fffb3b15 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/MgmtTypesDoc/CMgmtCollectSchemaDoc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/MgmtTypesDoc/CMgmtCollectSchemaDoc.h @@ -5,8 +5,6 @@ * Copyright (c) 2012 Vmware, Inc. All rights reserved. * -- VMware Confidential * - * This code was generated by the script "build/dev/codeGen/genCppDoc". Please - * speak to Brian W. before modifying it by hand. * */ @@ -16,31 +14,21 @@ namespace Caf { /// A simple container for objects of type MgmtCollectSchema -class CMgmtCollectSchemaDoc { +class MGMTTYPESDOC_LINKAGE CMgmtCollectSchemaDoc { public: - CMgmtCollectSchemaDoc() : - _jobId(CAFCOMMON_GUID_NULL), - _isInitialized(false) {} - virtual ~CMgmtCollectSchemaDoc() {} + CMgmtCollectSchemaDoc(); + virtual ~CMgmtCollectSchemaDoc(); public: /// Initializes the object with everything required by this /// container. Once initialized, this object cannot /// be changed (i.e. it is immutable). void initialize( - const UUID jobId) { - if (! _isInitialized) { - _jobId = jobId; - - _isInitialized = true; - } - } + const UUID jobId); public: /// Accessor for the JobId - UUID getJobId() const { - return _jobId; - } + UUID getJobId() const; private: UUID _jobId; diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/MgmtTypesDoc/CMgmtInvokeOperationCollectionDoc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/MgmtTypesDoc/CMgmtInvokeOperationCollectionDoc.h index aa4b83ea8..ddd316f53 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/MgmtTypesDoc/CMgmtInvokeOperationCollectionDoc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/MgmtTypesDoc/CMgmtInvokeOperationCollectionDoc.h @@ -5,8 +5,6 @@ * Copyright (c) 2012 Vmware, Inc. All rights reserved. * -- VMware Confidential * - * This code was generated by the script "build/dev/codeGen/genCppDoc". Please - * speak to Brian W. before modifying it by hand. * */ @@ -16,30 +14,21 @@ namespace Caf { /// A simple container for objects of type MgmtInvokeOperationCollection -class CMgmtInvokeOperationCollectionDoc { +class MGMTTYPESDOC_LINKAGE CMgmtInvokeOperationCollectionDoc { public: - CMgmtInvokeOperationCollectionDoc() : - _isInitialized(false) {} - virtual ~CMgmtInvokeOperationCollectionDoc() {} + CMgmtInvokeOperationCollectionDoc(); + virtual ~CMgmtInvokeOperationCollectionDoc(); public: /// Initializes the object with everything required by this /// container. Once initialized, this object cannot /// be changed (i.e. it is immutable). void initialize( - const std::deque invokeOperationCollection) { - if (! _isInitialized) { - _invokeOperationCollection = invokeOperationCollection; - - _isInitialized = true; - } - } + const std::deque invokeOperationCollection); public: /// Accessor for the InvokeOperation - std::deque getInvokeOperationCollection() const { - return _invokeOperationCollection; - } + std::deque getInvokeOperationCollection() const; private: bool _isInitialized; diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/MgmtTypesDoc/CMgmtInvokeOperationDoc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/MgmtTypesDoc/CMgmtInvokeOperationDoc.h index bc4748df6..6b6646c13 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/MgmtTypesDoc/CMgmtInvokeOperationDoc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/MgmtTypesDoc/CMgmtInvokeOperationDoc.h @@ -5,8 +5,6 @@ * Copyright (c) 2012 Vmware, Inc. All rights reserved. * -- VMware Confidential * - * This code was generated by the script "build/dev/codeGen/genCppDoc". Please - * speak to Brian W. before modifying it by hand. * */ @@ -16,12 +14,10 @@ namespace Caf { /// A simple container for objects of type MgmtInvokeOperation -class CMgmtInvokeOperationDoc { +class MGMTTYPESDOC_LINKAGE CMgmtInvokeOperationDoc { public: - CMgmtInvokeOperationDoc() : - _jobId(CAFCOMMON_GUID_NULL), - _isInitialized(false) {} - virtual ~CMgmtInvokeOperationDoc() {} + CMgmtInvokeOperationDoc(); + virtual ~CMgmtInvokeOperationDoc(); public: /// Initializes the object with everything required by this @@ -30,31 +26,17 @@ public: void initialize( const UUID jobId, const SmartPtrCClassSpecifierDoc classSpecifier, - const SmartPtrCOperationDoc operation) { - if (! _isInitialized) { - _jobId = jobId; - _classSpecifier = classSpecifier; - _operation = operation; - - _isInitialized = true; - } - } + const SmartPtrCOperationDoc operation); public: /// Accessor for the JobId - UUID getJobId() const { - return _jobId; - } + UUID getJobId() const; /// Accessor for the ClassSpecifier - SmartPtrCClassSpecifierDoc getClassSpecifier() const { - return _classSpecifier; - } + SmartPtrCClassSpecifierDoc getClassSpecifier() const; /// Accessor for the Operation - SmartPtrCOperationDoc getOperation() const { - return _operation; - } + SmartPtrCOperationDoc getOperation() const; private: UUID _jobId; diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/MgmtTypesDoc/MgmtTypesDocLink.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/MgmtTypesDoc/MgmtTypesDocLink.h new file mode 100644 index 000000000..43d26e894 --- /dev/null +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/MgmtTypesDoc/MgmtTypesDocLink.h @@ -0,0 +1,27 @@ +/* + * Author: bwilliams + * Created: February 25, 2016 + * + * Copyright (c) 2016 Vmware, Inc. All rights reserved. + * -- VMware Confidential + * + */ + +#ifndef MgmtTypesDoc_Link_h_ +#define MgmtTypesDoc_Link_h_ + +#ifndef MGMTTYPESDOC_LINKAGE + #ifdef WIN32 + #ifdef FRAMEWORK_BUILD + #define MGMTTYPESDOC_LINKAGE __declspec(dllexport) + #else + #define MGMTTYPESDOC_LINKAGE __declspec(dllimport) + #endif + #else + #define MGMTTYPESDOC_LINKAGE + #endif +#endif + +#include "Doc/MgmtTypesDoc/MgmtTypesDocInc.h" + +#endif /* MgmtTypesDoc_Link_h_ */ diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/MultiPmeMgmtRequestDoc/CMultiPmeMgmtBatchCollectionDoc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/MultiPmeMgmtRequestDoc/CMultiPmeMgmtBatchCollectionDoc.h index 9d57e6ecd..e80880c4c 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/MultiPmeMgmtRequestDoc/CMultiPmeMgmtBatchCollectionDoc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/MultiPmeMgmtRequestDoc/CMultiPmeMgmtBatchCollectionDoc.h @@ -5,8 +5,6 @@ * Copyright (c) 2012 Vmware, Inc. All rights reserved. * -- VMware Confidential * - * This code was generated by the script "build/dev/codeGen/genCppDoc". Please - * speak to Brian W. before modifying it by hand. * */ @@ -16,30 +14,21 @@ namespace Caf { /// A simple container for objects of type MultiPmeMgmtBatchCollection -class CMultiPmeMgmtBatchCollectionDoc { +class MULTIPMEMGMTREQUESTDOC_LINKAGE CMultiPmeMgmtBatchCollectionDoc { public: - CMultiPmeMgmtBatchCollectionDoc() : - _isInitialized(false) {} - virtual ~CMultiPmeMgmtBatchCollectionDoc() {} + CMultiPmeMgmtBatchCollectionDoc(); + virtual ~CMultiPmeMgmtBatchCollectionDoc(); public: /// Initializes the object with everything required by this /// container. Once initialized, this object cannot /// be changed (i.e. it is immutable). void initialize( - const std::deque multiPmeBatch) { - if (! _isInitialized) { - _multiPmeBatch = multiPmeBatch; - - _isInitialized = true; - } - } + const std::deque multiPmeBatch); public: /// Accessor for the MultiPmeBatch - std::deque getMultiPmeBatch() const { - return _multiPmeBatch; - } + std::deque getMultiPmeBatch() const; private: bool _isInitialized; diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/MultiPmeMgmtRequestDoc/CMultiPmeMgmtBatchDoc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/MultiPmeMgmtRequestDoc/CMultiPmeMgmtBatchDoc.h index 0af331d90..f820f3b6c 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/MultiPmeMgmtRequestDoc/CMultiPmeMgmtBatchDoc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/MultiPmeMgmtRequestDoc/CMultiPmeMgmtBatchDoc.h @@ -5,8 +5,6 @@ * Copyright (c) 2012 Vmware, Inc. All rights reserved. * -- VMware Confidential * - * This code was generated by the script "build/dev/codeGen/genCppDoc". Please - * speak to Brian W. before modifying it by hand. * */ @@ -16,11 +14,10 @@ namespace Caf { /// A simple container for objects of type MultiPmeMgmtBatch -class CMultiPmeMgmtBatchDoc { +class MULTIPMEMGMTREQUESTDOC_LINKAGE CMultiPmeMgmtBatchDoc { public: - CMultiPmeMgmtBatchDoc() : - _isInitialized(false) {} - virtual ~CMultiPmeMgmtBatchDoc() {} + CMultiPmeMgmtBatchDoc(); + virtual ~CMultiPmeMgmtBatchDoc(); public: /// Initializes the object with everything required by this @@ -28,25 +25,14 @@ public: /// be changed (i.e. it is immutable). void initialize( const SmartPtrCPmeIdCollectionDoc pmeIdCollection, - const SmartPtrCMgmtBatchDoc batch) { - if (! _isInitialized) { - _pmeIdCollection = pmeIdCollection; - _batch = batch; - - _isInitialized = true; - } - } + const SmartPtrCMgmtBatchDoc batch); public: /// Accessor for the PmeIdCollection - SmartPtrCPmeIdCollectionDoc getPmeIdCollection() const { - return _pmeIdCollection; - } + SmartPtrCPmeIdCollectionDoc getPmeIdCollection() const; /// Accessor for the Batch - SmartPtrCMgmtBatchDoc getBatch() const { - return _batch; - } + SmartPtrCMgmtBatchDoc getBatch() const; private: bool _isInitialized; diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/MultiPmeMgmtRequestDoc/CMultiPmeMgmtRequestDoc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/MultiPmeMgmtRequestDoc/CMultiPmeMgmtRequestDoc.h index 6c04429da..31d8900ee 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/MultiPmeMgmtRequestDoc/CMultiPmeMgmtRequestDoc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/MultiPmeMgmtRequestDoc/CMultiPmeMgmtRequestDoc.h @@ -5,8 +5,6 @@ * Copyright (c) 2012 Vmware, Inc. All rights reserved. * -- VMware Confidential * - * This code was generated by the script "build/dev/codeGen/genCppDoc". Please - * speak to Brian W. before modifying it by hand. * */ @@ -16,13 +14,10 @@ namespace Caf { /// A simple container for objects of type MultiPmeMgmtRequest -class CMultiPmeMgmtRequestDoc { +class MULTIPMEMGMTREQUESTDOC_LINKAGE CMultiPmeMgmtRequestDoc { public: - CMultiPmeMgmtRequestDoc() : - _clientId(CAFCOMMON_GUID_NULL), - _requestId(CAFCOMMON_GUID_NULL), - _isInitialized(false) {} - virtual ~CMultiPmeMgmtRequestDoc() {} + CMultiPmeMgmtRequestDoc(); + virtual ~CMultiPmeMgmtRequestDoc(); public: /// Initializes the object with everything required by this @@ -32,37 +27,20 @@ public: const UUID clientId, const UUID requestId, const SmartPtrCRequestHeaderDoc requestHeader, - const SmartPtrCMultiPmeMgmtBatchCollectionDoc multiPmeBatchCollection) { - if (! _isInitialized) { - _clientId = clientId; - _requestId = requestId; - _requestHeader = requestHeader; - _multiPmeBatchCollection = multiPmeBatchCollection; - - _isInitialized = true; - } - } + const SmartPtrCMultiPmeMgmtBatchCollectionDoc multiPmeBatchCollection); public: /// Accessor for the ClientId - UUID getClientId() const { - return _clientId; - } + UUID getClientId() const; /// Accessor for the RequestId - UUID getRequestId() const { - return _requestId; - } + UUID getRequestId() const; /// Accessor for the RequestHeader - SmartPtrCRequestHeaderDoc getRequestHeader() const { - return _requestHeader; - } + SmartPtrCRequestHeaderDoc getRequestHeader() const; /// Accessor for the MultiPmeBatchCollection - SmartPtrCMultiPmeMgmtBatchCollectionDoc getMultiPmeBatchCollection() const { - return _multiPmeBatchCollection; - } + SmartPtrCMultiPmeMgmtBatchCollectionDoc getMultiPmeBatchCollection() const; private: UUID _clientId; diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/MultiPmeMgmtRequestDoc/CPmeIdCollectionDoc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/MultiPmeMgmtRequestDoc/CPmeIdCollectionDoc.h index e560c463c..62cbc5296 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/MultiPmeMgmtRequestDoc/CPmeIdCollectionDoc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/MultiPmeMgmtRequestDoc/CPmeIdCollectionDoc.h @@ -5,8 +5,6 @@ * Copyright (c) 2012 Vmware, Inc. All rights reserved. * -- VMware Confidential * - * This code was generated by the script "build/dev/codeGen/genCppDoc". Please - * speak to Brian W. before modifying it by hand. * */ @@ -16,30 +14,21 @@ namespace Caf { /// A simple container for objects of type PmeIdCollection -class CPmeIdCollectionDoc { +class MULTIPMEMGMTREQUESTDOC_LINKAGE CPmeIdCollectionDoc { public: - CPmeIdCollectionDoc() : - _isInitialized(false) {} - virtual ~CPmeIdCollectionDoc() {} + CPmeIdCollectionDoc(); + virtual ~CPmeIdCollectionDoc(); public: /// Initializes the object with everything required by this /// container. Once initialized, this object cannot /// be changed (i.e. it is immutable). void initialize( - const std::deque pmeIdCollection) { - if (! _isInitialized) { - _pmeIdCollection = pmeIdCollection; - - _isInitialized = true; - } - } + const std::deque pmeIdCollection); public: /// Accessor for the PmeId - std::deque getPmeIdCollection() const { - return _pmeIdCollection; - } + std::deque getPmeIdCollection() const; private: bool _isInitialized; diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/MultiPmeMgmtRequestDoc/MultiPmeMgmtRequestDocLink.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/MultiPmeMgmtRequestDoc/MultiPmeMgmtRequestDocLink.h new file mode 100644 index 000000000..0b81dfe82 --- /dev/null +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/MultiPmeMgmtRequestDoc/MultiPmeMgmtRequestDocLink.h @@ -0,0 +1,27 @@ +/* + * Author: bwilliams + * Created: February 25, 2016 + * + * Copyright (c) 2016 Vmware, Inc. All rights reserved. + * -- VMware Confidential + * + */ + +#ifndef MultiPmeMgmtRequestDoc_Link_h_ +#define MultiPmeMgmtRequestDoc_Link_h_ + +#ifndef MULTIPMEMGMTREQUESTDOC_LINKAGE + #ifdef WIN32 + #ifdef FRAMEWORK_BUILD + #define MULTIPMEMGMTREQUESTDOC_LINKAGE __declspec(dllexport) + #else + #define MULTIPMEMGMTREQUESTDOC_LINKAGE __declspec(dllimport) + #endif + #else + #define MULTIPMEMGMTREQUESTDOC_LINKAGE + #endif +#endif + +#include "Doc/MultiPmeMgmtRequestDoc/MultiPmeMgmtRequestDocInc.h" + +#endif /* MultiPmeMgmtRequestDoc_Link_h_ */ diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/PayloadEnvelopeDoc/CPayloadEnvelopeDoc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/PayloadEnvelopeDoc/CPayloadEnvelopeDoc.h index b77dd62cd..a2175c401 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/PayloadEnvelopeDoc/CPayloadEnvelopeDoc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/PayloadEnvelopeDoc/CPayloadEnvelopeDoc.h @@ -13,13 +13,10 @@ namespace Caf { /// A simple container for objects of type PayloadEnvelope -class CPayloadEnvelopeDoc { +class PAYLOADENVELOPEDOC_LINKAGE CPayloadEnvelopeDoc { public: - CPayloadEnvelopeDoc() : - _clientId(CAFCOMMON_GUID_NULL), - _requestId(CAFCOMMON_GUID_NULL), - _isInitialized(false) {} - virtual ~CPayloadEnvelopeDoc() {} + CPayloadEnvelopeDoc(); + virtual ~CPayloadEnvelopeDoc(); public: /// Initializes the object with everything required by this @@ -34,67 +31,35 @@ public: const SmartPtrCAttachmentCollectionDoc& attachmentCollection, const SmartPtrCProtocolCollectionDoc& protocolCollection = SmartPtrCProtocolCollectionDoc(), const SmartPtrCPropertyCollectionDoc& headerCollection = SmartPtrCPropertyCollectionDoc(), - const std::string version = "1.0") { - if (! _isInitialized) { - _clientId = clientId; - _requestId = requestId; - _pmeId = pmeId; - _payloadType = payloadType; - _payloadVersion = payloadVersion; - _attachmentCollection = attachmentCollection; - _protocolCollection = protocolCollection; - _headerCollection = headerCollection; - _version = version; - - _isInitialized = true; - } - } + const std::string version = "1.0"); public: /// Accessor for the ClientId - UUID getClientId() const { - return _clientId; - } + UUID getClientId() const; /// Accessor for the RequestId - UUID getRequestId() const { - return _requestId; - } + UUID getRequestId() const; /// Accessor for the PmeId - std::string getPmeId() const { - return _pmeId; - } + std::string getPmeId() const; /// Accessor for the PayloadType - std::string getPayloadType() const { - return _payloadType; - } + std::string getPayloadType() const; /// Accessor for the PayloadVersion - std::string getPayloadVersion() const { - return _payloadVersion; - } + std::string getPayloadVersion() const; /// Accessor for the Protocol Collection - SmartPtrCProtocolCollectionDoc getProtocolCollection() const { - return _protocolCollection; - } + SmartPtrCProtocolCollectionDoc getProtocolCollection() const; /// Accessor for the AttachmentCollection - SmartPtrCAttachmentCollectionDoc getAttachmentCollection() const { - return _attachmentCollection; - } + SmartPtrCAttachmentCollectionDoc getAttachmentCollection() const; /// Accessor for the Headers - SmartPtrCPropertyCollectionDoc getHeaderCollection() const { - return _headerCollection; - } + SmartPtrCPropertyCollectionDoc getHeaderCollection() const; /// Accessor for the version - std::string getVersion() const { - return _version; - } + std::string getVersion() const; private: UUID _clientId; diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/PayloadEnvelopeDoc/PayloadEnvelopeDocLink.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/PayloadEnvelopeDoc/PayloadEnvelopeDocLink.h new file mode 100644 index 000000000..427c25353 --- /dev/null +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/PayloadEnvelopeDoc/PayloadEnvelopeDocLink.h @@ -0,0 +1,27 @@ +/* + * Author: bwilliams + * Created: February 25, 2016 + * + * Copyright (c) 2016 Vmware, Inc. All rights reserved. + * -- VMware Confidential + * + */ + +#ifndef PayloadEnvelopeDoc_Link_h_ +#define PayloadEnvelopeDoc_Link_h_ + +#ifndef PAYLOADENVELOPEDOC_LINKAGE + #ifdef WIN32 + #ifdef FRAMEWORK_BUILD + #define PAYLOADENVELOPEDOC_LINKAGE __declspec(dllexport) + #else + #define PAYLOADENVELOPEDOC_LINKAGE __declspec(dllimport) + #endif + #else + #define PAYLOADENVELOPEDOC_LINKAGE + #endif +#endif + +#include "Doc/PayloadEnvelopeDoc/PayloadEnvelopeDocInc.h" + +#endif /* PayloadEnvelopeDoc_Link_h_ */ diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/PersistenceDoc/CCertCollectionDoc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/PersistenceDoc/CCertCollectionDoc.h index 505967b0b..c6a7708dd 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/PersistenceDoc/CCertCollectionDoc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/PersistenceDoc/CCertCollectionDoc.h @@ -5,8 +5,6 @@ * Copyright (c) 2012 Vmware, Inc. All rights reserved. * -- VMware Confidential * - * This code was generated by the script "build/dev/codeGen/genCppDoc". Please - * speak to Brian W. before modifying it by hand. * */ @@ -16,30 +14,21 @@ namespace Caf { /// A simple container for objects of type CertCollection -class CCertCollectionDoc { +class PERSISTENCEDOC_LINKAGE CCertCollectionDoc { public: - CCertCollectionDoc() : - _isInitialized(false) {} - virtual ~CCertCollectionDoc() {} + CCertCollectionDoc(); + virtual ~CCertCollectionDoc(); public: /// Initializes the object with everything required by this /// container. Once initialized, this object cannot /// be changed (i.e. it is immutable). void initialize( - const std::deque certCollection = std::deque()) { - if (! _isInitialized) { - _certCollection = certCollection; - - _isInitialized = true; - } - } + const std::deque certCollection = std::deque()); public: /// Accessor for the Cert - std::deque getCert() const { - return _certCollection; - } + std::deque getCert() const; private: bool _isInitialized; diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/PersistenceDoc/CCertPathCollectionDoc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/PersistenceDoc/CCertPathCollectionDoc.h index 871c11677..fd7082f84 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/PersistenceDoc/CCertPathCollectionDoc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/PersistenceDoc/CCertPathCollectionDoc.h @@ -5,8 +5,6 @@ * Copyright (c) 2012 Vmware, Inc. All rights reserved. * -- VMware Confidential * - * This code was generated by the script "build/dev/codeGen/genCppDoc". Please - * speak to Brian W. before modifying it by hand. * */ @@ -16,30 +14,21 @@ namespace Caf { /// A simple container for objects of type CertPathCollection -class CCertPathCollectionDoc { +class PERSISTENCEDOC_LINKAGE CCertPathCollectionDoc { public: - CCertPathCollectionDoc() : - _isInitialized(false) {} - virtual ~CCertPathCollectionDoc() {} + CCertPathCollectionDoc(); + virtual ~CCertPathCollectionDoc(); public: /// Initializes the object with everything required by this /// container. Once initialized, this object cannot /// be changed (i.e. it is immutable). void initialize( - const std::deque certPathCollection = std::deque()) { - if (! _isInitialized) { - _certPathCollection = certPathCollection; - - _isInitialized = true; - } - } + const std::deque certPathCollection = std::deque()); public: /// Accessor for the Cert - std::deque getCertPath() const { - return _certPathCollection; - } + std::deque getCertPath() const; private: bool _isInitialized; diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/PersistenceDoc/CLocalSecurityDoc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/PersistenceDoc/CLocalSecurityDoc.h index fd99ab2d8..726c1047b 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/PersistenceDoc/CLocalSecurityDoc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/PersistenceDoc/CLocalSecurityDoc.h @@ -13,11 +13,10 @@ namespace Caf { /// A simple container for objects of type CLocalSecurityDoc -class CLocalSecurityDoc { +class PERSISTENCEDOC_LINKAGE CLocalSecurityDoc { public: - CLocalSecurityDoc() : - _isInitialized(false) {} - virtual ~CLocalSecurityDoc() {} + CLocalSecurityDoc(); + virtual ~CLocalSecurityDoc(); public: /// Initializes the object with everything required by this @@ -28,44 +27,23 @@ public: const std::string& privateKey = std::string(), const std::string& cert = std::string(), const std::string& privateKeyPath = std::string(), - const std::string& certPath = std::string()) { - if (! _isInitialized) { - _localId = localId; - _privateKey = privateKey; - _cert = cert; - - _privateKeyPath = privateKeyPath; - _certPath = certPath; - - _isInitialized = true; - } - } + const std::string& certPath = std::string()); public: /// Accessor for the LocalId - std::string getLocalId() const { - return _localId; - } + std::string getLocalId() const; /// Accessor for the PrivateKey - std::string getPrivateKey() const { - return _privateKey; - } + std::string getPrivateKey() const; /// Accessor for the Cert - std::string getCert() const { - return _cert; - } + std::string getCert() const; /// Accessor for the PrivateKeyPath - std::string getPrivateKeyPath() const { - return _privateKeyPath; - } + std::string getPrivateKeyPath() const; /// Accessor for the CertPath - std::string getCertPath() const { - return _certPath; - } + std::string getCertPath() const; private: std::string _localId; diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/PersistenceDoc/CPersistenceDoc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/PersistenceDoc/CPersistenceDoc.h index 50a5d9116..6f01b836d 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/PersistenceDoc/CPersistenceDoc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/PersistenceDoc/CPersistenceDoc.h @@ -13,11 +13,10 @@ namespace Caf { /// A simple container for objects of type PersistenceEnvelope -class CPersistenceDoc { +class PERSISTENCEDOC_LINKAGE CPersistenceDoc { public: - CPersistenceDoc() : - _isInitialized(false) {} - virtual ~CPersistenceDoc() {} + CPersistenceDoc(); + virtual ~CPersistenceDoc(); public: /// Initializes the object with everything required by this @@ -27,37 +26,20 @@ public: const SmartPtrCLocalSecurityDoc& localSecurity = SmartPtrCLocalSecurityDoc(), const SmartPtrCRemoteSecurityCollectionDoc& remoteSecurityCollection = SmartPtrCRemoteSecurityCollectionDoc(), const SmartPtrCPersistenceProtocolCollectionDoc& persistenceProtocolCollection = SmartPtrCPersistenceProtocolCollectionDoc(), - const std::string version = "1.0") { - if (! _isInitialized) { - _localSecurity = localSecurity; - _remoteSecurityCollection = remoteSecurityCollection; - _persistenceProtocolCollection = persistenceProtocolCollection; - _version = version; - - _isInitialized = true; - } - } + const std::string version = "1.0"); public: /// Accessor for the LocalSecurity - SmartPtrCLocalSecurityDoc getLocalSecurity() const { - return _localSecurity; - } + SmartPtrCLocalSecurityDoc getLocalSecurity() const; /// Accessor for the Protocol Collection - SmartPtrCRemoteSecurityCollectionDoc getRemoteSecurityCollection() const { - return _remoteSecurityCollection; - } + SmartPtrCRemoteSecurityCollectionDoc getRemoteSecurityCollection() const; /// Accessor for the PersistenceProtocol - SmartPtrCPersistenceProtocolCollectionDoc getPersistenceProtocolCollection() const { - return _persistenceProtocolCollection; - } + SmartPtrCPersistenceProtocolCollectionDoc getPersistenceProtocolCollection() const; /// Accessor for the version - std::string getVersion() const { - return _version; - } + std::string getVersion() const; private: SmartPtrCLocalSecurityDoc _localSecurity; diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/PersistenceDoc/CPersistenceProtocolCollectionDoc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/PersistenceDoc/CPersistenceProtocolCollectionDoc.h index 23140e457..1352adcbd 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/PersistenceDoc/CPersistenceProtocolCollectionDoc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/PersistenceDoc/CPersistenceProtocolCollectionDoc.h @@ -5,8 +5,6 @@ * Copyright (c) 2012 Vmware, Inc. All rights reserved. * -- VMware Confidential * - * This code was generated by the script "build/dev/codeGen/genCppDoc". Please - * speak to Brian W. before modifying it by hand. * */ @@ -16,30 +14,21 @@ namespace Caf { /// A simple container for objects of type PersistenceProtocolCollection -class CPersistenceProtocolCollectionDoc { +class PERSISTENCEDOC_LINKAGE CPersistenceProtocolCollectionDoc { public: - CPersistenceProtocolCollectionDoc() : - _isInitialized(false) {} - virtual ~CPersistenceProtocolCollectionDoc() {} + CPersistenceProtocolCollectionDoc(); + virtual ~CPersistenceProtocolCollectionDoc(); public: /// Initializes the object with everything required by this /// container. Once initialized, this object cannot /// be changed (i.e. it is immutable). void initialize( - const std::deque persistenceProtocol = std::deque()) { - if (! _isInitialized) { - _persistenceProtocol = persistenceProtocol; - - _isInitialized = true; - } - } + const std::deque persistenceProtocol = std::deque()); public: /// Accessor for the PersistenceProtocol - std::deque getPersistenceProtocol() const { - return _persistenceProtocol; - } + std::deque getPersistenceProtocol() const; private: bool _isInitialized; diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/PersistenceDoc/CPersistenceProtocolDoc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/PersistenceDoc/CPersistenceProtocolDoc.h index 659a68a5d..e34cd2f90 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/PersistenceDoc/CPersistenceProtocolDoc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/PersistenceDoc/CPersistenceProtocolDoc.h @@ -13,11 +13,10 @@ namespace Caf { /// A simple container for objects of type CPersistenceProtocolDoc -class CPersistenceProtocolDoc { +class PERSISTENCEDOC_LINKAGE CPersistenceProtocolDoc { public: - CPersistenceProtocolDoc() : - _isInitialized(false) {} - virtual ~CPersistenceProtocolDoc() {} + CPersistenceProtocolDoc(); + virtual ~CPersistenceProtocolDoc(); public: /// Initializes the object with everything required by this @@ -35,86 +34,44 @@ public: const std::string& uriAmqpPath = std::string(), const std::string& uriTunnelPath = std::string(), const std::string& tlsCertPath = std::string(), - const SmartPtrCCertPathCollectionDoc& tlsCertPathCollection = SmartPtrCCertPathCollectionDoc()) { - if (! _isInitialized) { - _protocolName = protocolName; - _uri = uri; - _uriAmqp = uriAmqp; - _uriTunnel = uriTunnel; - _tlsCert = tlsCert; - _tlsProtocol = tlsProtocol; - _tlsCipherCollection = tlsCipherCollection; - _tlsCertCollection = tlsCertCollection; - - _uriAmqpPath = uriAmqpPath; - _uriTunnelPath = uriTunnelPath; - _tlsCertPath = tlsCertPath; - _tlsCertPathCollection = tlsCertPathCollection; - - _isInitialized = true; - } - } + const SmartPtrCCertPathCollectionDoc& tlsCertPathCollection = SmartPtrCCertPathCollectionDoc()); public: /// Accessor for the ProtocolName - std::string getProtocolName() const { - return _protocolName; - } + std::string getProtocolName() const; /// Accessor for the Uri - std::string getUri() const { - return _uri; - } + std::string getUri() const; /// Accessor for the UriAmqp - std::string getUriAmqp() const { - return _uriAmqp; - } + std::string getUriAmqp() const; /// Accessor for the UriTunnel - std::string getUriTunnel() const { - return _uriTunnel; - } + std::string getUriTunnel() const; /// Accessor for the TlsCert - std::string getTlsCert() const { - return _tlsCert; - } + std::string getTlsCert() const; /// Accessor for the TlsProtocol - std::string getTlsProtocol() const { - return _tlsProtocol; - } + std::string getTlsProtocol() const; /// Accessor for the tlsCipherCollection - Cdeqstr getTlsCipherCollection() const { - return _tlsCipherCollection; - } + Cdeqstr getTlsCipherCollection() const; /// Accessor for the TlsCertCollection - SmartPtrCCertCollectionDoc getTlsCertCollection() const { - return _tlsCertCollection; - } + SmartPtrCCertCollectionDoc getTlsCertCollection() const; /// Accessor for the UriAmqpPath - std::string getUriAmqpPath() const { - return _uriAmqpPath; - } + std::string getUriAmqpPath() const; /// Accessor for the UriTunnelPath - std::string getUriTunnelPath() const { - return _uriTunnelPath; - } + std::string getUriTunnelPath() const; /// Accessor for the TlsCertPath - std::string getTlsCertPath() const { - return _tlsCertPath; - } + std::string getTlsCertPath() const; /// Accessor for the TlsCertPathCollection - SmartPtrCCertPathCollectionDoc getTlsCertPathCollection() const { - return _tlsCertPathCollection; - } + SmartPtrCCertPathCollectionDoc getTlsCertPathCollection() const; private: std::string _protocolName; diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/PersistenceDoc/CRemoteSecurityCollectionDoc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/PersistenceDoc/CRemoteSecurityCollectionDoc.h index 978b59fb1..0d1aebcc0 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/PersistenceDoc/CRemoteSecurityCollectionDoc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/PersistenceDoc/CRemoteSecurityCollectionDoc.h @@ -5,8 +5,6 @@ * Copyright (c) 2012 Vmware, Inc. All rights reserved. * -- VMware Confidential * - * This code was generated by the script "build/dev/codeGen/genCppDoc". Please - * speak to Brian W. before modifying it by hand. * */ @@ -16,30 +14,21 @@ namespace Caf { /// A simple container for objects of type RemoteSecurityCollection -class CRemoteSecurityCollectionDoc { +class PERSISTENCEDOC_LINKAGE CRemoteSecurityCollectionDoc { public: - CRemoteSecurityCollectionDoc() : - _isInitialized(false) {} - virtual ~CRemoteSecurityCollectionDoc() {} + CRemoteSecurityCollectionDoc(); + virtual ~CRemoteSecurityCollectionDoc(); public: /// Initializes the object with everything required by this /// container. Once initialized, this object cannot /// be changed (i.e. it is immutable). void initialize( - const std::deque remoteSecurity = std::deque()) { - if (! _isInitialized) { - _remoteSecurity = remoteSecurity; - - _isInitialized = true; - } - } + const std::deque remoteSecurity = std::deque()); public: /// Accessor for the RemoteSecurity - std::deque getRemoteSecurity() const { - return _remoteSecurity; - } + std::deque getRemoteSecurity() const; private: bool _isInitialized; diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/PersistenceDoc/CRemoteSecurityDoc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/PersistenceDoc/CRemoteSecurityDoc.h index 9411fc565..9f2ceb55c 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/PersistenceDoc/CRemoteSecurityDoc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/PersistenceDoc/CRemoteSecurityDoc.h @@ -13,11 +13,10 @@ namespace Caf { /// A simple container for objects of type CRemoteSecurityDoc -class CRemoteSecurityDoc { +class PERSISTENCEDOC_LINKAGE CRemoteSecurityDoc { public: - CRemoteSecurityDoc() : - _isInitialized(false) {} - virtual ~CRemoteSecurityDoc() {} + CRemoteSecurityDoc(); + virtual ~CRemoteSecurityDoc(); public: /// Initializes the object with everything required by this @@ -30,56 +29,29 @@ public: const std::string& cmsCipherName = std::string(), const SmartPtrCCertCollectionDoc& cmsCertCollection = SmartPtrCCertCollectionDoc(), const std::string& cmsCertPath = std::string(), - const SmartPtrCCertPathCollectionDoc& cmsCertPathCollection = SmartPtrCCertPathCollectionDoc()) { - if (! _isInitialized) { - _remoteId = remoteId; - _protocolName = protocolName; - _cmsCert = cmsCert; - _cmsCipherName = cmsCipherName; - _cmsCertCollection = cmsCertCollection; - - _cmsCertPath = cmsCertPath; - _cmsCertPathCollection = cmsCertPathCollection; - - _isInitialized = true; - } - } + const SmartPtrCCertPathCollectionDoc& cmsCertPathCollection = SmartPtrCCertPathCollectionDoc()); public: /// Accessor for the RemoteId - std::string getRemoteId() const { - return _remoteId; - } + std::string getRemoteId() const; /// Accessor for the ProtocolName - std::string getProtocolName() const { - return _protocolName; - } + std::string getProtocolName() const; /// Accessor for the cmsCert - std::string getCmsCert() const { - return _cmsCert; - } + std::string getCmsCert() const; /// Accessor for the CmsCipher - std::string getCmsCipherName() const { - return _cmsCipherName; - } + std::string getCmsCipherName() const; /// Accessor for the CertCollection - SmartPtrCCertCollectionDoc getCmsCertCollection() const { - return _cmsCertCollection; - } + SmartPtrCCertCollectionDoc getCmsCertCollection() const; /// Accessor for the cmsCertPath - std::string getCmsCertPath() const { - return _cmsCertPath; - } + std::string getCmsCertPath() const; /// Accessor for the CertPathCollection - SmartPtrCCertPathCollectionDoc getCmsCertPathCollection() const { - return _cmsCertPathCollection; - } + SmartPtrCCertPathCollectionDoc getCmsCertPathCollection() const; private: std::string _remoteId; diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/PersistenceDoc/PersistenceDocLink.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/PersistenceDoc/PersistenceDocLink.h new file mode 100644 index 000000000..097991d38 --- /dev/null +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/PersistenceDoc/PersistenceDocLink.h @@ -0,0 +1,27 @@ +/* + * Author: bwilliams + * Created: February 25, 2016 + * + * Copyright (c) 2016 Vmware, Inc. All rights reserved. + * -- VMware Confidential + * + */ + +#ifndef PersistenceDoc_Link_h_ +#define PersistenceDoc_Link_h_ + +#ifndef PERSISTENCEDOC_LINKAGE + #ifdef WIN32 + #ifdef FRAMEWORK_BUILD + #define PERSISTENCEDOC_LINKAGE __declspec(dllexport) + #else + #define PERSISTENCEDOC_LINKAGE __declspec(dllimport) + #endif + #else + #define PERSISTENCEDOC_LINKAGE + #endif +#endif + +#include "Doc/PersistenceDoc/PersistenceDocInc.h" + +#endif /* PersistenceDoc_Link_h_ */ diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/ProviderInfraDoc/CClassCollectionDoc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/ProviderInfraDoc/CClassCollectionDoc.h index 5a5ffbab1..96f731307 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/ProviderInfraDoc/CClassCollectionDoc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/ProviderInfraDoc/CClassCollectionDoc.h @@ -5,8 +5,6 @@ * Copyright (c) 2012 Vmware, Inc. All rights reserved. * -- VMware Confidential * - * This code was generated by the script "build/dev/codeGen/genCppDoc". Please - * speak to Brian W. before modifying it by hand. * */ @@ -16,30 +14,21 @@ namespace Caf { /// A simple container for objects of type ClassCollection -class CClassCollectionDoc { +class PROVIDERINFRADOC_LINKAGE CClassCollectionDoc { public: - CClassCollectionDoc() : - _isInitialized(false) {} - virtual ~CClassCollectionDoc() {} + CClassCollectionDoc(); + virtual ~CClassCollectionDoc(); public: /// Initializes the object with everything required by this /// container. Once initialized, this object cannot /// be changed (i.e. it is immutable). void initialize( - const std::deque fullyQualifiedClass) { - if (! _isInitialized) { - _fullyQualifiedClass = fullyQualifiedClass; - - _isInitialized = true; - } - } + const std::deque fullyQualifiedClass); public: /// Accessor for the FullyQualifiedClass - std::deque getFullyQualifiedClass() const { - return _fullyQualifiedClass; - } + std::deque getFullyQualifiedClass() const; private: bool _isInitialized; diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/ProviderInfraDoc/CProviderRegDoc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/ProviderInfraDoc/CProviderRegDoc.h index bf8a632f5..ec8ba3f4a 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/ProviderInfraDoc/CProviderRegDoc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/ProviderInfraDoc/CProviderRegDoc.h @@ -5,8 +5,6 @@ * Copyright (c) 2012 Vmware, Inc. All rights reserved. * -- VMware Confidential * - * This code was generated by the script "build/dev/codeGen/genCppDoc". Please - * speak to Brian W. before modifying it by hand. * */ @@ -16,13 +14,10 @@ namespace Caf { /// A simple container for objects of type ProviderReg -class CProviderRegDoc { +class PROVIDERINFRADOC_LINKAGE CProviderRegDoc { public: - CProviderRegDoc() : - _staleSec(0), - _isSchemaVisible(false), - _isInitialized(false) {} - virtual ~CProviderRegDoc() {} + CProviderRegDoc(); + virtual ~CProviderRegDoc(); public: /// Initializes the object with everything required by this @@ -34,49 +29,26 @@ public: const std::string providerVersion, const int32 staleSec, const bool isSchemaVisible, - const std::string invokerRelPath) { - if (! _isInitialized) { - _providerNamespace = providerNamespace; - _providerName = providerName; - _providerVersion = providerVersion; - _staleSec = staleSec; - _isSchemaVisible = isSchemaVisible; - _invokerRelPath = invokerRelPath; - - _isInitialized = true; - } - } + const std::string invokerRelPath); public: /// Accessor for the ProviderNamespace - std::string getProviderNamespace() const { - return _providerNamespace; - } + std::string getProviderNamespace() const; /// Accessor for the ProviderName - std::string getProviderName() const { - return _providerName; - } + std::string getProviderName() const; /// Accessor for the ProviderVersion - std::string getProviderVersion() const { - return _providerVersion; - } + std::string getProviderVersion() const; /// Accessor for the StaleSec - int32 getStaleSec() const { - return _staleSec; - } + int32 getStaleSec() const; /// Accessor for the IsSchemaVisible - bool getIsSchemaVisible() const { - return _isSchemaVisible; - } + bool getIsSchemaVisible() const; /// Accessor for the InvokerRelPath - std::string getInvokerRelPath() const { - return _invokerRelPath; - } + std::string getInvokerRelPath() const; private: std::string _providerNamespace; diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/ProviderInfraDoc/CSchemaSummaryDoc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/ProviderInfraDoc/CSchemaSummaryDoc.h index 08d3e33c3..f513109b6 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/ProviderInfraDoc/CSchemaSummaryDoc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/ProviderInfraDoc/CSchemaSummaryDoc.h @@ -5,8 +5,6 @@ * Copyright (c) 2012 Vmware, Inc. All rights reserved. * -- VMware Confidential * - * This code was generated by the script "build/dev/codeGen/genCppDoc". Please - * speak to Brian W. before modifying it by hand. * */ @@ -16,11 +14,10 @@ namespace Caf { /// A simple container for objects of type SchemaSummary -class CSchemaSummaryDoc { +class PROVIDERINFRADOC_LINKAGE CSchemaSummaryDoc { public: - CSchemaSummaryDoc() : - _isInitialized(false) {} - virtual ~CSchemaSummaryDoc() {} + CSchemaSummaryDoc(); + virtual ~CSchemaSummaryDoc(); public: /// Initializes the object with everything required by this @@ -31,43 +28,23 @@ public: const std::string providerName, const std::string providerVersion, const SmartPtrCClassCollectionDoc classCollection, - const std::string invokerPath) { - if (! _isInitialized) { - _providerNamespace = providerNamespace; - _providerName = providerName; - _providerVersion = providerVersion; - _classCollection = classCollection; - _invokerPath = invokerPath; - - _isInitialized = true; - } - } + const std::string invokerPath); public: /// Accessor for the ProviderNamespace - std::string getProviderNamespace() const { - return _providerNamespace; - } + std::string getProviderNamespace() const; /// Accessor for the ProviderName - std::string getProviderName() const { - return _providerName; - } + std::string getProviderName() const; /// Accessor for the ProviderVersion - std::string getProviderVersion() const { - return _providerVersion; - } + std::string getProviderVersion() const; /// Accessor for the ClassCollection - SmartPtrCClassCollectionDoc getClassCollection() const { - return _classCollection; - } + SmartPtrCClassCollectionDoc getClassCollection() const; /// Accessor for the InvokerPath - std::string getInvokerPath() const { - return _invokerPath; - } + std::string getInvokerPath() const; private: bool _isInitialized; diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/ProviderInfraDoc/ProviderInfraDocLink.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/ProviderInfraDoc/ProviderInfraDocLink.h new file mode 100644 index 000000000..1d70337b6 --- /dev/null +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/ProviderInfraDoc/ProviderInfraDocLink.h @@ -0,0 +1,27 @@ +/* + * Author: bwilliams + * Created: February 25, 2016 + * + * Copyright (c) 2016 Vmware, Inc. All rights reserved. + * -- VMware Confidential + * + */ + +#ifndef ProviderInfraDoc_Link_h_ +#define ProviderInfraDoc_Link_h_ + +#ifndef PROVIDERINFRADOC_LINKAGE + #ifdef WIN32 + #ifdef FRAMEWORK_BUILD + #define PROVIDERINFRADOC_LINKAGE __declspec(dllexport) + #else + #define PROVIDERINFRADOC_LINKAGE __declspec(dllimport) + #endif + #else + #define PROVIDERINFRADOC_LINKAGE + #endif +#endif + +#include "Doc/ProviderInfraDoc/ProviderInfraDocInc.h" + +#endif /* ProviderInfraDoc_Link_h_ */ diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/ProviderRequestDoc/CProviderBatchDoc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/ProviderRequestDoc/CProviderBatchDoc.h index 595230323..4c57d817e 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/ProviderRequestDoc/CProviderBatchDoc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/ProviderRequestDoc/CProviderBatchDoc.h @@ -5,8 +5,6 @@ * Copyright (c) 2012 Vmware, Inc. All rights reserved. * -- VMware Confidential * - * This code was generated by the script "build/dev/codeGen/genCppDoc". Please - * speak to Brian W. before modifying it by hand. * */ @@ -16,11 +14,10 @@ namespace Caf { /// A simple container for objects of type ProviderBatch -class CProviderBatchDoc { +class PROVIDERREQUESTDOC_LINKAGE CProviderBatchDoc { public: - CProviderBatchDoc() : - _isInitialized(false) {} - virtual ~CProviderBatchDoc() {} + CProviderBatchDoc(); + virtual ~CProviderBatchDoc(); public: /// Initializes the object with everything required by this @@ -29,31 +26,17 @@ public: void initialize( const std::string outputDir, const SmartPtrCProviderCollectInstancesCollectionDoc collectInstancesCollection, - const SmartPtrCProviderInvokeOperationCollectionDoc invokeOperationCollection) { - if (! _isInitialized) { - _outputDir = outputDir; - _collectInstancesCollection = collectInstancesCollection; - _invokeOperationCollection = invokeOperationCollection; - - _isInitialized = true; - } - } + const SmartPtrCProviderInvokeOperationCollectionDoc invokeOperationCollection); public: /// Accessor for the OutputDir - std::string getOutputDir() const { - return _outputDir; - } + std::string getOutputDir() const; /// Accessor for the CollectInstancesCollection - SmartPtrCProviderCollectInstancesCollectionDoc getCollectInstancesCollection() const { - return _collectInstancesCollection; - } + SmartPtrCProviderCollectInstancesCollectionDoc getCollectInstancesCollection() const; /// Accessor for the InvokeOperationCollection - SmartPtrCProviderInvokeOperationCollectionDoc getInvokeOperationCollection() const { - return _invokeOperationCollection; - } + SmartPtrCProviderInvokeOperationCollectionDoc getInvokeOperationCollection() const; private: bool _isInitialized; diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/ProviderRequestDoc/CProviderCollectInstancesCollectionDoc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/ProviderRequestDoc/CProviderCollectInstancesCollectionDoc.h index f2702147d..dd9fc52a2 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/ProviderRequestDoc/CProviderCollectInstancesCollectionDoc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/ProviderRequestDoc/CProviderCollectInstancesCollectionDoc.h @@ -5,8 +5,6 @@ * Copyright (c) 2012 Vmware, Inc. All rights reserved. * -- VMware Confidential * - * This code was generated by the script "build/dev/codeGen/genCppDoc". Please - * speak to Brian W. before modifying it by hand. * */ @@ -16,30 +14,21 @@ namespace Caf { /// A simple container for objects of type ProviderCollectInstancesCollection -class CProviderCollectInstancesCollectionDoc { +class PROVIDERREQUESTDOC_LINKAGE CProviderCollectInstancesCollectionDoc { public: - CProviderCollectInstancesCollectionDoc() : - _isInitialized(false) {} - virtual ~CProviderCollectInstancesCollectionDoc() {} + CProviderCollectInstancesCollectionDoc(); + virtual ~CProviderCollectInstancesCollectionDoc(); public: /// Initializes the object with everything required by this /// container. Once initialized, this object cannot /// be changed (i.e. it is immutable). void initialize( - const std::deque collectInstances) { - if (! _isInitialized) { - _collectInstances = collectInstances; - - _isInitialized = true; - } - } + const std::deque collectInstances); public: /// Accessor for the CollectInstances - std::deque getCollectInstances() const { - return _collectInstances; - } + std::deque getCollectInstances() const; private: bool _isInitialized; diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/ProviderRequestDoc/CProviderCollectInstancesDoc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/ProviderRequestDoc/CProviderCollectInstancesDoc.h index 768ba550d..d2f32e79a 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/ProviderRequestDoc/CProviderCollectInstancesDoc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/ProviderRequestDoc/CProviderCollectInstancesDoc.h @@ -5,8 +5,6 @@ * Copyright (c) 2012 Vmware, Inc. All rights reserved. * -- VMware Confidential * - * This code was generated by the script "build/dev/codeGen/genCppDoc". Please - * speak to Brian W. before modifying it by hand. * */ @@ -16,12 +14,10 @@ namespace Caf { /// A simple container for objects of type ProviderCollectInstances -class CProviderCollectInstancesDoc { +class PROVIDERREQUESTDOC_LINKAGE CProviderCollectInstancesDoc { public: - CProviderCollectInstancesDoc() : - _jobId(CAFCOMMON_GUID_NULL), - _isInitialized(false) {} - virtual ~CProviderCollectInstancesDoc() {} + CProviderCollectInstancesDoc(); + virtual ~CProviderCollectInstancesDoc(); public: /// Initializes the object with everything required by this @@ -33,49 +29,26 @@ public: const std::string classVersion, const UUID jobId, const std::string outputDir, - const SmartPtrCParameterCollectionDoc parameterCollection) { - if (! _isInitialized) { - _classNamespace = classNamespace; - _className = className; - _classVersion = classVersion; - _jobId = jobId; - _outputDir = outputDir; - _parameterCollection = parameterCollection; - - _isInitialized = true; - } - } + const SmartPtrCParameterCollectionDoc parameterCollection); public: /// Accessor for the ClassNamespace - std::string getClassNamespace() const { - return _classNamespace; - } + std::string getClassNamespace() const; /// Accessor for the ClassName - std::string getClassName() const { - return _className; - } + std::string getClassName() const; /// Accessor for the ClassVersion - std::string getClassVersion() const { - return _classVersion; - } + std::string getClassVersion() const; /// Accessor for the JobId - UUID getJobId() const { - return _jobId; - } + UUID getJobId() const; /// Accessor for the OutputDir - std::string getOutputDir() const { - return _outputDir; - } + std::string getOutputDir() const; /// Accessor for the ParameterCollection - SmartPtrCParameterCollectionDoc getParameterCollection() const { - return _parameterCollection; - } + SmartPtrCParameterCollectionDoc getParameterCollection() const; private: std::string _classNamespace; diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/ProviderRequestDoc/CProviderCollectSchemaRequestDoc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/ProviderRequestDoc/CProviderCollectSchemaRequestDoc.h index 26d5c5d78..b159838b1 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/ProviderRequestDoc/CProviderCollectSchemaRequestDoc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/ProviderRequestDoc/CProviderCollectSchemaRequestDoc.h @@ -5,8 +5,6 @@ * Copyright (c) 2012 Vmware, Inc. All rights reserved. * -- VMware Confidential * - * This code was generated by the script "build/dev/codeGen/genCppDoc". Please - * speak to Brian W. before modifying it by hand. * */ @@ -16,14 +14,10 @@ namespace Caf { /// A simple container for objects of type ProviderCollectSchemaRequest -class CProviderCollectSchemaRequestDoc { +class PROVIDERREQUESTDOC_LINKAGE CProviderCollectSchemaRequestDoc { public: - CProviderCollectSchemaRequestDoc() : - _clientId(CAFCOMMON_GUID_NULL), - _requestId(CAFCOMMON_GUID_NULL), - _jobId(CAFCOMMON_GUID_NULL), - _isInitialized(false) {} - virtual ~CProviderCollectSchemaRequestDoc() {} + CProviderCollectSchemaRequestDoc(); + virtual ~CProviderCollectSchemaRequestDoc(); public: /// Initializes the object with everything required by this @@ -35,49 +29,26 @@ public: const std::string pmeId, const UUID jobId, const std::string outputDir, - const SmartPtrCProviderRequestHeaderDoc requestHeader) { - if (! _isInitialized) { - _clientId = clientId; - _requestId = requestId; - _pmeId = pmeId; - _jobId = jobId; - _outputDir = outputDir; - _requestHeader = requestHeader; - - _isInitialized = true; - } - } + const SmartPtrCProviderRequestHeaderDoc requestHeader); public: /// Accessor for the ClientId - UUID getClientId() const { - return _clientId; - } + UUID getClientId() const; /// Accessor for the RequestId - UUID getRequestId() const { - return _requestId; - } + UUID getRequestId() const; /// Accessor for the PmeId - std::string getPmeId() const { - return _pmeId; - } + std::string getPmeId() const; /// Accessor for the JobId - UUID getJobId() const { - return _jobId; - } + UUID getJobId() const; /// Accessor for the OutputDir - std::string getOutputDir() const { - return _outputDir; - } + std::string getOutputDir() const; /// Accessor for the RequestHeader - SmartPtrCProviderRequestHeaderDoc getRequestHeader() const { - return _requestHeader; - } + SmartPtrCProviderRequestHeaderDoc getRequestHeader() const; private: UUID _clientId; diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/ProviderRequestDoc/CProviderInvokeOperationCollectionDoc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/ProviderRequestDoc/CProviderInvokeOperationCollectionDoc.h index 903efcd07..4c6b99047 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/ProviderRequestDoc/CProviderInvokeOperationCollectionDoc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/ProviderRequestDoc/CProviderInvokeOperationCollectionDoc.h @@ -5,8 +5,6 @@ * Copyright (c) 2012 Vmware, Inc. All rights reserved. * -- VMware Confidential * - * This code was generated by the script "build/dev/codeGen/genCppDoc". Please - * speak to Brian W. before modifying it by hand. * */ @@ -16,30 +14,21 @@ namespace Caf { /// A simple container for objects of type ProviderInvokeOperationCollection -class CProviderInvokeOperationCollectionDoc { +class PROVIDERREQUESTDOC_LINKAGE CProviderInvokeOperationCollectionDoc { public: - CProviderInvokeOperationCollectionDoc() : - _isInitialized(false) {} - virtual ~CProviderInvokeOperationCollectionDoc() {} + CProviderInvokeOperationCollectionDoc(); + virtual ~CProviderInvokeOperationCollectionDoc(); public: /// Initializes the object with everything required by this /// container. Once initialized, this object cannot /// be changed (i.e. it is immutable). void initialize( - const std::deque invokeOperation) { - if (! _isInitialized) { - _invokeOperation = invokeOperation; - - _isInitialized = true; - } - } + const std::deque invokeOperation); public: /// Accessor for the InvokeOperation - std::deque getInvokeOperation() const { - return _invokeOperation; - } + std::deque getInvokeOperation() const; private: bool _isInitialized; diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/ProviderRequestDoc/CProviderInvokeOperationDoc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/ProviderRequestDoc/CProviderInvokeOperationDoc.h index 1bff3328a..8da092be5 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/ProviderRequestDoc/CProviderInvokeOperationDoc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/ProviderRequestDoc/CProviderInvokeOperationDoc.h @@ -5,8 +5,6 @@ * Copyright (c) 2012 Vmware, Inc. All rights reserved. * -- VMware Confidential * - * This code was generated by the script "build/dev/codeGen/genCppDoc". Please - * speak to Brian W. before modifying it by hand. * */ @@ -16,12 +14,10 @@ namespace Caf { /// A simple container for objects of type ProviderInvokeOperation -class CProviderInvokeOperationDoc { +class PROVIDERREQUESTDOC_LINKAGE CProviderInvokeOperationDoc { public: - CProviderInvokeOperationDoc() : - _jobId(CAFCOMMON_GUID_NULL), - _isInitialized(false) {} - virtual ~CProviderInvokeOperationDoc() {} + CProviderInvokeOperationDoc(); + virtual ~CProviderInvokeOperationDoc(); public: /// Initializes the object with everything required by this @@ -33,49 +29,26 @@ public: const std::string classVersion, const UUID jobId, const std::string outputDir, - const SmartPtrCOperationDoc operation) { - if (! _isInitialized) { - _classNamespace = classNamespace; - _className = className; - _classVersion = classVersion; - _jobId = jobId; - _outputDir = outputDir; - _operation = operation; - - _isInitialized = true; - } - } + const SmartPtrCOperationDoc operation); public: /// Accessor for the ClassNamespace - std::string getClassNamespace() const { - return _classNamespace; - } + std::string getClassNamespace() const; /// Accessor for the ClassName - std::string getClassName() const { - return _className; - } + std::string getClassName() const; /// Accessor for the ClassVersion - std::string getClassVersion() const { - return _classVersion; - } + std::string getClassVersion() const; /// Accessor for the JobId - UUID getJobId() const { - return _jobId; - } + UUID getJobId() const; /// Accessor for the OutputDir - std::string getOutputDir() const { - return _outputDir; - } + std::string getOutputDir() const; /// Accessor for the Operation - SmartPtrCOperationDoc getOperation() const { - return _operation; - } + SmartPtrCOperationDoc getOperation() const; private: std::string _classNamespace; diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/ProviderRequestDoc/CProviderRequestConfigDoc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/ProviderRequestDoc/CProviderRequestConfigDoc.h index ab3b11dce..8cbb91a06 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/ProviderRequestDoc/CProviderRequestConfigDoc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/ProviderRequestDoc/CProviderRequestConfigDoc.h @@ -5,8 +5,6 @@ * Copyright (c) 2012 Vmware, Inc. All rights reserved. * -- VMware Confidential * - * This code was generated by the script "build/dev/codeGen/genCppDoc". Please - * speak to Brian W. before modifying it by hand. * */ @@ -16,11 +14,10 @@ namespace Caf { /// A simple container for objects of type ProviderRequestConfig -class CProviderRequestConfigDoc { +class PROVIDERREQUESTDOC_LINKAGE CProviderRequestConfigDoc { public: - CProviderRequestConfigDoc() : - _isInitialized(false) {} - virtual ~CProviderRequestConfigDoc() {} + CProviderRequestConfigDoc(); + virtual ~CProviderRequestConfigDoc(); public: /// Initializes the object with everything required by this @@ -28,25 +25,14 @@ public: /// be changed (i.e. it is immutable). void initialize( const std::string responseFormatType, - const SmartPtrCLoggingLevelCollectionDoc loggingLevelCollection) { - if (! _isInitialized) { - _responseFormatType = responseFormatType; - _loggingLevelCollection = loggingLevelCollection; - - _isInitialized = true; - } - } + const SmartPtrCLoggingLevelCollectionDoc loggingLevelCollection); public: /// Accessor for the ResponseFormatType - std::string getResponseFormatType() const { - return _responseFormatType; - } + std::string getResponseFormatType() const; /// Accessor for the LoggingLevelCollection - SmartPtrCLoggingLevelCollectionDoc getLoggingLevelCollection() const { - return _loggingLevelCollection; - } + SmartPtrCLoggingLevelCollectionDoc getLoggingLevelCollection() const; private: bool _isInitialized; diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/ProviderRequestDoc/CProviderRequestDoc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/ProviderRequestDoc/CProviderRequestDoc.h index d82777a6f..3b929fafa 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/ProviderRequestDoc/CProviderRequestDoc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/ProviderRequestDoc/CProviderRequestDoc.h @@ -5,8 +5,6 @@ * Copyright (c) 2012 Vmware, Inc. All rights reserved. * -- VMware Confidential * - * This code was generated by the script "build/dev/codeGen/genCppDoc". Please - * speak to Brian W. before modifying it by hand. * */ @@ -16,13 +14,10 @@ namespace Caf { /// A simple container for objects of type ProviderRequest -class CProviderRequestDoc { +class PROVIDERREQUESTDOC_LINKAGE CProviderRequestDoc { public: - CProviderRequestDoc() : - _clientId(CAFCOMMON_GUID_NULL), - _requestId(CAFCOMMON_GUID_NULL), - _isInitialized(false) {} - virtual ~CProviderRequestDoc() {} + CProviderRequestDoc(); + virtual ~CProviderRequestDoc(); public: /// Initializes the object with everything required by this @@ -34,49 +29,26 @@ public: const std::string pmeId, const SmartPtrCProviderRequestHeaderDoc requestHeader, const SmartPtrCProviderBatchDoc batch, - const SmartPtrCAttachmentCollectionDoc attachmentCollection) { - if (! _isInitialized) { - _clientId = clientId; - _requestId = requestId; - _pmeId = pmeId; - _requestHeader = requestHeader; - _batch = batch; - _attachmentCollection = attachmentCollection; - - _isInitialized = true; - } - } + const SmartPtrCAttachmentCollectionDoc attachmentCollection); public: /// Accessor for the ClientId - UUID getClientId() const { - return _clientId; - } + UUID getClientId() const; /// Accessor for the RequestId - UUID getRequestId() const { - return _requestId; - } + UUID getRequestId() const; /// Accessor for the PmeId - std::string getPmeId() const { - return _pmeId; - } + std::string getPmeId() const; /// Accessor for the RequestHeader - SmartPtrCProviderRequestHeaderDoc getRequestHeader() const { - return _requestHeader; - } + SmartPtrCProviderRequestHeaderDoc getRequestHeader() const; /// Accessor for the Batch - SmartPtrCProviderBatchDoc getBatch() const { - return _batch; - } + SmartPtrCProviderBatchDoc getBatch() const; /// Accessor for the AttachmentCollection - SmartPtrCAttachmentCollectionDoc getAttachmentCollection() const { - return _attachmentCollection; - } + SmartPtrCAttachmentCollectionDoc getAttachmentCollection() const; private: UUID _clientId; diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/ProviderRequestDoc/CProviderRequestHeaderDoc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/ProviderRequestDoc/CProviderRequestHeaderDoc.h index e7f2d7d99..b0e70fb6c 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/ProviderRequestDoc/CProviderRequestHeaderDoc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/ProviderRequestDoc/CProviderRequestHeaderDoc.h @@ -5,8 +5,6 @@ * Copyright (c) 2012 Vmware, Inc. All rights reserved. * -- VMware Confidential * - * This code was generated by the script "build/dev/codeGen/genCppDoc". Please - * speak to Brian W. before modifying it by hand. * */ @@ -16,11 +14,10 @@ namespace Caf { /// A simple container for objects of type ProviderRequestHeader -class CProviderRequestHeaderDoc { +class PROVIDERREQUESTDOC_LINKAGE CProviderRequestHeaderDoc { public: - CProviderRequestHeaderDoc() : - _isInitialized(false) {} - virtual ~CProviderRequestHeaderDoc() {} + CProviderRequestHeaderDoc(); + virtual ~CProviderRequestHeaderDoc(); public: /// Initializes the object with everything required by this @@ -28,25 +25,14 @@ public: /// be changed (i.e. it is immutable). void initialize( const SmartPtrCProviderRequestConfigDoc requestConfig, - const SmartPtrCPropertyCollectionDoc echoPropertyBag) { - if (! _isInitialized) { - _requestConfig = requestConfig; - _echoPropertyBag = echoPropertyBag; - - _isInitialized = true; - } - } + const SmartPtrCPropertyCollectionDoc echoPropertyBag); public: /// Accessor for the RequestConfig - SmartPtrCProviderRequestConfigDoc getRequestConfig() const { - return _requestConfig; - } + SmartPtrCProviderRequestConfigDoc getRequestConfig() const; /// Accessor for the EchoPropertyBag - SmartPtrCPropertyCollectionDoc getEchoPropertyBag() const { - return _echoPropertyBag; - } + SmartPtrCPropertyCollectionDoc getEchoPropertyBag() const; private: bool _isInitialized; diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/ProviderRequestDoc/ProviderRequestDocLink.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/ProviderRequestDoc/ProviderRequestDocLink.h new file mode 100644 index 000000000..0cd0d8e8e --- /dev/null +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/ProviderRequestDoc/ProviderRequestDocLink.h @@ -0,0 +1,27 @@ +/* + * Author: bwilliams + * Created: February 25, 2016 + * + * Copyright (c) 2016 Vmware, Inc. All rights reserved. + * -- VMware Confidential + * + */ + +#ifndef ProviderRequestDoc_Link_h_ +#define ProviderRequestDoc_Link_h_ + +#ifndef PROVIDERREQUESTDOC_LINKAGE + #ifdef WIN32 + #ifdef FRAMEWORK_BUILD + #define PROVIDERREQUESTDOC_LINKAGE __declspec(dllexport) + #else + #define PROVIDERREQUESTDOC_LINKAGE __declspec(dllimport) + #endif + #else + #define PROVIDERREQUESTDOC_LINKAGE + #endif +#endif + +#include "Doc/ProviderRequestDoc/ProviderRequestDocInc.h" + +#endif /* ProviderRequestDoc_Link_h_ */ diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/ProviderResultsDoc/CCdifDoc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/ProviderResultsDoc/CCdifDoc.h index aaf397342..829bb89df 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/ProviderResultsDoc/CCdifDoc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/ProviderResultsDoc/CCdifDoc.h @@ -5,8 +5,6 @@ * Copyright (c) 2012 Vmware, Inc. All rights reserved. * -- VMware Confidential * - * This code was generated by the script "build/dev/codeGen/genCppDoc". Please - * speak to Brian W. before modifying it by hand. * */ @@ -16,11 +14,10 @@ namespace Caf { /// A simple container for objects of type Cdif -class CCdifDoc { +class PROVIDERRESULTSDOC_LINKAGE CCdifDoc { public: - CCdifDoc() : - _isInitialized(false) {} - virtual ~CCdifDoc() {} + CCdifDoc(); + virtual ~CCdifDoc(); public: /// Initializes the object with everything required by this @@ -29,31 +26,17 @@ public: void initialize( const SmartPtrCRequestIdentifierDoc requestIdentifier, const SmartPtrCDefinitionObjectCollectionDoc definitionObjectCollection, - const SmartPtrCSchemaDoc schema) { - if (! _isInitialized) { - _requestIdentifier = requestIdentifier; - _definitionObjectCollection = definitionObjectCollection; - _schema = schema; - - _isInitialized = true; - } - } + const SmartPtrCSchemaDoc schema); public: /// Accessor for the RequestIdentifier - SmartPtrCRequestIdentifierDoc getRequestIdentifier() const { - return _requestIdentifier; - } + SmartPtrCRequestIdentifierDoc getRequestIdentifier() const; /// Accessor for the DefinitionObjectCollection - SmartPtrCDefinitionObjectCollectionDoc getDefinitionObjectCollection() const { - return _definitionObjectCollection; - } + SmartPtrCDefinitionObjectCollectionDoc getDefinitionObjectCollection() const; /// Accessor for the Schema - SmartPtrCSchemaDoc getSchema() const { - return _schema; - } + SmartPtrCSchemaDoc getSchema() const; private: bool _isInitialized; diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/ProviderResultsDoc/CDefinitionObjectCollectionDoc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/ProviderResultsDoc/CDefinitionObjectCollectionDoc.h index b56dcc55b..cc146f1c6 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/ProviderResultsDoc/CDefinitionObjectCollectionDoc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/ProviderResultsDoc/CDefinitionObjectCollectionDoc.h @@ -5,8 +5,6 @@ * Copyright (c) 2012 Vmware, Inc. All rights reserved. * -- VMware Confidential * - * This code was generated by the script "build/dev/codeGen/genCppDoc". Please - * speak to Brian W. before modifying it by hand. * */ @@ -16,30 +14,21 @@ namespace Caf { /// Set of elements containing data returned as a result of a provider collection or action -class CDefinitionObjectCollectionDoc { +class PROVIDERRESULTSDOC_LINKAGE CDefinitionObjectCollectionDoc { public: - CDefinitionObjectCollectionDoc() : - _isInitialized(false) {} - virtual ~CDefinitionObjectCollectionDoc() {} + CDefinitionObjectCollectionDoc(); + virtual ~CDefinitionObjectCollectionDoc(); public: /// Initializes the object with everything required by this /// container. Once initialized, this object cannot /// be changed (i.e. it is immutable). void initialize( - const std::deque value) { - if (! _isInitialized) { - _value = value; - - _isInitialized = true; - } - } + const std::deque value); public: /// Accessor for the Value - std::deque getValue() const { - return _value; - } + std::deque getValue() const; private: bool _isInitialized; diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/ProviderResultsDoc/CRequestIdentifierDoc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/ProviderResultsDoc/CRequestIdentifierDoc.h index 673fbfb21..2621fe0d6 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/ProviderResultsDoc/CRequestIdentifierDoc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/ProviderResultsDoc/CRequestIdentifierDoc.h @@ -5,8 +5,6 @@ * Copyright (c) 2012 Vmware, Inc. All rights reserved. * -- VMware Confidential * - * This code was generated by the script "build/dev/codeGen/genCppDoc". Please - * speak to Brian W. before modifying it by hand. * */ @@ -16,15 +14,10 @@ namespace Caf { /// Fields that allow client to determine which request resulted in this response document -class CRequestIdentifierDoc { +class PROVIDERRESULTSDOC_LINKAGE CRequestIdentifierDoc { public: - CRequestIdentifierDoc() : - _clientId(CAFCOMMON_GUID_NULL), - _requestId(CAFCOMMON_GUID_NULL), - _jobId(CAFCOMMON_GUID_NULL), - _sessionId(CAFCOMMON_GUID_NULL), - _isInitialized(false) {} - virtual ~CRequestIdentifierDoc() {} + CRequestIdentifierDoc(); + virtual ~CRequestIdentifierDoc(); public: /// Initializes the object with everything required by this @@ -36,49 +29,26 @@ public: const std::string pmeId, const UUID jobId, const SmartPtrCActionClassDoc actionClass, - const UUID sessionId) { - if (! _isInitialized) { - _clientId = clientId; - _requestId = requestId; - _pmeId = pmeId; - _jobId = jobId; - _actionClass = actionClass; - _sessionId = sessionId; - - _isInitialized = true; - } - } + const UUID sessionId); public: /// Accessor for the ClientId - UUID getClientId() const { - return _clientId; - } + UUID getClientId() const; /// Accessor for the RequestId - UUID getRequestId() const { - return _requestId; - } + UUID getRequestId() const; /// Accessor for the PmeId - std::string getPmeId() const { - return _pmeId; - } + std::string getPmeId() const; /// Identifier of the specific job within the request - UUID getJobId() const { - return _jobId; - } + UUID getJobId() const; /// Accessor for the ActionClass - SmartPtrCActionClassDoc getActionClass() const { - return _actionClass; - } + SmartPtrCActionClassDoc getActionClass() const; /// Client-configurable identifier that is opaque (not used) by the Common Agent Framework - UUID getSessionId() const { - return _sessionId; - } + UUID getSessionId() const; private: UUID _clientId; diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/ProviderResultsDoc/CSchemaDoc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/ProviderResultsDoc/CSchemaDoc.h index 77058e3ec..f49adb32c 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/ProviderResultsDoc/CSchemaDoc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/ProviderResultsDoc/CSchemaDoc.h @@ -5,8 +5,6 @@ * Copyright (c) 2012 Vmware, Inc. All rights reserved. * -- VMware Confidential * - * This code was generated by the script "build/dev/codeGen/genCppDoc". Please - * speak to Brian W. before modifying it by hand. * */ @@ -16,11 +14,10 @@ namespace Caf { /// Set of elements describing the objects that can be generated by the provider -class CSchemaDoc { +class PROVIDERRESULTSDOC_LINKAGE CSchemaDoc { public: - CSchemaDoc() : - _isInitialized(false) {} - virtual ~CSchemaDoc() {} + CSchemaDoc(); + virtual ~CSchemaDoc(); public: /// Initializes the object with everything required by this @@ -30,37 +27,20 @@ public: const std::deque dataClassCollection, const std::deque actionClassCollection, const std::deque logicalRelationshipCollection = std::deque(), - const std::deque physicalRelationshipCollection = std::deque()) { - if (! _isInitialized) { - _dataClassCollection = dataClassCollection; - _actionClassCollection = actionClassCollection; - _logicalRelationshipCollection = logicalRelationshipCollection; - _physicalRelationshipCollection = physicalRelationshipCollection; - - _isInitialized = true; - } - } + const std::deque physicalRelationshipCollection = std::deque()); public: /// Accessor for the DataClassCollection - std::deque getDataClassCollection() const { - return _dataClassCollection; - } + std::deque getDataClassCollection() const; /// Accessor for the ActionClassCollection - std::deque getActionClassCollection() const { - return _actionClassCollection; - } + std::deque getActionClassCollection() const; /// Accessor for the LogicalRelationshipCollection - std::deque getLogicalRelationshipCollection() const { - return _logicalRelationshipCollection; - } + std::deque getLogicalRelationshipCollection() const; /// Accessor for the PhysicalRelationshipCollection - std::deque getPhysicalRelationshipCollection() const { - return _physicalRelationshipCollection; - } + std::deque getPhysicalRelationshipCollection() const; private: bool _isInitialized; diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/ProviderResultsDoc/ProviderResultsDocLink.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/ProviderResultsDoc/ProviderResultsDocLink.h new file mode 100644 index 000000000..88d645102 --- /dev/null +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/ProviderResultsDoc/ProviderResultsDocLink.h @@ -0,0 +1,27 @@ +/* + * Author: bwilliams + * Created: February 25, 2016 + * + * Copyright (c) 2016 Vmware, Inc. All rights reserved. + * -- VMware Confidential + * + */ + +#ifndef ProviderResultsDoc_Link_h_ +#define ProviderResultsDoc_Link_h_ + +#ifndef PROVIDERRESULTSDOC_LINKAGE + #ifdef WIN32 + #ifdef FRAMEWORK_BUILD + #define PROVIDERRESULTSDOC_LINKAGE __declspec(dllexport) + #else + #define PROVIDERRESULTSDOC_LINKAGE __declspec(dllimport) + #endif + #else + #define PROVIDERRESULTSDOC_LINKAGE + #endif +#endif + +#include "Doc/ProviderResultsDoc/ProviderResultsDocInc.h" + +#endif /* ProviderResultsDoc_Link_h_ */ diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/ResponseDoc/CErrorResponseDoc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/ResponseDoc/CErrorResponseDoc.h index 6422f24b4..72ea3370c 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/ResponseDoc/CErrorResponseDoc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/ResponseDoc/CErrorResponseDoc.h @@ -5,8 +5,6 @@ * Copyright (c) 2012 Vmware, Inc. All rights reserved. * -- VMware Confidential * - * This code was generated by the script "build/dev/codeGen/genCppDoc". Please - * speak to Brian W. before modifying it by hand. * */ @@ -16,13 +14,10 @@ namespace Caf { /// A simple container for objects of type ErrorResponse -class CErrorResponseDoc { +class RESPONSEDOC_LINKAGE CErrorResponseDoc { public: - CErrorResponseDoc() : - _clientId(CAFCOMMON_GUID_NULL), - _requestId(CAFCOMMON_GUID_NULL), - _isInitialized(false) {} - virtual ~CErrorResponseDoc() {} + CErrorResponseDoc(); + virtual ~CErrorResponseDoc(); public: /// Initializes the object with everything required by this @@ -33,43 +28,23 @@ public: const UUID requestId, const std::string pmeId, const SmartPtrCResponseHeaderDoc responseHeader, - const std::string errorMessage) { - if (! _isInitialized) { - _clientId = clientId; - _requestId = requestId; - _pmeId = pmeId; - _responseHeader = responseHeader; - _errorMessage = errorMessage; - - _isInitialized = true; - } - } + const std::string errorMessage); public: /// Accessor for the ClientId - UUID getClientId() const { - return _clientId; - } + UUID getClientId() const; /// Accessor for the RequestId - UUID getRequestId() const { - return _requestId; - } + UUID getRequestId() const; /// Accessor for the PmeId - std::string getPmeId() const { - return _pmeId; - } + std::string getPmeId() const; /// Accessor for the Response Header - SmartPtrCResponseHeaderDoc getResponseHeader() const { - return _responseHeader; - } + SmartPtrCResponseHeaderDoc getResponseHeader() const; /// Accessor for the ErrorMessage - std::string getErrorMessage() const { - return _errorMessage; - } + std::string getErrorMessage() const; private: UUID _clientId; diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/ResponseDoc/CEventKeyCollectionDoc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/ResponseDoc/CEventKeyCollectionDoc.h index 81408cfe9..1f6a8559e 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/ResponseDoc/CEventKeyCollectionDoc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/ResponseDoc/CEventKeyCollectionDoc.h @@ -5,8 +5,6 @@ * Copyright (c) 2012 Vmware, Inc. All rights reserved. * -- VMware Confidential * - * This code was generated by the script "build/dev/codeGen/genCppDoc". Please - * speak to Brian W. before modifying it by hand. * */ @@ -16,30 +14,21 @@ namespace Caf { /// A simple container for objects of type EventKeyCollection -class CEventKeyCollectionDoc { +class RESPONSEDOC_LINKAGE CEventKeyCollectionDoc { public: - CEventKeyCollectionDoc() : - _isInitialized(false) {} - virtual ~CEventKeyCollectionDoc() {} + CEventKeyCollectionDoc(); + virtual ~CEventKeyCollectionDoc(); public: /// Initializes the object with everything required by this /// container. Once initialized, this object cannot /// be changed (i.e. it is immutable). void initialize( - const std::deque eventKey) { - if (! _isInitialized) { - _eventKey = eventKey; - - _isInitialized = true; - } - } + const std::deque eventKey); public: /// Accessor for the EventKey - std::deque getEventKey() const { - return _eventKey; - } + std::deque getEventKey() const; private: bool _isInitialized; diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/ResponseDoc/CEventKeyDoc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/ResponseDoc/CEventKeyDoc.h index 663d278ce..94ee81078 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/ResponseDoc/CEventKeyDoc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/ResponseDoc/CEventKeyDoc.h @@ -5,8 +5,6 @@ * Copyright (c) 2012 Vmware, Inc. All rights reserved. * -- VMware Confidential * - * This code was generated by the script "build/dev/codeGen/genCppDoc". Please - * speak to Brian W. before modifying it by hand. * */ @@ -16,11 +14,10 @@ namespace Caf { /// A simple container for objects of type EventKey -class CEventKeyDoc { +class RESPONSEDOC_LINKAGE CEventKeyDoc { public: - CEventKeyDoc() : - _isInitialized(false) {} - virtual ~CEventKeyDoc() {} + CEventKeyDoc(); + virtual ~CEventKeyDoc(); public: /// Initializes the object with everything required by this @@ -28,25 +25,14 @@ public: /// be changed (i.e. it is immutable). void initialize( const std::string name, - const std::string value) { - if (! _isInitialized) { - _name = name; - _value = value; - - _isInitialized = true; - } - } + const std::string value); public: /// Accessor for the Name - std::string getName() const { - return _name; - } + std::string getName() const; /// Accessor for the Value - std::string getValue() const { - return _value; - } + std::string getValue() const; private: bool _isInitialized; diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/ResponseDoc/CEventManifestDoc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/ResponseDoc/CEventManifestDoc.h index a9a1ea6dd..c9975369d 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/ResponseDoc/CEventManifestDoc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/ResponseDoc/CEventManifestDoc.h @@ -5,8 +5,6 @@ * Copyright (c) 2012 Vmware, Inc. All rights reserved. * -- VMware Confidential * - * This code was generated by the script "build/dev/codeGen/genCppDoc". Please - * speak to Brian W. before modifying it by hand. * */ @@ -16,11 +14,10 @@ namespace Caf { /// A simple container for objects of type EventManifest -class CEventManifestDoc { +class RESPONSEDOC_LINKAGE CEventManifestDoc { public: - CEventManifestDoc() : - _isInitialized(false) {} - virtual ~CEventManifestDoc() {} + CEventManifestDoc(); + virtual ~CEventManifestDoc(); public: /// Initializes the object with everything required by this @@ -31,43 +28,23 @@ public: const std::string className, const std::string classVersion, const std::string operationName, - const SmartPtrCAttachmentCollectionDoc attachmentCollection) { - if (! _isInitialized) { - _classNamespace = classNamespace; - _className = className; - _classVersion = classVersion; - _operationName = operationName; - _attachmentCollection = attachmentCollection; - - _isInitialized = true; - } - } + const SmartPtrCAttachmentCollectionDoc attachmentCollection); public: /// Accessor for the ClassNamespace - std::string getClassNamespace() const { - return _classNamespace; - } + std::string getClassNamespace() const; /// Accessor for the ClassName - std::string getClassName() const { - return _className; - } + std::string getClassName() const; /// Accessor for the ClassVersion - std::string getClassVersion() const { - return _classVersion; - } + std::string getClassVersion() const; /// Accessor for the OperationName - std::string getOperationName() const { - return _operationName; - } + std::string getOperationName() const; /// Accessor for the AttachmentCollection - SmartPtrCAttachmentCollectionDoc getAttachmentCollection() const { - return _attachmentCollection; - } + SmartPtrCAttachmentCollectionDoc getAttachmentCollection() const; private: bool _isInitialized; diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/ResponseDoc/CManifestCollectionDoc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/ResponseDoc/CManifestCollectionDoc.h index 005c3ad12..c0206dfb0 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/ResponseDoc/CManifestCollectionDoc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/ResponseDoc/CManifestCollectionDoc.h @@ -5,8 +5,6 @@ * Copyright (c) 2012 Vmware, Inc. All rights reserved. * -- VMware Confidential * - * This code was generated by the script "build/dev/codeGen/genCppDoc". Please - * speak to Brian W. before modifying it by hand. * */ @@ -16,30 +14,21 @@ namespace Caf { /// A simple container for objects of type ManifestCollection -class CManifestCollectionDoc { +class RESPONSEDOC_LINKAGE CManifestCollectionDoc { public: - CManifestCollectionDoc() : - _isInitialized(false) {} - virtual ~CManifestCollectionDoc() {} + CManifestCollectionDoc(); + virtual ~CManifestCollectionDoc(); public: /// Initializes the object with everything required by this /// container. Once initialized, this object cannot /// be changed (i.e. it is immutable). void initialize( - const std::deque manifest) { - if (! _isInitialized) { - _manifest = manifest; - - _isInitialized = true; - } - } + const std::deque manifest); public: /// Accessor for the Manifest - std::deque getManifest() const { - return _manifest; - } + std::deque getManifest() const; private: bool _isInitialized; diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/ResponseDoc/CManifestDoc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/ResponseDoc/CManifestDoc.h index 767c6383d..78589ca58 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/ResponseDoc/CManifestDoc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/ResponseDoc/CManifestDoc.h @@ -5,8 +5,6 @@ * Copyright (c) 2012 Vmware, Inc. All rights reserved. * -- VMware Confidential * - * This code was generated by the script "build/dev/codeGen/genCppDoc". Please - * speak to Brian W. before modifying it by hand. * */ @@ -16,12 +14,10 @@ namespace Caf { /// A simple container for objects of type Manifest -class CManifestDoc { +class RESPONSEDOC_LINKAGE CManifestDoc { public: - CManifestDoc() : - _jobId(CAFCOMMON_GUID_NULL), - _isInitialized(false) {} - virtual ~CManifestDoc() {} + CManifestDoc(); + virtual ~CManifestDoc(); public: /// Initializes the object with everything required by this @@ -33,49 +29,26 @@ public: const std::string classVersion, const UUID jobId, const std::string operationName, - const SmartPtrCAttachmentNameCollectionDoc attachmentNameCollection) { - if (! _isInitialized) { - _classNamespace = classNamespace; - _className = className; - _classVersion = classVersion; - _jobId = jobId; - _operationName = operationName; - _attachmentNameCollection = attachmentNameCollection; - - _isInitialized = true; - } - } + const SmartPtrCAttachmentNameCollectionDoc attachmentNameCollection); public: /// Accessor for the ClassNamespace - std::string getClassNamespace() const { - return _classNamespace; - } + std::string getClassNamespace() const; /// Accessor for the ClassName - std::string getClassName() const { - return _className; - } + std::string getClassName() const; /// Accessor for the ClassVersion - std::string getClassVersion() const { - return _classVersion; - } + std::string getClassVersion() const; /// Accessor for the JobId - UUID getJobId() const { - return _jobId; - } + UUID getJobId() const; /// Accessor for the OperationName - std::string getOperationName() const { - return _operationName; - } + std::string getOperationName() const; /// Accessor for the AttachmentNameCollection - SmartPtrCAttachmentNameCollectionDoc getAttachmentNameCollection() const { - return _attachmentNameCollection; - } + SmartPtrCAttachmentNameCollectionDoc getAttachmentNameCollection() const; private: std::string _classNamespace; diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/ResponseDoc/CProviderEventResponseDoc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/ResponseDoc/CProviderEventResponseDoc.h index 90ed428f8..5124f028c 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/ResponseDoc/CProviderEventResponseDoc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/ResponseDoc/CProviderEventResponseDoc.h @@ -5,8 +5,6 @@ * Copyright (c) 2012 Vmware, Inc. All rights reserved. * -- VMware Confidential * - * This code was generated by the script "build/dev/codeGen/genCppDoc". Please - * speak to Brian W. before modifying it by hand. * */ @@ -16,11 +14,10 @@ namespace Caf { /// A simple container for objects of type ProviderEventResponse -class CProviderEventResponseDoc { +class RESPONSEDOC_LINKAGE CProviderEventResponseDoc { public: - CProviderEventResponseDoc() : - _isInitialized(false) {} - virtual ~CProviderEventResponseDoc() {} + CProviderEventResponseDoc(); + virtual ~CProviderEventResponseDoc(); public: /// Initializes the object with everything required by this @@ -31,43 +28,23 @@ public: const SmartPtrCResponseHeaderDoc responseHeader, const SmartPtrCEventManifestDoc manifest, const SmartPtrCEventKeyCollectionDoc eventKeyCollection, - const SmartPtrCStatisticsDoc statistics) { - if (! _isInitialized) { - _pmeId = pmeId; - _responseHeader = responseHeader; - _manifest = manifest; - _eventKeyCollection = eventKeyCollection; - _statistics = statistics; - - _isInitialized = true; - } - } + const SmartPtrCStatisticsDoc statistics); public: /// Accessor for the PmeId - std::string getPmeId() const { - return _pmeId; - } + std::string getPmeId() const; /// Accessor for the ResponseHeader - SmartPtrCResponseHeaderDoc getResponseHeader() const { - return _responseHeader; - } + SmartPtrCResponseHeaderDoc getResponseHeader() const; /// Accessor for the Manifest - SmartPtrCEventManifestDoc getManifest() const { - return _manifest; - } + SmartPtrCEventManifestDoc getManifest() const; /// Accessor for the EventKeyCollection - SmartPtrCEventKeyCollectionDoc getEventKeyCollection() const { - return _eventKeyCollection; - } + SmartPtrCEventKeyCollectionDoc getEventKeyCollection() const; /// Accessor for the Statistics - SmartPtrCStatisticsDoc getStatistics() const { - return _statistics; - } + SmartPtrCStatisticsDoc getStatistics() const; private: bool _isInitialized; diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/ResponseDoc/CProviderResponseDoc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/ResponseDoc/CProviderResponseDoc.h index 84b8b5b76..8fd92b9c4 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/ResponseDoc/CProviderResponseDoc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/ResponseDoc/CProviderResponseDoc.h @@ -5,8 +5,6 @@ * Copyright (c) 2012 Vmware, Inc. All rights reserved. * -- VMware Confidential * - * This code was generated by the script "build/dev/codeGen/genCppDoc". Please - * speak to Brian W. before modifying it by hand. * */ @@ -16,13 +14,10 @@ namespace Caf { /// A simple container for objects of type ProviderResponse -class CProviderResponseDoc { +class RESPONSEDOC_LINKAGE CProviderResponseDoc { public: - CProviderResponseDoc() : - _clientId(CAFCOMMON_GUID_NULL), - _requestId(CAFCOMMON_GUID_NULL), - _isInitialized(false) {} - virtual ~CProviderResponseDoc() {} + CProviderResponseDoc(); + virtual ~CProviderResponseDoc(); public: /// Initializes the object with everything required by this @@ -35,55 +30,29 @@ public: const SmartPtrCResponseHeaderDoc responseHeader, const SmartPtrCManifestDoc manifest, const SmartPtrCAttachmentCollectionDoc attachmentCollection, - const SmartPtrCStatisticsDoc statistics) { - if (! _isInitialized) { - _clientId = clientId; - _requestId = requestId; - _pmeId = pmeId; - _responseHeader = responseHeader; - _manifest = manifest; - _attachmentCollection = attachmentCollection; - _statistics = statistics; - - _isInitialized = true; - } - } + const SmartPtrCStatisticsDoc statistics); public: /// Accessor for the ClientId - UUID getClientId() const { - return _clientId; - } + UUID getClientId() const; /// Accessor for the RequestId - UUID getRequestId() const { - return _requestId; - } + UUID getRequestId() const; /// Accessor for the PmeId - std::string getPmeId() const { - return _pmeId; - } + std::string getPmeId() const; /// Accessor for the ResponseHeader - SmartPtrCResponseHeaderDoc getResponseHeader() const { - return _responseHeader; - } + SmartPtrCResponseHeaderDoc getResponseHeader() const; /// Accessor for the Manifest - SmartPtrCManifestDoc getManifest() const { - return _manifest; - } + SmartPtrCManifestDoc getManifest() const; /// Accessor for the AttachmentCollection - SmartPtrCAttachmentCollectionDoc getAttachmentCollection() const { - return _attachmentCollection; - } + SmartPtrCAttachmentCollectionDoc getAttachmentCollection() const; /// Accessor for the Statistics - SmartPtrCStatisticsDoc getStatistics() const { - return _statistics; - } + SmartPtrCStatisticsDoc getStatistics() const; private: UUID _clientId; diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/ResponseDoc/CResponseDoc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/ResponseDoc/CResponseDoc.h index 79df7f1cc..929d978c6 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/ResponseDoc/CResponseDoc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/ResponseDoc/CResponseDoc.h @@ -5,8 +5,6 @@ * Copyright (c) 2012 Vmware, Inc. All rights reserved. * -- VMware Confidential * - * This code was generated by the script "build/dev/codeGen/genCppDoc". Please - * speak to Brian W. before modifying it by hand. * */ @@ -16,13 +14,10 @@ namespace Caf { /// A simple container for objects of type Response -class CResponseDoc { +class RESPONSEDOC_LINKAGE CResponseDoc { public: - CResponseDoc() : - _clientId(CAFCOMMON_GUID_NULL), - _requestId(CAFCOMMON_GUID_NULL), - _isInitialized(false) {} - virtual ~CResponseDoc() {} + CResponseDoc(); + virtual ~CResponseDoc(); public: /// Initializes the object with everything required by this @@ -35,55 +30,29 @@ public: const SmartPtrCResponseHeaderDoc responseHeader, const SmartPtrCManifestCollectionDoc manifestCollection, const SmartPtrCAttachmentCollectionDoc attachmentCollection, - const SmartPtrCStatisticsDoc statistics) { - if (! _isInitialized) { - _clientId = clientId; - _requestId = requestId; - _pmeId = pmeId; - _responseHeader = responseHeader; - _manifestCollection = manifestCollection; - _attachmentCollection = attachmentCollection; - _statistics = statistics; - - _isInitialized = true; - } - } + const SmartPtrCStatisticsDoc statistics); public: /// Accessor for the ClientId - UUID getClientId() const { - return _clientId; - } + UUID getClientId() const; /// Accessor for the RequestId - UUID getRequestId() const { - return _requestId; - } + UUID getRequestId() const; /// Accessor for the PmeId - std::string getPmeId() const { - return _pmeId; - } + std::string getPmeId() const; /// Accessor for the ManifestCollection - SmartPtrCResponseHeaderDoc getResponseHeader() const { - return _responseHeader; - } + SmartPtrCResponseHeaderDoc getResponseHeader() const; /// Accessor for the ManifestCollection - SmartPtrCManifestCollectionDoc getManifestCollection() const { - return _manifestCollection; - } + SmartPtrCManifestCollectionDoc getManifestCollection() const; /// Accessor for the AttachmentCollection - SmartPtrCAttachmentCollectionDoc getAttachmentCollection() const { - return _attachmentCollection; - } + SmartPtrCAttachmentCollectionDoc getAttachmentCollection() const; /// Accessor for the Statistics - SmartPtrCStatisticsDoc getStatistics() const { - return _statistics; - } + SmartPtrCStatisticsDoc getStatistics() const; private: UUID _clientId; diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/ResponseDoc/CResponseHeaderDoc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/ResponseDoc/CResponseHeaderDoc.h index 4e9655d96..fa679fd3a 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/ResponseDoc/CResponseHeaderDoc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/ResponseDoc/CResponseHeaderDoc.h @@ -5,8 +5,6 @@ * Copyright (c) 2012 Vmware, Inc. All rights reserved. * -- VMware Confidential * - * This code was generated by the script "build/dev/codeGen/genCppDoc". Please - * speak to Brian W. before modifying it by hand. * */ @@ -16,14 +14,10 @@ namespace Caf { /// A simple container for objects of type ResponseHeader -class CResponseHeaderDoc { +class RESPONSEDOC_LINKAGE CResponseHeaderDoc { public: - CResponseHeaderDoc() : - _sequenceNumber(0), - _isFinalResponse(true), - _sessionId(CAFCOMMON_GUID_NULL), - _isInitialized(false) {} - virtual ~CResponseHeaderDoc() {} + CResponseHeaderDoc(); + virtual ~CResponseHeaderDoc(); public: /// Initializes the object with everything required by this @@ -34,43 +28,23 @@ public: const std::string createdDateTime = CDateTimeUtils::getCurrentDateTime(), const uint32 sequenceNumber = 0, const bool isFinalResponse = true, - const UUID sessionId = CAFCOMMON_GUID_NULL) { - if (! _isInitialized) { - _version = version; - _createdDateTime = createdDateTime; - _sequenceNumber = sequenceNumber; - _isFinalResponse = isFinalResponse; - _sessionId = sessionId; - - _isInitialized = true; - } - } + const UUID sessionId = CAFCOMMON_GUID_NULL); public: /// Accessor for the version - std::string getVersion() const { - return _version; - } + std::string getVersion() const; /// Accessor for the date/time when the request was created - std::string getCreatedDateTime() const { - return _createdDateTime; - } + std::string getCreatedDateTime() const; /// Accessor for the sequenceNumber - uint32 getSequenceNumber() const { - return _sequenceNumber; - } + uint32 getSequenceNumber() const; /// Accessor for the version - bool getIsFinalResponse() const { - return _isFinalResponse; - } + bool getIsFinalResponse() const; /// Accessor for the session ID - UUID getSessionId() const { - return _sessionId; - } + UUID getSessionId() const; private: std::string _version; diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/ResponseDoc/ResponseDocLink.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/ResponseDoc/ResponseDocLink.h new file mode 100644 index 000000000..ed44a1f35 --- /dev/null +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/ResponseDoc/ResponseDocLink.h @@ -0,0 +1,27 @@ +/* + * Author: bwilliams + * Created: February 25, 2016 + * + * Copyright (c) 2016 Vmware, Inc. All rights reserved. + * -- VMware Confidential + * + */ + +#ifndef ResponseDoc_Link_h_ +#define ResponseDoc_Link_h_ + +#ifndef RESPONSEDOC_LINKAGE + #ifdef WIN32 + #ifdef FRAMEWORK_BUILD + #define RESPONSEDOC_LINKAGE __declspec(dllexport) + #else + #define RESPONSEDOC_LINKAGE __declspec(dllimport) + #endif + #else + #define RESPONSEDOC_LINKAGE + #endif +#endif + +#include "Doc/ResponseDoc/ResponseDocInc.h" + +#endif /* ResponseDoc_Link_h_ */ diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/SchemaTypesDoc/CActionClassDoc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/SchemaTypesDoc/CActionClassDoc.h index 4a3e71142..8daee30e8 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/SchemaTypesDoc/CActionClassDoc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/SchemaTypesDoc/CActionClassDoc.h @@ -5,8 +5,6 @@ * Copyright (c) 2012 Vmware, Inc. All rights reserved. * -- VMware Confidential * - * This code was generated by the script "build/dev/codeGen/genCppDoc". Please - * speak to Brian W. before modifying it by hand. * */ @@ -16,11 +14,10 @@ namespace Caf { /// Definition of an action class that may be generated by the provider -class CActionClassDoc { +class SCHEMATYPESDOC_LINKAGE CActionClassDoc { public: - CActionClassDoc() : - _isInitialized(false) {} - virtual ~CActionClassDoc() {} + CActionClassDoc(); + virtual ~CActionClassDoc(); public: /// Initializes the object with everything required by this @@ -33,55 +30,29 @@ public: const SmartPtrCCollectMethodDoc collectMethod, const std::deque methodCollection, const std::string displayName = std::string(), - const std::string description = std::string()) { - if (! _isInitialized) { - _namespaceVal = namespaceVal; - _name = name; - _version = version; - _collectMethod = collectMethod; - _methodCollection = methodCollection; - _displayName = displayName; - _description = description; - - _isInitialized = true; - } - } + const std::string description = std::string()); public: /// Accessor for the NamespaceVal - std::string getNamespaceVal() const { - return _namespaceVal; - } + std::string getNamespaceVal() const; /// Accessor for the Name - std::string getName() const { - return _name; - } + std::string getName() const; /// Accessor for the Version - std::string getVersion() const { - return _version; - } + std::string getVersion() const; /// Accessor for the CollectMethod - SmartPtrCCollectMethodDoc getCollectMethod() const { - return _collectMethod; - } + SmartPtrCCollectMethodDoc getCollectMethod() const; /// Accessor for the Method - std::deque getMethodCollection() const { - return _methodCollection; - } + std::deque getMethodCollection() const; /// A hint as to what this class should be called when displaying it to a human - std::string getDisplayName() const { - return _displayName; - } + std::string getDisplayName() const; /// A phrase to describe the class for mouse-over text, etc - std::string getDescription() const { - return _description; - } + std::string getDescription() const; private: bool _isInitialized; diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/SchemaTypesDoc/CActionClassInstanceCollectionDoc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/SchemaTypesDoc/CActionClassInstanceCollectionDoc.h index fc6ffcd8b..d15f61cee 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/SchemaTypesDoc/CActionClassInstanceCollectionDoc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/SchemaTypesDoc/CActionClassInstanceCollectionDoc.h @@ -5,8 +5,6 @@ * Copyright (c) 2012 Vmware, Inc. All rights reserved. * -- VMware Confidential * - * This code was generated by the script "build/dev/codeGen/genCppDoc". Please - * speak to Brian W. before modifying it by hand. * */ @@ -16,30 +14,21 @@ namespace Caf { /// A simple container for objects of type ActionClassInstanceCollection -class CActionClassInstanceCollectionDoc { +class SCHEMATYPESDOC_LINKAGE CActionClassInstanceCollectionDoc { public: - CActionClassInstanceCollectionDoc() : - _isInitialized(false) {} - virtual ~CActionClassInstanceCollectionDoc() {} + CActionClassInstanceCollectionDoc(); + virtual ~CActionClassInstanceCollectionDoc(); public: /// Initializes the object with everything required by this /// container. Once initialized, this object cannot /// be changed (i.e. it is immutable). void initialize( - const std::deque actionClassInstanceCollection) { - if (! _isInitialized) { - _actionClassInstanceCollection = actionClassInstanceCollection; - - _isInitialized = true; - } - } + const std::deque actionClassInstanceCollection); public: /// Accessor for the ActionClassInstance - std::deque getActionClassInstanceCollection() const { - return _actionClassInstanceCollection; - } + std::deque getActionClassInstanceCollection() const; private: bool _isInitialized; diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/SchemaTypesDoc/CActionClassInstanceDoc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/SchemaTypesDoc/CActionClassInstanceDoc.h index f0641ea0b..959f7a83c 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/SchemaTypesDoc/CActionClassInstanceDoc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/SchemaTypesDoc/CActionClassInstanceDoc.h @@ -5,8 +5,6 @@ * Copyright (c) 2012 Vmware, Inc. All rights reserved. * -- VMware Confidential * - * This code was generated by the script "build/dev/codeGen/genCppDoc". Please - * speak to Brian W. before modifying it by hand. * */ @@ -16,11 +14,10 @@ namespace Caf { /// A simple container for objects of type ActionClassInstance -class CActionClassInstanceDoc { +class SCHEMATYPESDOC_LINKAGE CActionClassInstanceDoc { public: - CActionClassInstanceDoc() : - _isInitialized(false) {} - virtual ~CActionClassInstanceDoc() {} + CActionClassInstanceDoc(); + virtual ~CActionClassInstanceDoc(); public: /// Initializes the object with everything required by this @@ -30,37 +27,20 @@ public: const std::string namespaceVal, const std::string name, const std::string version, - const SmartPtrCInstanceOperationCollectionDoc instanceOperationCollection) { - if (! _isInitialized) { - _namespaceVal = namespaceVal; - _name = name; - _version = version; - _instanceOperationCollection = instanceOperationCollection; - - _isInitialized = true; - } - } + const SmartPtrCInstanceOperationCollectionDoc instanceOperationCollection); public: /// Accessor for the NamespaceVal - std::string getNamespaceVal() const { - return _namespaceVal; - } + std::string getNamespaceVal() const; /// Accessor for the Name - std::string getName() const { - return _name; - } + std::string getName() const; /// Accessor for the Version - std::string getVersion() const { - return _version; - } + std::string getVersion() const; /// Accessor for the InstanceOperationCollection - SmartPtrCInstanceOperationCollectionDoc getInstanceOperationCollection() const { - return _instanceOperationCollection; - } + SmartPtrCInstanceOperationCollectionDoc getInstanceOperationCollection() const; private: bool _isInitialized; diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/SchemaTypesDoc/CClassCardinalityDoc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/SchemaTypesDoc/CClassCardinalityDoc.h index 10d37b2bb..31df655da 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/SchemaTypesDoc/CClassCardinalityDoc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/SchemaTypesDoc/CClassCardinalityDoc.h @@ -5,8 +5,6 @@ * Copyright (c) 2012 Vmware, Inc. All rights reserved. * -- VMware Confidential * - * This code was generated by the script "build/dev/codeGen/genCppDoc". Please - * speak to Brian W. before modifying it by hand. * */ @@ -16,11 +14,10 @@ namespace Caf { /// Class description of one end of a relationship -class CClassCardinalityDoc { +class SCHEMATYPESDOC_LINKAGE CClassCardinalityDoc { public: - CClassCardinalityDoc() : - _isInitialized(false) {} - virtual ~CClassCardinalityDoc() {} + CClassCardinalityDoc(); + virtual ~CClassCardinalityDoc(); public: /// Initializes the object with everything required by this @@ -30,37 +27,20 @@ public: const std::string namespaceVal, const std::string name, const std::string version, - const std::string cardinality) { - if (! _isInitialized) { - _namespaceVal = namespaceVal; - _name = name; - _version = version; - _cardinality = cardinality; - - _isInitialized = true; - } - } + const std::string cardinality); public: /// Accessor for the NamespaceVal - std::string getNamespaceVal() const { - return _namespaceVal; - } + std::string getNamespaceVal() const; /// Accessor for the Name - std::string getName() const { - return _name; - } + std::string getName() const; /// Accessor for the Version - std::string getVersion() const { - return _version; - } + std::string getVersion() const; /// Cardinality of one end relationship, i.e. has one, has many, etc - std::string getCardinality() const { - return _cardinality; - } + std::string getCardinality() const; private: bool _isInitialized; diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/SchemaTypesDoc/CClassFieldDoc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/SchemaTypesDoc/CClassFieldDoc.h index 47752eb52..5c1fca9f6 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/SchemaTypesDoc/CClassFieldDoc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/SchemaTypesDoc/CClassFieldDoc.h @@ -5,8 +5,6 @@ * Copyright (c) 2012 Vmware, Inc. All rights reserved. * -- VMware Confidential * - * This code was generated by the script "build/dev/codeGen/genCppDoc". Please - * speak to Brian W. before modifying it by hand. * */ @@ -16,11 +14,10 @@ namespace Caf { /// Description of a class and the field used to identify one end of a relationship -class CClassFieldDoc { +class SCHEMATYPESDOC_LINKAGE CClassFieldDoc { public: - CClassFieldDoc() : - _isInitialized(false) {} - virtual ~CClassFieldDoc() {} + CClassFieldDoc(); + virtual ~CClassFieldDoc(); public: /// Initializes the object with everything required by this @@ -30,37 +27,20 @@ public: const std::string namespaceVal, const std::string name, const std::string version, - const std::string field) { - if (! _isInitialized) { - _namespaceVal = namespaceVal; - _name = name; - _version = version; - _field = field; - - _isInitialized = true; - } - } + const std::string field); public: /// Accessor for the NamespaceVal - std::string getNamespaceVal() const { - return _namespaceVal; - } + std::string getNamespaceVal() const; /// Accessor for the Name - std::string getName() const { - return _name; - } + std::string getName() const; /// Accessor for the Version - std::string getVersion() const { - return _version; - } + std::string getVersion() const; /// Description of a class field used to identify one end of a relationship - std::string getField() const { - return _field; - } + std::string getField() const; private: bool _isInitialized; diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/SchemaTypesDoc/CClassIdentifierDoc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/SchemaTypesDoc/CClassIdentifierDoc.h index 7764f0260..d48574ac9 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/SchemaTypesDoc/CClassIdentifierDoc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/SchemaTypesDoc/CClassIdentifierDoc.h @@ -5,8 +5,6 @@ * Copyright (c) 2012 Vmware, Inc. All rights reserved. * -- VMware Confidential * - * This code was generated by the script "build/dev/codeGen/genCppDoc". Please - * speak to Brian W. before modifying it by hand. * */ @@ -16,11 +14,10 @@ namespace Caf { /// Tuple of values to uniquely identify a class -class CClassIdentifierDoc { +class SCHEMATYPESDOC_LINKAGE CClassIdentifierDoc { public: - CClassIdentifierDoc() : - _isInitialized(false) {} - virtual ~CClassIdentifierDoc() {} + CClassIdentifierDoc(); + virtual ~CClassIdentifierDoc(); public: /// Initializes the object with everything required by this @@ -29,31 +26,17 @@ public: void initialize( const std::string namespaceVal, const std::string name, - const std::string version) { - if (! _isInitialized) { - _namespaceVal = namespaceVal; - _name = name; - _version = version; - - _isInitialized = true; - } - } + const std::string version); public: /// Accessor for the NamespaceVal - std::string getNamespaceVal() const { - return _namespaceVal; - } + std::string getNamespaceVal() const; /// Accessor for the Name - std::string getName() const { - return _name; - } + std::string getName() const; /// Accessor for the Version - std::string getVersion() const { - return _version; - } + std::string getVersion() const; private: bool _isInitialized; diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/SchemaTypesDoc/CClassInstancePropertyDoc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/SchemaTypesDoc/CClassInstancePropertyDoc.h index dd68090a9..52f501dc5 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/SchemaTypesDoc/CClassInstancePropertyDoc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/SchemaTypesDoc/CClassInstancePropertyDoc.h @@ -5,8 +5,6 @@ * Copyright (c) 2012 Vmware, Inc. All rights reserved. * -- VMware Confidential * - * This code was generated by the script "build/dev/codeGen/genCppDoc". Please - * speak to Brian W. before modifying it by hand. * */ @@ -16,14 +14,10 @@ namespace Caf { /// Definition of an attribute (field) of a class -class CClassInstancePropertyDoc { +class SCHEMATYPESDOC_LINKAGE CClassInstancePropertyDoc { public: - CClassInstancePropertyDoc() : - _required(false), - _transientVal(false), - _list(false), - _isInitialized(false) {} - virtual ~CClassInstancePropertyDoc() {} + CClassInstancePropertyDoc(); + virtual ~CClassInstancePropertyDoc(); public: /// Initializes the object with everything required by this @@ -36,55 +30,29 @@ public: const bool transientVal = false, const bool list = false, const std::string displayName = std::string(), - const std::string description = std::string()) { - if (! _isInitialized) { - _name = name; - _type = type; - _required = required; - _transientVal = transientVal; - _list = list; - _displayName = displayName; - _description = description; - - _isInitialized = true; - } - } + const std::string description = std::string()); public: /// Property name - std::string getName() const { - return _name; - } + std::string getName() const; /// Accessor for the Type - std::deque getType() const { - return _type; - } + std::deque getType() const; /// Whether this is a required property, i.e. this property must always be non-empty - bool getRequired() const { - return _required; - } + bool getRequired() const; /// Accessor for the TransientVal - bool getTransientVal() const { - return _transientVal; - } + bool getTransientVal() const; /// Indicates whether to expect a list of properties in the provider response - bool getList() const { - return _list; - } + bool getList() const; /// A hint as to what this property should be called when displaying it to a human - std::string getDisplayName() const { - return _displayName; - } + std::string getDisplayName() const; /// A phrase to describe the property for mouse-over text, etc - std::string getDescription() const { - return _description; - } + std::string getDescription() const; private: std::string _name; diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/SchemaTypesDoc/CClassPropertyDoc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/SchemaTypesDoc/CClassPropertyDoc.h index b3058e290..b45b40684 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/SchemaTypesDoc/CClassPropertyDoc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/SchemaTypesDoc/CClassPropertyDoc.h @@ -5,8 +5,6 @@ * Copyright (c) 2012 Vmware, Inc. All rights reserved. * -- VMware Confidential * - * This code was generated by the script "build/dev/codeGen/genCppDoc". Please - * speak to Brian W. before modifying it by hand. * */ @@ -16,18 +14,10 @@ namespace Caf { /// Definition of an attribute (field) of a class -class CClassPropertyDoc { +class SCHEMATYPESDOC_LINKAGE CClassPropertyDoc { public: - CClassPropertyDoc() : - _type(PROPERTY_NONE), - _required(false), - _key(false), - _list(false), - _caseSensitive(false), - _transientVal(false), - _validator(VALIDATOR_NONE), - _isInitialized(false) {} - virtual ~CClassPropertyDoc() {} + CClassPropertyDoc(); + virtual ~CClassPropertyDoc(); public: /// Initializes the object with everything required by this @@ -47,97 +37,50 @@ public: const std::string upperRange = std::string(), const std::string lowerRange = std::string(), const std::string displayName = std::string(), - const std::string description = std::string()) { - if (! _isInitialized) { - _name = name; - _type = type; - _value = value; - _required = required; - _key = key; - _list = list; - _caseSensitive = caseSensitive; - _transientVal = transientVal; - _defaultVal = defaultVal; - _validator = validator; - _upperRange = upperRange; - _lowerRange = lowerRange; - _displayName = displayName; - _description = description; - - _isInitialized = true; - } - } + const std::string description = std::string()); public: /// Property name - std::string getName() const { - return _name; - } + std::string getName() const; /// Describes the data type of the property - PROPERTY_TYPE getType() const { - return _type; - } + PROPERTY_TYPE getType() const; /// The contents of a validator used on this property - std::deque getValue() const { - return _value; - } + std::deque getValue() const; /// Whether this is a required property, i.e. this property must always be non-empty - bool getRequired() const { - return _required; - } + bool getRequired() const; /// Indicates this property may be used as a key identifying field - bool getKey() const { - return _key; - } + bool getKey() const; /// Indicates whether to expect a list of properties in the provider response - bool getList() const { - return _list; - } + bool getList() const; /// Indicates whether a string field should be treated in a case-sensitive manner - bool getCaseSensitive() const { - return _caseSensitive; - } + bool getCaseSensitive() const; /// Accessor for the TransientVal - bool getTransientVal() const { - return _transientVal; - } + bool getTransientVal() const; /// Accessor for the DefaultVal - std::string getDefaultVal() const { - return _defaultVal; - } + std::string getDefaultVal() const; /// The type of validator described in the 'value' sub-elements - VALIDATOR_TYPE getValidator() const { - return _validator; - } + VALIDATOR_TYPE getValidator() const; /// If a 'range' validator is in use, this describes the upper limit of allowable values for the property. QUESTIONABLE: how do we determine inclusive or exclusive range - std::string getUpperRange() const { - return _upperRange; - } + std::string getUpperRange() const; /// If a 'range' validator is in use, this describes the lower limit of allowable values for the property. QUESTIONABLE: how do we determine inclusive or exclusive range - std::string getLowerRange() const { - return _lowerRange; - } + std::string getLowerRange() const; /// A hint as to what this property should be called when displaying it to a human - std::string getDisplayName() const { - return _displayName; - } + std::string getDisplayName() const; /// A phrase to describe the property for mouse-over text, etc - std::string getDescription() const { - return _description; - } + std::string getDescription() const; private: std::string _name; diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/SchemaTypesDoc/CCmdlMetadataDoc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/SchemaTypesDoc/CCmdlMetadataDoc.h index 8b05cdd57..2ca02085c 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/SchemaTypesDoc/CCmdlMetadataDoc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/SchemaTypesDoc/CCmdlMetadataDoc.h @@ -5,8 +5,6 @@ * Copyright (c) 2012 Vmware, Inc. All rights reserved. * -- VMware Confidential * - * This code was generated by the script "build/dev/codeGen/genCppDoc". Please - * speak to Brian W. before modifying it by hand. * */ @@ -16,11 +14,10 @@ namespace Caf { /// A simple container for objects of type CmdlMetadata -class CCmdlMetadataDoc { +class SCHEMATYPESDOC_LINKAGE CCmdlMetadataDoc { public: - CCmdlMetadataDoc() : - _isInitialized(false) {} - virtual ~CCmdlMetadataDoc() {} + CCmdlMetadataDoc(); + virtual ~CCmdlMetadataDoc(); public: /// Initializes the object with everything required by this @@ -28,25 +25,14 @@ public: /// be changed (i.e. it is immutable). void initialize( const std::string name, - const std::string value) { - if (! _isInitialized) { - _name = name; - _value = value; - - _isInitialized = true; - } - } + const std::string value); public: /// Accessor for the Name - std::string getName() const { - return _name; - } + std::string getName() const; /// Accessor for the Value - std::string getValue() const { - return _value; - } + std::string getValue() const; private: bool _isInitialized; diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/SchemaTypesDoc/CCmdlUnionDoc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/SchemaTypesDoc/CCmdlUnionDoc.h index b6d22c637..c5e1a2af4 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/SchemaTypesDoc/CCmdlUnionDoc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/SchemaTypesDoc/CCmdlUnionDoc.h @@ -5,8 +5,6 @@ * Copyright (c) 2012 Vmware, Inc. All rights reserved. * -- VMware Confidential * - * This code was generated by the script "build/dev/codeGen/genCppDoc". Please - * speak to Brian W. before modifying it by hand. * */ @@ -16,11 +14,10 @@ namespace Caf { /// A simple container for objects of type CmdlUnion -class CCmdlUnionDoc { +class SCHEMATYPESDOC_LINKAGE CCmdlUnionDoc { public: - CCmdlUnionDoc() : - _isInitialized(false) {} - virtual ~CCmdlUnionDoc() {} + CCmdlUnionDoc(); + virtual ~CCmdlUnionDoc(); public: /// Initializes the object with everything required by this @@ -29,31 +26,17 @@ public: void initialize( const std::string namespaceVal, const std::string name, - const std::string version) { - if (! _isInitialized) { - _namespaceVal = namespaceVal; - _name = name; - _version = version; - - _isInitialized = true; - } - } + const std::string version); public: /// Accessor for the NamespaceVal - std::string getNamespaceVal() const { - return _namespaceVal; - } + std::string getNamespaceVal() const; /// Accessor for the Name - std::string getName() const { - return _name; - } + std::string getName() const; /// Accessor for the Version - std::string getVersion() const { - return _version; - } + std::string getVersion() const; private: bool _isInitialized; diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/SchemaTypesDoc/CCollectMethodDoc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/SchemaTypesDoc/CCollectMethodDoc.h index df9d238d3..4b04fb2ed 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/SchemaTypesDoc/CCollectMethodDoc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/SchemaTypesDoc/CCollectMethodDoc.h @@ -5,8 +5,6 @@ * Copyright (c) 2012 Vmware, Inc. All rights reserved. * -- VMware Confidential * - * This code was generated by the script "build/dev/codeGen/genCppDoc". Please - * speak to Brian W. before modifying it by hand. * */ @@ -16,11 +14,10 @@ namespace Caf { /// Definition of a collection method on a class -class CCollectMethodDoc { +class SCHEMATYPESDOC_LINKAGE CCollectMethodDoc { public: - CCollectMethodDoc() : - _isInitialized(false) {} - virtual ~CCollectMethodDoc() {} + CCollectMethodDoc(); + virtual ~CCollectMethodDoc(); public: /// Initializes the object with everything required by this @@ -32,49 +29,26 @@ public: const std::deque instanceParameterCollection = std::deque(), const std::deque returnValCollection = std::deque(), const std::deque eventValCollection = std::deque(), - const std::deque errorCollection = std::deque()) { - if (! _isInitialized) { - _name = name; - _parameterCollection = parameterCollection; - _instanceParameterCollection = instanceParameterCollection; - _returnValCollection = returnValCollection; - _eventValCollection = eventValCollection; - _errorCollection = errorCollection; - - _isInitialized = true; - } - } + const std::deque errorCollection = std::deque()); public: /// name of the collection method - std::string getName() const { - return _name; - } + std::string getName() const; /// Definition of a parameter that passes simple types to the collection method - std::deque getParameterCollection() const { - return _parameterCollection; - } + std::deque getParameterCollection() const; /// Definition of a parameter passing data class instances to the collection method - std::deque getInstanceParameterCollection() const { - return _instanceParameterCollection; - } + std::deque getInstanceParameterCollection() const; /// Accessor for the ReturnVal - std::deque getReturnValCollection() const { - return _returnValCollection; - } + std::deque getReturnValCollection() const; /// Accessor for the EventVal - std::deque getEventValCollection() const { - return _eventValCollection; - } + std::deque getEventValCollection() const; /// A class that may be returned to indicate an error occurred during the processing of the collection method - std::deque getErrorCollection() const { - return _errorCollection; - } + std::deque getErrorCollection() const; private: bool _isInitialized; diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/SchemaTypesDoc/CDataClassDoc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/SchemaTypesDoc/CDataClassDoc.h index ace402e80..f0faaa798 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/SchemaTypesDoc/CDataClassDoc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/SchemaTypesDoc/CDataClassDoc.h @@ -5,8 +5,6 @@ * Copyright (c) 2012 Vmware, Inc. All rights reserved. * -- VMware Confidential * - * This code was generated by the script "build/dev/codeGen/genCppDoc". Please - * speak to Brian W. before modifying it by hand. * */ @@ -16,13 +14,10 @@ namespace Caf { /// Definition of a data class that may be generated by the provider -class CDataClassDoc { +class SCHEMATYPESDOC_LINKAGE CDataClassDoc { public: - CDataClassDoc() : - _unique(false), - _transientVal(false), - _isInitialized(false) {} - virtual ~CDataClassDoc() {} + CDataClassDoc(); + virtual ~CDataClassDoc(); public: /// Initializes the object with everything required by this @@ -37,67 +32,35 @@ public: const bool unique = false, const bool transientVal = false, const std::string displayName = std::string(), - const std::string description = std::string()) { - if (! _isInitialized) { - _namespaceVal = namespaceVal; - _name = name; - _version = version; - _propertyCollection = propertyCollection; - _instancePropertyCollection = instancePropertyCollection; - _unique = unique; - _transientVal = transientVal; - _displayName = displayName; - _description = description; - - _isInitialized = true; - } - } + const std::string description = std::string()); public: /// Accessor for the NamespaceVal - std::string getNamespaceVal() const { - return _namespaceVal; - } + std::string getNamespaceVal() const; /// Accessor for the Name - std::string getName() const { - return _name; - } + std::string getName() const; /// Accessor for the Version - std::string getVersion() const { - return _version; - } + std::string getVersion() const; /// Accessor for the Property - std::deque getPropertyCollection() const { - return _propertyCollection; - } + std::deque getPropertyCollection() const; /// Accessor for the InstanceProperty - std::deque getInstancePropertyCollection() const { - return _instancePropertyCollection; - } + std::deque getInstancePropertyCollection() const; /// Indicates whether the key properties of this class are enough to guarantee uniqueness from other classes of the same type - bool getUnique() const { - return _unique; - } + bool getUnique() const; /// Accessor for the TransientVal - bool getTransientVal() const { - return _transientVal; - } + bool getTransientVal() const; /// A hint as to what this class should be called when displaying it to a human - std::string getDisplayName() const { - return _displayName; - } + std::string getDisplayName() const; /// A phrase to describe the class for mouse-over text, etc - std::string getDescription() const { - return _description; - } + std::string getDescription() const; private: std::string _namespaceVal; diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/SchemaTypesDoc/CDataClassInstanceCollectionDoc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/SchemaTypesDoc/CDataClassInstanceCollectionDoc.h index ed360f873..2c73410f0 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/SchemaTypesDoc/CDataClassInstanceCollectionDoc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/SchemaTypesDoc/CDataClassInstanceCollectionDoc.h @@ -5,8 +5,6 @@ * Copyright (c) 2012 Vmware, Inc. All rights reserved. * -- VMware Confidential * - * This code was generated by the script "build/dev/codeGen/genCppDoc". Please - * speak to Brian W. before modifying it by hand. * */ @@ -16,30 +14,21 @@ namespace Caf { /// A simple container for objects of type DataClassInstanceCollection -class CDataClassInstanceCollectionDoc { +class SCHEMATYPESDOC_LINKAGE CDataClassInstanceCollectionDoc { public: - CDataClassInstanceCollectionDoc() : - _isInitialized(false) {} - virtual ~CDataClassInstanceCollectionDoc() {} + CDataClassInstanceCollectionDoc(); + virtual ~CDataClassInstanceCollectionDoc(); public: /// Initializes the object with everything required by this /// container. Once initialized, this object cannot /// be changed (i.e. it is immutable). void initialize( - const std::deque dataClassInstanceCollection = std::deque()) { - if (! _isInitialized) { - _dataClassInstanceCollection = dataClassInstanceCollection; - - _isInitialized = true; - } - } + const std::deque dataClassInstanceCollection = std::deque()); public: /// Accessor for the DataClassInstance - std::deque getDataClassInstanceCollection() const { - return _dataClassInstanceCollection; - } + std::deque getDataClassInstanceCollection() const; private: bool _isInitialized; diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/SchemaTypesDoc/CDataClassInstanceDoc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/SchemaTypesDoc/CDataClassInstanceDoc.h index 72c187904..ea22616cd 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/SchemaTypesDoc/CDataClassInstanceDoc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/SchemaTypesDoc/CDataClassInstanceDoc.h @@ -5,8 +5,6 @@ * Copyright (c) 2012 Vmware, Inc. All rights reserved. * -- VMware Confidential * - * This code was generated by the script "build/dev/codeGen/genCppDoc". Please - * speak to Brian W. before modifying it by hand. * */ @@ -16,11 +14,10 @@ namespace Caf { /// A simple container for objects of type DataClassInstance -class CDataClassInstanceDoc { +class SCHEMATYPESDOC_LINKAGE CDataClassInstanceDoc { public: - CDataClassInstanceDoc() : - _isInitialized(false) {} - virtual ~CDataClassInstanceDoc() {} + CDataClassInstanceDoc(); + virtual ~CDataClassInstanceDoc(); public: /// Initializes the object with everything required by this @@ -33,55 +30,29 @@ public: const std::deque cmdlMetadataCollection, const std::deque propertyCollection, const std::deque instancePropertyCollection, - const SmartPtrCCmdlUnionDoc cmdlUnion) { - if (! _isInitialized) { - _namespaceVal = namespaceVal; - _name = name; - _version = version; - _cmdlMetadataCollection = cmdlMetadataCollection; - _propertyCollection = propertyCollection; - _instancePropertyCollection = instancePropertyCollection; - _cmdlUnion = cmdlUnion; - - _isInitialized = true; - } - } + const SmartPtrCCmdlUnionDoc cmdlUnion); public: /// Accessor for the NamespaceVal - std::string getNamespaceVal() const { - return _namespaceVal; - } + std::string getNamespaceVal() const; /// Accessor for the Name - std::string getName() const { - return _name; - } + std::string getName() const; /// Accessor for the Version - std::string getVersion() const { - return _version; - } + std::string getVersion() const; /// Accessor for the CmdlMetadata - std::deque getCmdlMetadataCollection() const { - return _cmdlMetadataCollection; - } + std::deque getCmdlMetadataCollection() const; /// Accessor for the Property - std::deque getPropertyCollection() const { - return _propertyCollection; - } + std::deque getPropertyCollection() const; /// Accessor for the InstanceProperty - std::deque getInstancePropertyCollection() const { - return _instancePropertyCollection; - } + std::deque getInstancePropertyCollection() const; /// Accessor for the CmdlUnion - SmartPtrCCmdlUnionDoc getCmdlUnion() const { - return _cmdlUnion; - } + SmartPtrCCmdlUnionDoc getCmdlUnion() const; private: bool _isInitialized; diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/SchemaTypesDoc/CDataClassPropertyDoc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/SchemaTypesDoc/CDataClassPropertyDoc.h index 4ba19082b..5b60c3107 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/SchemaTypesDoc/CDataClassPropertyDoc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/SchemaTypesDoc/CDataClassPropertyDoc.h @@ -5,8 +5,6 @@ * Copyright (c) 2012 Vmware, Inc. All rights reserved. * -- VMware Confidential * - * This code was generated by the script "build/dev/codeGen/genCppDoc". Please - * speak to Brian W. before modifying it by hand. * */ @@ -16,11 +14,10 @@ namespace Caf { /// A simple container for objects of type DataClassProperty -class CDataClassPropertyDoc { +class SCHEMATYPESDOC_LINKAGE CDataClassPropertyDoc { public: - CDataClassPropertyDoc() : - _isInitialized(false) {} - virtual ~CDataClassPropertyDoc() {} + CDataClassPropertyDoc(); + virtual ~CDataClassPropertyDoc(); public: /// Initializes the object with everything required by this @@ -29,31 +26,17 @@ public: void initialize( const std::string name, const std::deque cmdlMetadata, - const std::string value) { - if (! _isInitialized) { - _name = name; - _cmdlMetadata = cmdlMetadata; - _value = value; - - _isInitialized = true; - } - } + const std::string value); public: /// Accessor for the Name - std::string getName() const { - return _name; - } + std::string getName() const; /// Accessor for the CmdlMetadata - std::deque getCmdlMetadata() const { - return _cmdlMetadata; - } + std::deque getCmdlMetadata() const; /// Accessor for the Value - std::string getValue() const { - return _value; - } + std::string getValue() const; private: bool _isInitialized; diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/SchemaTypesDoc/CDataClassSubInstanceDoc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/SchemaTypesDoc/CDataClassSubInstanceDoc.h index b4137c9c2..3a04886fe 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/SchemaTypesDoc/CDataClassSubInstanceDoc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/SchemaTypesDoc/CDataClassSubInstanceDoc.h @@ -5,8 +5,6 @@ * Copyright (c) 2012 Vmware, Inc. All rights reserved. * -- VMware Confidential * - * This code was generated by the script "build/dev/codeGen/genCppDoc". Please - * speak to Brian W. before modifying it by hand. * */ @@ -16,11 +14,10 @@ namespace Caf { /// A simple container for objects of type DataClassSubInstance -class CDataClassSubInstanceDoc { +class SCHEMATYPESDOC_LINKAGE CDataClassSubInstanceDoc { public: - CDataClassSubInstanceDoc() : - _isInitialized(false) {} - virtual ~CDataClassSubInstanceDoc() {} + CDataClassSubInstanceDoc(); + virtual ~CDataClassSubInstanceDoc(); public: /// Initializes the object with everything required by this @@ -31,43 +28,23 @@ public: const std::deque cmdlMetadataCollection, const std::deque propertyCollection, const std::deque instancePropertyCollection, - const SmartPtrCCmdlUnionDoc cmdlUnion) { - if (! _isInitialized) { - _name = name; - _cmdlMetadataCollection = cmdlMetadataCollection; - _propertyCollection = propertyCollection; - _instancePropertyCollection = instancePropertyCollection; - _cmdlUnion = cmdlUnion; - - _isInitialized = true; - } - } + const SmartPtrCCmdlUnionDoc cmdlUnion); public: /// Accessor for the Name - std::string getName() const { - return _name; - } + std::string getName() const; /// Accessor for the CmdlMetadata - std::deque getCmdlMetadataCollection() const { - return _cmdlMetadataCollection; - } + std::deque getCmdlMetadataCollection() const; /// Accessor for the Property - std::deque getPropertyCollection() const { - return _propertyCollection; - } + std::deque getPropertyCollection() const; /// Accessor for the InstanceProperty - std::deque getInstancePropertyCollection() const { - return _instancePropertyCollection; - } + std::deque getInstancePropertyCollection() const; /// Accessor for the CmdlUnion - SmartPtrCCmdlUnionDoc getCmdlUnion() const { - return _cmdlUnion; - } + SmartPtrCCmdlUnionDoc getCmdlUnion() const; private: bool _isInitialized; diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/SchemaTypesDoc/CInstanceOperationCollectionDoc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/SchemaTypesDoc/CInstanceOperationCollectionDoc.h index 5309585dd..af0d6e2e1 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/SchemaTypesDoc/CInstanceOperationCollectionDoc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/SchemaTypesDoc/CInstanceOperationCollectionDoc.h @@ -5,8 +5,6 @@ * Copyright (c) 2012 Vmware, Inc. All rights reserved. * -- VMware Confidential * - * This code was generated by the script "build/dev/codeGen/genCppDoc". Please - * speak to Brian W. before modifying it by hand. * */ @@ -16,30 +14,21 @@ namespace Caf { /// A simple container for objects of type InstanceOperationCollection -class CInstanceOperationCollectionDoc { +class SCHEMATYPESDOC_LINKAGE CInstanceOperationCollectionDoc { public: - CInstanceOperationCollectionDoc() : - _isInitialized(false) {} - virtual ~CInstanceOperationCollectionDoc() {} + CInstanceOperationCollectionDoc(); + virtual ~CInstanceOperationCollectionDoc(); public: /// Initializes the object with everything required by this /// container. Once initialized, this object cannot /// be changed (i.e. it is immutable). void initialize( - const std::deque instanceOperationCollection) { - if (! _isInitialized) { - _instanceOperationCollection = instanceOperationCollection; - - _isInitialized = true; - } - } + const std::deque instanceOperationCollection); public: /// Accessor for the InstanceOperation - std::deque getInstanceOperationCollection() const { - return _instanceOperationCollection; - } + std::deque getInstanceOperationCollection() const; private: bool _isInitialized; diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/SchemaTypesDoc/CInstanceOperationDoc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/SchemaTypesDoc/CInstanceOperationDoc.h index d65004590..e3af760a4 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/SchemaTypesDoc/CInstanceOperationDoc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/SchemaTypesDoc/CInstanceOperationDoc.h @@ -5,8 +5,6 @@ * Copyright (c) 2012 Vmware, Inc. All rights reserved. * -- VMware Confidential * - * This code was generated by the script "build/dev/codeGen/genCppDoc". Please - * speak to Brian W. before modifying it by hand. * */ @@ -16,11 +14,10 @@ namespace Caf { /// A simple container for objects of type InstanceOperation -class CInstanceOperationDoc { +class SCHEMATYPESDOC_LINKAGE CInstanceOperationDoc { public: - CInstanceOperationDoc() : - _isInitialized(false) {} - virtual ~CInstanceOperationDoc() {} + CInstanceOperationDoc(); + virtual ~CInstanceOperationDoc(); public: /// Initializes the object with everything required by this @@ -28,25 +25,14 @@ public: /// be changed (i.e. it is immutable). void initialize( const std::string operationName, - const std::string moniker) { - if (! _isInitialized) { - _operationName = operationName; - _moniker = moniker; - - _isInitialized = true; - } - } + const std::string moniker); public: /// Accessor for the OperationName - std::string getOperationName() const { - return _operationName; - } + std::string getOperationName() const; /// Accessor for the Moniker - std::string getMoniker() const { - return _moniker; - } + std::string getMoniker() const; private: bool _isInitialized; diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/SchemaTypesDoc/CInstanceParameterDoc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/SchemaTypesDoc/CInstanceParameterDoc.h index 241f2f160..4f76efcf2 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/SchemaTypesDoc/CInstanceParameterDoc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/SchemaTypesDoc/CInstanceParameterDoc.h @@ -5,8 +5,6 @@ * Copyright (c) 2012 Vmware, Inc. All rights reserved. * -- VMware Confidential * - * This code was generated by the script "build/dev/codeGen/genCppDoc". Please - * speak to Brian W. before modifying it by hand. * */ @@ -16,13 +14,10 @@ namespace Caf { /// A parameter containing a data class instance used by a method to control the outcome -class CInstanceParameterDoc { +class SCHEMATYPESDOC_LINKAGE CInstanceParameterDoc { public: - CInstanceParameterDoc() : - _isOptional(false), - _isList(false), - _isInitialized(false) {} - virtual ~CInstanceParameterDoc() {} + CInstanceParameterDoc(); + virtual ~CInstanceParameterDoc(); public: /// Initializes the object with everything required by this @@ -36,61 +31,32 @@ public: const bool isOptional = false, const bool isList = false, const std::string displayName = std::string(), - const std::string description = std::string()) { - if (! _isInitialized) { - _name = name; - _instanceNamespace = instanceNamespace; - _instanceName = instanceName; - _instanceVersion = instanceVersion; - _isOptional = isOptional; - _isList = isList; - _displayName = displayName; - _description = description; - - _isInitialized = true; - } - } + const std::string description = std::string()); public: /// Name of parameter - std::string getName() const { - return _name; - } + std::string getName() const; /// Namespace of instance object type - std::string getInstanceNamespace() const { - return _instanceNamespace; - } + std::string getInstanceNamespace() const; /// Name of instance object type - std::string getInstanceName() const { - return _instanceName; - } + std::string getInstanceName() const; /// Version of instance object type - std::string getInstanceVersion() const { - return _instanceVersion; - } + std::string getInstanceVersion() const; /// Indicates this parameter need not be passed - bool getIsOptional() const { - return _isOptional; - } + bool getIsOptional() const; /// Indicates whether to expect a list of values as opposed to a single value (the default if this attribute is not present) - bool getIsList() const { - return _isList; - } + bool getIsList() const; /// Human-readable version of the parameter name - std::string getDisplayName() const { - return _displayName; - } + std::string getDisplayName() const; /// Short description of what the parameter is for - std::string getDescription() const { - return _description; - } + std::string getDescription() const; private: std::string _name; diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/SchemaTypesDoc/CJoinTypeDoc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/SchemaTypesDoc/CJoinTypeDoc.h index da3c172d6..d7bb49d04 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/SchemaTypesDoc/CJoinTypeDoc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/SchemaTypesDoc/CJoinTypeDoc.h @@ -5,8 +5,6 @@ * Copyright (c) 2012 Vmware, Inc. All rights reserved. * -- VMware Confidential * - * This code was generated by the script "build/dev/codeGen/genCppDoc". Please - * speak to Brian W. before modifying it by hand. * */ @@ -16,12 +14,10 @@ namespace Caf { /// A simple container for objects of type JoinType -class CJoinTypeDoc { +class SCHEMATYPESDOC_LINKAGE CJoinTypeDoc { public: - CJoinTypeDoc() : - _operand(OPERATOR_NONE), - _isInitialized(false) {} - virtual ~CJoinTypeDoc() {} + CJoinTypeDoc(); + virtual ~CJoinTypeDoc(); public: /// Initializes the object with everything required by this @@ -31,37 +27,20 @@ public: const OPERATOR_TYPE operand, const SmartPtrCClassFieldDoc dataClassLeft, const SmartPtrCClassFieldDoc dataClassRight, - const std::string description) { - if (! _isInitialized) { - _operand = operand; - _dataClassLeft = dataClassLeft; - _dataClassRight = dataClassRight; - _description = description; - - _isInitialized = true; - } - } + const std::string description); public: /// Defines the operand used to join the class fields. Restricted to '=' for now - OPERATOR_TYPE getOperand() const { - return _operand; - } + OPERATOR_TYPE getOperand() const; /// Identifies the fields on classes that uniquely identify relationship - SmartPtrCClassFieldDoc getDataClassLeft() const { - return _dataClassLeft; - } + SmartPtrCClassFieldDoc getDataClassLeft() const; /// Identifies the fields on classes that uniquely identify relationship - SmartPtrCClassFieldDoc getDataClassRight() const { - return _dataClassRight; - } + SmartPtrCClassFieldDoc getDataClassRight() const; /// A short human-readable description of the join - std::string getDescription() const { - return _description; - } + std::string getDescription() const; private: OPERATOR_TYPE _operand; diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/SchemaTypesDoc/CLogicalRelationshipDoc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/SchemaTypesDoc/CLogicalRelationshipDoc.h index af3da625a..99e08b7f0 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/SchemaTypesDoc/CLogicalRelationshipDoc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/SchemaTypesDoc/CLogicalRelationshipDoc.h @@ -5,8 +5,6 @@ * Copyright (c) 2012 Vmware, Inc. All rights reserved. * -- VMware Confidential * - * This code was generated by the script "build/dev/codeGen/genCppDoc". Please - * speak to Brian W. before modifying it by hand. * */ @@ -16,12 +14,10 @@ namespace Caf { /// Definition of a relationship between classes that can be described by identifying the fields on the classes that uniquely identify the relationship -class CLogicalRelationshipDoc { +class SCHEMATYPESDOC_LINKAGE CLogicalRelationshipDoc { public: - CLogicalRelationshipDoc() : - _arity(ARITY_NONE), - _isInitialized(false) {} - virtual ~CLogicalRelationshipDoc() {} + CLogicalRelationshipDoc(); + virtual ~CLogicalRelationshipDoc(); public: /// Initializes the object with everything required by this @@ -35,61 +31,32 @@ public: const SmartPtrCClassCardinalityDoc dataClassLeft, const SmartPtrCClassCardinalityDoc dataClassRight, const std::deque joinCollection, - const std::string description = std::string()) { - if (! _isInitialized) { - _namespaceVal = namespaceVal; - _name = name; - _version = version; - _arity = arity; - _dataClassLeft = dataClassLeft; - _dataClassRight = dataClassRight; - _joinCollection = joinCollection; - _description = description; - - _isInitialized = true; - } - } + const std::string description = std::string()); public: /// Accessor for the NamespaceVal - std::string getNamespaceVal() const { - return _namespaceVal; - } + std::string getNamespaceVal() const; /// Accessor for the Name - std::string getName() const { - return _name; - } + std::string getName() const; /// Accessor for the Version - std::string getVersion() const { - return _version; - } + std::string getVersion() const; /// Accessor for the Arity - ARITY_TYPE getArity() const { - return _arity; - } + ARITY_TYPE getArity() const; /// Accessor for the DataClassLeft - SmartPtrCClassCardinalityDoc getDataClassLeft() const { - return _dataClassLeft; - } + SmartPtrCClassCardinalityDoc getDataClassLeft() const; /// Accessor for the DataClassRight - SmartPtrCClassCardinalityDoc getDataClassRight() const { - return _dataClassRight; - } + SmartPtrCClassCardinalityDoc getDataClassRight() const; /// Defines a join condition of the relationship - std::deque getJoinCollection() const { - return _joinCollection; - } + std::deque getJoinCollection() const; /// Accessor for the Description - std::string getDescription() const { - return _description; - } + std::string getDescription() const; private: std::string _namespaceVal; diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/SchemaTypesDoc/CMethodDoc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/SchemaTypesDoc/CMethodDoc.h index eeb0c200e..e429519ca 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/SchemaTypesDoc/CMethodDoc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/SchemaTypesDoc/CMethodDoc.h @@ -5,8 +5,6 @@ * Copyright (c) 2012 Vmware, Inc. All rights reserved. * -- VMware Confidential * - * This code was generated by the script "build/dev/codeGen/genCppDoc". Please - * speak to Brian W. before modifying it by hand. * */ @@ -16,11 +14,10 @@ namespace Caf { /// Definition of a method on a class -class CMethodDoc { +class SCHEMATYPESDOC_LINKAGE CMethodDoc { public: - CMethodDoc() : - _isInitialized(false) {} - virtual ~CMethodDoc() {} + CMethodDoc(); + virtual ~CMethodDoc(); public: /// Initializes the object with everything required by this @@ -34,61 +31,32 @@ public: const std::deque eventValCollection = std::deque(), const std::deque errorCollection = std::deque(), const std::string displayName = std::string(), - const std::string description = std::string()) { - if (! _isInitialized) { - _name = name; - _parameterCollection = parameterCollection; - _instanceParameterCollection = instanceParameterCollection; - _returnValCollection = returnValCollection; - _eventValCollection = eventValCollection; - _errorCollection = errorCollection; - _displayName = displayName; - _description = description; - - _isInitialized = true; - } - } + const std::string description = std::string()); public: /// name of the method - std::string getName() const { - return _name; - } + std::string getName() const; /// Definition of a parameter that passes simple types to the method - std::deque getParameterCollection() const { - return _parameterCollection; - } + std::deque getParameterCollection() const; /// Definition of a parameter that passes data class instances to the method - std::deque getInstanceParameterCollection() const { - return _instanceParameterCollection; - } + std::deque getInstanceParameterCollection() const; /// Accessor for the ReturnVal - std::deque getReturnValCollection() const { - return _returnValCollection; - } + std::deque getReturnValCollection() const; /// Accessor for the EventVal - std::deque getEventValCollection() const { - return _eventValCollection; - } + std::deque getEventValCollection() const; /// A class that may be returned to indicate an error occurred during the processing of the collection method - std::deque getErrorCollection() const { - return _errorCollection; - } + std::deque getErrorCollection() const; /// Human-readable version of the method name - std::string getDisplayName() const { - return _displayName; - } + std::string getDisplayName() const; /// A short phrase describing the purpose of the method - std::string getDescription() const { - return _description; - } + std::string getDescription() const; private: bool _isInitialized; diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/SchemaTypesDoc/CMethodParameterDoc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/SchemaTypesDoc/CMethodParameterDoc.h index a351cd0c0..bd4537e5f 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/SchemaTypesDoc/CMethodParameterDoc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/SchemaTypesDoc/CMethodParameterDoc.h @@ -5,8 +5,6 @@ * Copyright (c) 2012 Vmware, Inc. All rights reserved. * -- VMware Confidential * - * This code was generated by the script "build/dev/codeGen/genCppDoc". Please - * speak to Brian W. before modifying it by hand. * */ @@ -16,14 +14,10 @@ namespace Caf { /// A parameter containing a simple type used by a method to control the outcome -class CMethodParameterDoc { +class SCHEMATYPESDOC_LINKAGE CMethodParameterDoc { public: - CMethodParameterDoc() : - _type(PARAMETER_NONE), - _isOptional(false), - _isList(false), - _isInitialized(false) {} - virtual ~CMethodParameterDoc() {} + CMethodParameterDoc(); + virtual ~CMethodParameterDoc(); public: /// Initializes the object with everything required by this @@ -36,55 +30,29 @@ public: const bool isList = false, const std::string defaultVal = std::string(), const std::string displayName = std::string(), - const std::string description = std::string()) { - if (! _isInitialized) { - _name = name; - _type = type; - _isOptional = isOptional; - _isList = isList; - _defaultVal = defaultVal; - _displayName = displayName; - _description = description; - - _isInitialized = true; - } - } + const std::string description = std::string()); public: /// Name of parameter - std::string getName() const { - return _name; - } + std::string getName() const; /// Describes the data type of the property - PARAMETER_TYPE getType() const { - return _type; - } + PARAMETER_TYPE getType() const; /// Indicates this parameter need not be passed - bool getIsOptional() const { - return _isOptional; - } + bool getIsOptional() const; /// Indicates whether to expect a list of values as opposed to a single value (the default if this attribute is not present) - bool getIsList() const { - return _isList; - } + bool getIsList() const; /// Accessor for the DefaultVal - std::string getDefaultVal() const { - return _defaultVal; - } + std::string getDefaultVal() const; /// Human-readable version of the parameter name - std::string getDisplayName() const { - return _displayName; - } + std::string getDisplayName() const; /// Short description of what the parameter is for - std::string getDescription() const { - return _description; - } + std::string getDescription() const; private: std::string _name; diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/SchemaTypesDoc/CPhysicalRelationshipDoc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/SchemaTypesDoc/CPhysicalRelationshipDoc.h index 4f17e66e6..334ca9c95 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/SchemaTypesDoc/CPhysicalRelationshipDoc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/SchemaTypesDoc/CPhysicalRelationshipDoc.h @@ -5,8 +5,6 @@ * Copyright (c) 2012 Vmware, Inc. All rights reserved. * -- VMware Confidential * - * This code was generated by the script "build/dev/codeGen/genCppDoc". Please - * speak to Brian W. before modifying it by hand. * */ @@ -16,12 +14,10 @@ namespace Caf { /// Describes a relationship between dataclass where the key information from data class instances comprising the relationship are listed in an instance of this class -class CPhysicalRelationshipDoc { +class SCHEMATYPESDOC_LINKAGE CPhysicalRelationshipDoc { public: - CPhysicalRelationshipDoc() : - _arity(ARITY_NONE), - _isInitialized(false) {} - virtual ~CPhysicalRelationshipDoc() {} + CPhysicalRelationshipDoc(); + virtual ~CPhysicalRelationshipDoc(); public: /// Initializes the object with everything required by this @@ -34,55 +30,29 @@ public: const ARITY_TYPE arity, const SmartPtrCClassCardinalityDoc dataClassLeft, const SmartPtrCClassCardinalityDoc dataClassRight, - const std::string description = std::string()) { - if (! _isInitialized) { - _namespaceVal = namespaceVal; - _name = name; - _version = version; - _arity = arity; - _dataClassLeft = dataClassLeft; - _dataClassRight = dataClassRight; - _description = description; - - _isInitialized = true; - } - } + const std::string description = std::string()); public: /// Accessor for the NamespaceVal - std::string getNamespaceVal() const { - return _namespaceVal; - } + std::string getNamespaceVal() const; /// Accessor for the Name - std::string getName() const { - return _name; - } + std::string getName() const; /// Accessor for the Version - std::string getVersion() const { - return _version; - } + std::string getVersion() const; /// Accessor for the Arity - ARITY_TYPE getArity() const { - return _arity; - } + ARITY_TYPE getArity() const; /// Accessor for the DataClassLeft - SmartPtrCClassCardinalityDoc getDataClassLeft() const { - return _dataClassLeft; - } + SmartPtrCClassCardinalityDoc getDataClassLeft() const; /// Accessor for the DataClassRight - SmartPtrCClassCardinalityDoc getDataClassRight() const { - return _dataClassRight; - } + SmartPtrCClassCardinalityDoc getDataClassRight() const; /// Accessor for the Description - std::string getDescription() const { - return _description; - } + std::string getDescription() const; private: std::string _namespaceVal; diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/SchemaTypesDoc/CRelationshipDoc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/SchemaTypesDoc/CRelationshipDoc.h index c541ed2d2..56ff35c30 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/SchemaTypesDoc/CRelationshipDoc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/SchemaTypesDoc/CRelationshipDoc.h @@ -5,8 +5,6 @@ * Copyright (c) 2012 Vmware, Inc. All rights reserved. * -- VMware Confidential * - * This code was generated by the script "build/dev/codeGen/genCppDoc". Please - * speak to Brian W. before modifying it by hand. * */ @@ -16,12 +14,10 @@ namespace Caf { /// Definition of a relationship between data classes -class CRelationshipDoc { +class SCHEMATYPESDOC_LINKAGE CRelationshipDoc { public: - CRelationshipDoc() : - _arity(ARITY_NONE), - _isInitialized(false) {} - virtual ~CRelationshipDoc() {} + CRelationshipDoc(); + virtual ~CRelationshipDoc(); public: /// Initializes the object with everything required by this @@ -34,55 +30,29 @@ public: const ARITY_TYPE arity, const SmartPtrCClassCardinalityDoc dataClassLeft, const SmartPtrCClassCardinalityDoc dataClassRight, - const std::string description = std::string()) { - if (! _isInitialized) { - _namespaceVal = namespaceVal; - _name = name; - _version = version; - _arity = arity; - _dataClassLeft = dataClassLeft; - _dataClassRight = dataClassRight; - _description = description; - - _isInitialized = true; - } - } + const std::string description = std::string()); public: /// Accessor for the NamespaceVal - std::string getNamespaceVal() const { - return _namespaceVal; - } + std::string getNamespaceVal() const; /// Accessor for the Name - std::string getName() const { - return _name; - } + std::string getName() const; /// Accessor for the Version - std::string getVersion() const { - return _version; - } + std::string getVersion() const; /// Number of parts (sides) to relationship. Restricted to a two-sided relationship for now - ARITY_TYPE getArity() const { - return _arity; - } + ARITY_TYPE getArity() const; /// Identifies the two classes that make up the relationship - SmartPtrCClassCardinalityDoc getDataClassLeft() const { - return _dataClassLeft; - } + SmartPtrCClassCardinalityDoc getDataClassLeft() const; /// Identifies the two classes that make up the relationship - SmartPtrCClassCardinalityDoc getDataClassRight() const { - return _dataClassRight; - } + SmartPtrCClassCardinalityDoc getDataClassRight() const; /// A short human-readable description of the relationship - std::string getDescription() const { - return _description; - } + std::string getDescription() const; private: std::string _namespaceVal; diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/SchemaTypesDoc/SchemaTypesDocLink.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/SchemaTypesDoc/SchemaTypesDocLink.h new file mode 100644 index 000000000..ee6ce2c70 --- /dev/null +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Doc/SchemaTypesDoc/SchemaTypesDocLink.h @@ -0,0 +1,27 @@ +/* + * Author: bwilliams + * Created: February 25, 2016 + * + * Copyright (c) 2016 Vmware, Inc. All rights reserved. + * -- VMware Confidential + * + */ + +#ifndef SchemaTypesDoc_Link_h_ +#define SchemaTypesDoc_Link_h_ + +#ifndef SCHEMATYPESDOC_LINKAGE + #ifdef WIN32 + #ifdef FRAMEWORK_BUILD + #define SCHEMATYPESDOC_LINKAGE __declspec(dllexport) + #else + #define SCHEMATYPESDOC_LINKAGE __declspec(dllimport) + #endif + #else + #define SCHEMATYPESDOC_LINKAGE + #endif +#endif + +#include "Doc/SchemaTypesDoc/SchemaTypesDocInc.h" + +#endif /* SchemaTypesDoc_Link_h_ */ diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/DocContracts.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/DocContracts.h index 57ba0feec..9e95112ac 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/DocContracts.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/DocContracts.h @@ -9,19 +9,19 @@ #ifndef DocContracts_h_ #define DocContracts_h_ -#include "Doc/CafCoreTypesDoc/CafCoreTypesDocInc.h" -#include "Doc/SchemaTypesDoc/SchemaTypesDocInc.h" -#include "Doc/DiagTypesDoc/DiagTypesDocInc.h" -#include "Doc/DiagRequestDoc/DiagRequestDocInc.h" -#include "Doc/MgmtTypesDoc/MgmtTypesDocInc.h" -#include "Doc/MgmtRequestDoc/MgmtRequestDocInc.h" -#include "Doc/PayloadEnvelopeDoc/PayloadEnvelopeDocInc.h" -#include "Doc/PersistenceDoc/PersistenceDocInc.h" -#include "Doc/ProviderInfraDoc/ProviderInfraDocInc.h" -#include "Doc/ProviderRequestDoc/ProviderRequestDocInc.h" -#include "Doc/ProviderResultsDoc/ProviderResultsDocInc.h" -#include "Doc/ResponseDoc/ResponseDocInc.h" -#include "Doc/CafInstallRequestDoc/CafInstallRequestDocInc.h" -#include "Doc/MultiPmeMgmtRequestDoc/MultiPmeMgmtRequestDocInc.h" +#include "Doc/CafCoreTypesDoc/CafCoreTypesDocLink.h" +#include "Doc/SchemaTypesDoc/SchemaTypesDocLink.h" +#include "Doc/DiagTypesDoc/DiagTypesDocLink.h" +#include "Doc/DiagRequestDoc/DiagRequestDocLink.h" +#include "Doc/MgmtTypesDoc/MgmtTypesDocLink.h" +#include "Doc/MgmtRequestDoc/MgmtRequestDocLink.h" +#include "Doc/PayloadEnvelopeDoc/PayloadEnvelopeDocLink.h" +#include "Doc/PersistenceDoc/PersistenceDocLink.h" +#include "Doc/ProviderInfraDoc/ProviderInfraDocLink.h" +#include "Doc/ProviderRequestDoc/ProviderRequestDocLink.h" +#include "Doc/ProviderResultsDoc/ProviderResultsDocLink.h" +#include "Doc/ResponseDoc/ResponseDocLink.h" +#include "Doc/CafInstallRequestDoc/CafInstallRequestDocLink.h" +#include "Doc/MultiPmeMgmtRequestDoc/MultiPmeMgmtRequestDocLink.h" #endif diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/CafCoreTypesDoc/CAddInCollectionDoc.cpp b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/CafCoreTypesDoc/CAddInCollectionDoc.cpp new file mode 100644 index 000000000..f21497fff --- /dev/null +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/CafCoreTypesDoc/CAddInCollectionDoc.cpp @@ -0,0 +1,42 @@ +/* + * Author: bwilliams + * Created: April 6, 2012 + * + * Copyright (c) 2012 Vmware, Inc. All rights reserved. + * -- VMware Confidential + * + * + */ + +#include "stdafx.h" +#include "Doc/CafCoreTypesDoc/CAddInCollectionDoc.h" + +using namespace Caf; + +/// A simple container for objects of type AddInCollection +CAddInCollectionDoc::CAddInCollectionDoc() : + _isInitialized(false) {} +CAddInCollectionDoc::~CAddInCollectionDoc() {} + +/// Initializes the object with everything required by this +/// container. Once initialized, this object cannot +/// be changed (i.e. it is immutable). +void CAddInCollectionDoc::initialize( + const std::deque addInCollection) { + if (! _isInitialized) { + _addInCollection = addInCollection; + + _isInitialized = true; + } +} + +/// Accessor for the AddIn +std::deque CAddInCollectionDoc::getAddInCollection() const { + return _addInCollection; +} + + + + + + diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/CafCoreTypesDoc/CAddInsDoc.cpp b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/CafCoreTypesDoc/CAddInsDoc.cpp new file mode 100644 index 000000000..4f536ec73 --- /dev/null +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/CafCoreTypesDoc/CAddInsDoc.cpp @@ -0,0 +1,42 @@ +/* + * Author: bwilliams + * Created: April 6, 2012 + * + * Copyright (c) 2012 Vmware, Inc. All rights reserved. + * -- VMware Confidential + * + * + */ + +#include "stdafx.h" +#include "Doc/CafCoreTypesDoc/CAddInsDoc.h" + +using namespace Caf; + +/// A simple container for objects of type AddIns +CAddInsDoc::CAddInsDoc() : + _isInitialized(false) {} +CAddInsDoc::~CAddInsDoc() {} + +/// Initializes the object with everything required by this +/// container. Once initialized, this object cannot +/// be changed (i.e. it is immutable). +void CAddInsDoc::initialize( + const std::deque addInCollection) { + if (! _isInitialized) { + _addInCollection = addInCollection; + + _isInitialized = true; + } +} + +/// Accessor for the AddInCollection +std::deque CAddInsDoc::getAddInCollection() const { + return _addInCollection; +} + + + + + + diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/CafCoreTypesDoc/CAttachmentCollectionDoc.cpp b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/CafCoreTypesDoc/CAttachmentCollectionDoc.cpp new file mode 100644 index 000000000..6f8974ae0 --- /dev/null +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/CafCoreTypesDoc/CAttachmentCollectionDoc.cpp @@ -0,0 +1,49 @@ +/* + * Author: bwilliams + * Created: April 6, 2012 + * + * Copyright (c) 2012 Vmware, Inc. All rights reserved. + * -- VMware Confidential + * + * + */ + +#include "stdafx.h" +#include "Doc/CafCoreTypesDoc/CAttachmentCollectionDoc.h" + +using namespace Caf; + +/// A simple container for objects of type AttachmentCollection +CAttachmentCollectionDoc::CAttachmentCollectionDoc() : + _isInitialized(false) {} +CAttachmentCollectionDoc::~CAttachmentCollectionDoc() {} + +/// Initializes the object with everything required by this +/// container. Once initialized, this object cannot +/// be changed (i.e. it is immutable). +void CAttachmentCollectionDoc::initialize( + const std::deque attachment, + const std::deque inlineAttachment) { + if (! _isInitialized) { + _attachment = attachment; + _inlineAttachment = inlineAttachment; + + _isInitialized = true; + } +} + +/// Accessor for the Attachment +std::deque CAttachmentCollectionDoc::getAttachment() const { + return _attachment; +} + +/// Accessor for the InlineAttachment +std::deque CAttachmentCollectionDoc::getInlineAttachment() const { + return _inlineAttachment; +} + + + + + + diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/CafCoreTypesDoc/CAttachmentDoc.cpp b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/CafCoreTypesDoc/CAttachmentDoc.cpp new file mode 100644 index 000000000..12f7b91a4 --- /dev/null +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/CafCoreTypesDoc/CAttachmentDoc.cpp @@ -0,0 +1,72 @@ +/* + * Author: bwilliams + * Created: April 6, 2012 + * + * Copyright (c) 2012 Vmware, Inc. All rights reserved. + * -- VMware Confidential + * + */ + +#include "stdafx.h" +#include "Doc/CafCoreTypesDoc/CAttachmentDoc.h" + +using namespace Caf; + +/// A simple container for objects of type Attachment +CAttachmentDoc::CAttachmentDoc() : + _isInitialized(false), + _isReference(false), + _cmsPolicy(CMS_POLICY_CAF_ENCRYPTED_AND_SIGNED) {} +CAttachmentDoc::~CAttachmentDoc() {} + +/// Initializes the object with everything required by this +/// container. Once initialized, this object cannot +/// be changed (i.e. it is immutable). +void CAttachmentDoc::initialize( + const std::string name, + const std::string type, + const std::string uri, + const bool isReference, + const CMS_POLICY cmsPolicy) { + if (! _isInitialized) { + _name = name; + _type = type; + _uri = uri; + _isReference = isReference; + _cmsPolicy = cmsPolicy; + + _isInitialized = true; + } +} + +/// Accessor for the Name +std::string CAttachmentDoc::getName() const { + return _name; +} + +/// Accessor for the Type +std::string CAttachmentDoc::getType() const { + return _type; +} + +/// Accessor for the Uri +std::string CAttachmentDoc::getUri() const { + return _uri; +} + +/// Accessor for the IsReference +bool CAttachmentDoc::getIsReference() const { + return _isReference; +} + +/// Accessor for the CMS Policy +CMS_POLICY CAttachmentDoc::getCmsPolicy() const { + return _cmsPolicy; +} + + +CMS_POLICY _cmsPolicy; + + + + diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/CafCoreTypesDoc/CAttachmentNameCollectionDoc.cpp b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/CafCoreTypesDoc/CAttachmentNameCollectionDoc.cpp new file mode 100644 index 000000000..b49275840 --- /dev/null +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/CafCoreTypesDoc/CAttachmentNameCollectionDoc.cpp @@ -0,0 +1,42 @@ +/* + * Author: bwilliams + * Created: April 6, 2012 + * + * Copyright (c) 2012 Vmware, Inc. All rights reserved. + * -- VMware Confidential + * + * + */ + +#include "stdafx.h" +#include "Doc/CafCoreTypesDoc/CAttachmentNameCollectionDoc.h" + +using namespace Caf; + +/// A simple container for objects of type AttachmentNameCollection +CAttachmentNameCollectionDoc::CAttachmentNameCollectionDoc() : + _isInitialized(false) {} +CAttachmentNameCollectionDoc::~CAttachmentNameCollectionDoc() {} + +/// Initializes the object with everything required by this +/// container. Once initialized, this object cannot +/// be changed (i.e. it is immutable). +void CAttachmentNameCollectionDoc::initialize( + const std::deque name) { + if (! _isInitialized) { + _name = name; + + _isInitialized = true; + } +} + +/// Accessor for the Name +std::deque CAttachmentNameCollectionDoc::getName() const { + return _name; +} + + + + + + diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/CafCoreTypesDoc/CAuthnAuthzCollectionDoc.cpp b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/CafCoreTypesDoc/CAuthnAuthzCollectionDoc.cpp new file mode 100644 index 000000000..54f5881b1 --- /dev/null +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/CafCoreTypesDoc/CAuthnAuthzCollectionDoc.cpp @@ -0,0 +1,42 @@ +/* + * Author: bwilliams + * Created: April 6, 2012 + * + * Copyright (c) 2012 Vmware, Inc. All rights reserved. + * -- VMware Confidential + * + * + */ + +#include "stdafx.h" +#include "Doc/CafCoreTypesDoc/CAuthnAuthzCollectionDoc.h" + +using namespace Caf; + +/// Set of logging levels for different components +CAuthnAuthzCollectionDoc::CAuthnAuthzCollectionDoc() : + _isInitialized(false) {} +CAuthnAuthzCollectionDoc::~CAuthnAuthzCollectionDoc() {} + +/// Initializes the object with everything required by this +/// container. Once initialized, this object cannot +/// be changed (i.e. it is immutable). +void CAuthnAuthzCollectionDoc::initialize( + const std::deque authnAuthz) { + if (! _isInitialized) { + _authnAuthz = authnAuthz; + + _isInitialized = true; + } +} + +/// Used to change the logging level for a specific component +std::deque CAuthnAuthzCollectionDoc::getAuthnAuthz() const { + return _authnAuthz; +} + + + + + + diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/CafCoreTypesDoc/CAuthnAuthzDoc.cpp b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/CafCoreTypesDoc/CAuthnAuthzDoc.cpp new file mode 100644 index 000000000..e989498e4 --- /dev/null +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/CafCoreTypesDoc/CAuthnAuthzDoc.cpp @@ -0,0 +1,63 @@ +/* + * Author: bwilliams + * Created: May 24, 2015 + * + * Copyright (c) 2012 Vmware, Inc. All rights reserved. + * -- VMware Confidential + * + */ + +#include "stdafx.h" +#include "Doc/CafCoreTypesDoc/CAuthnAuthzDoc.h" + +using namespace Caf; + +/// A simple container for objects of type AuthnAuthz +CAuthnAuthzDoc::CAuthnAuthzDoc() : + _isInitialized(false), + _sequenceNumber(0) {} +CAuthnAuthzDoc::~CAuthnAuthzDoc() {} + +/// Initializes the object with everything required by this +/// container. Once initialized, this object cannot +/// be changed (i.e. it is immutable). +void CAuthnAuthzDoc::initialize( + const std::string type, + const std::string value, + const std::string name, + const int32 sequenceNumber) { + if (! _isInitialized) { + _type = type; + _value = value; + _name = name; + _sequenceNumber = sequenceNumber; + + _isInitialized = true; + } +} + +/// Accessor for the Type +std::string CAuthnAuthzDoc::getType() const { + return _type; +} + +/// Accessor for the Value +std::string CAuthnAuthzDoc::getValue() const { + return _value; +} + +/// Accessor for the Name +std::string CAuthnAuthzDoc::getName() const { + return _name; +} + +/// Accessor for the SequenceNumber +int32 CAuthnAuthzDoc::getSequenceNumber() const { + return _sequenceNumber; +} + + + + + + diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/CafCoreTypesDoc/CClassFiltersDoc.cpp b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/CafCoreTypesDoc/CClassFiltersDoc.cpp new file mode 100644 index 000000000..8bfc01bc8 --- /dev/null +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/CafCoreTypesDoc/CClassFiltersDoc.cpp @@ -0,0 +1,49 @@ +/* + * Author: bwilliams + * Created: April 6, 2012 + * + * Copyright (c) 2012 Vmware, Inc. All rights reserved. + * -- VMware Confidential + * + * + */ + +#include "stdafx.h" +#include "Doc/CafCoreTypesDoc/CClassFiltersDoc.h" + +using namespace Caf; + +/// A simple container for objects of type ClassFilters +CClassFiltersDoc::CClassFiltersDoc() : + _isInitialized(false) {} +CClassFiltersDoc::~CClassFiltersDoc() {} + +/// Initializes the object with everything required by this +/// container. Once initialized, this object cannot +/// be changed (i.e. it is immutable). +void CClassFiltersDoc::initialize( + const std::string dialect, + const std::deque classFilter) { + if (! _isInitialized) { + _dialect = dialect; + _classFilter = classFilter; + + _isInitialized = true; + } +} + +/// Accessor for the Dialect +std::string CClassFiltersDoc::getDialect() const { + return _dialect; +} + +/// Accessor for the ClassFilter +std::deque CClassFiltersDoc::getClassFilter() const { + return _classFilter; +} + + + + + + diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/CafCoreTypesDoc/CClassSpecifierDoc.cpp b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/CafCoreTypesDoc/CClassSpecifierDoc.cpp new file mode 100644 index 000000000..781adc41b --- /dev/null +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/CafCoreTypesDoc/CClassSpecifierDoc.cpp @@ -0,0 +1,49 @@ +/* + * Author: bwilliams + * Created: April 6, 2012 + * + * Copyright (c) 2012 Vmware, Inc. All rights reserved. + * -- VMware Confidential + * + * + */ + +#include "stdafx.h" +#include "Doc/CafCoreTypesDoc/CClassSpecifierDoc.h" + +using namespace Caf; + +/// A simple container for objects of type ClassSpecifier +CClassSpecifierDoc::CClassSpecifierDoc() : + _isInitialized(false) {} +CClassSpecifierDoc::~CClassSpecifierDoc() {} + +/// Initializes the object with everything required by this +/// container. Once initialized, this object cannot +/// be changed (i.e. it is immutable). +void CClassSpecifierDoc::initialize( + const SmartPtrCFullyQualifiedClassGroupDoc fullyQualifiedClass, + const SmartPtrCClassFiltersDoc classFilters) { + if (! _isInitialized) { + _fullyQualifiedClass = fullyQualifiedClass; + _classFilters = classFilters; + + _isInitialized = true; + } +} + +/// Accessor for the FullyQualifiedClass +SmartPtrCFullyQualifiedClassGroupDoc CClassSpecifierDoc::getFullyQualifiedClass() const { + return _fullyQualifiedClass; +} + +/// Accessor for the ClassFilters +SmartPtrCClassFiltersDoc CClassSpecifierDoc::getClassFilters() const { + return _classFilters; +} + + + + + + diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/CafCoreTypesDoc/CFullyQualifiedClassGroupDoc.cpp b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/CafCoreTypesDoc/CFullyQualifiedClassGroupDoc.cpp new file mode 100644 index 000000000..eed7737dd --- /dev/null +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/CafCoreTypesDoc/CFullyQualifiedClassGroupDoc.cpp @@ -0,0 +1,56 @@ +/* + * Author: bwilliams + * Created: April 6, 2012 + * + * Copyright (c) 2012 Vmware, Inc. All rights reserved. + * -- VMware Confidential + * + * + */ + +#include "stdafx.h" +#include "Doc/CafCoreTypesDoc/CFullyQualifiedClassGroupDoc.h" + +using namespace Caf; + +/// A simple container for objects of type FullyQualifiedClassGroup +CFullyQualifiedClassGroupDoc::CFullyQualifiedClassGroupDoc() : + _isInitialized(false) {} +CFullyQualifiedClassGroupDoc::~CFullyQualifiedClassGroupDoc() {} + +/// Initializes the object with everything required by this +/// container. Once initialized, this object cannot +/// be changed (i.e. it is immutable). +void CFullyQualifiedClassGroupDoc::initialize( + const std::string classNamespace, + const std::string className, + const std::string classVersion) { + if (! _isInitialized) { + _classNamespace = classNamespace; + _className = className; + _classVersion = classVersion; + + _isInitialized = true; + } +} + +/// Accessor for the ClassNamespace +std::string CFullyQualifiedClassGroupDoc::getClassNamespace() const { + return _classNamespace; +} + +/// Accessor for the ClassName +std::string CFullyQualifiedClassGroupDoc::getClassName() const { + return _className; +} + +/// Accessor for the ClassVersion +std::string CFullyQualifiedClassGroupDoc::getClassVersion() const { + return _classVersion; +} + + + + + + diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/CafCoreTypesDoc/CInlineAttachmentCollectionDoc.cpp b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/CafCoreTypesDoc/CInlineAttachmentCollectionDoc.cpp new file mode 100644 index 000000000..6661ebeb9 --- /dev/null +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/CafCoreTypesDoc/CInlineAttachmentCollectionDoc.cpp @@ -0,0 +1,42 @@ +/* + * Author: bwilliams + * Created: April 6, 2012 + * + * Copyright (c) 2012 Vmware, Inc. All rights reserved. + * -- VMware Confidential + * + * + */ + +#include "stdafx.h" +#include "Doc/CafCoreTypesDoc/CInlineAttachmentCollectionDoc.h" + +using namespace Caf; + +/// A simple container for objects of type InlineAttachmentCollection +CInlineAttachmentCollectionDoc::CInlineAttachmentCollectionDoc() : + _isInitialized(false) {} +CInlineAttachmentCollectionDoc::~CInlineAttachmentCollectionDoc() {} + +/// Initializes the object with everything required by this +/// container. Once initialized, this object cannot +/// be changed (i.e. it is immutable). +void CInlineAttachmentCollectionDoc::initialize( + const std::deque attachment) { + if (! _isInitialized) { + _attachment = attachment; + + _isInitialized = true; + } +} + +/// Accessor for the InlineAttachment +std::deque CInlineAttachmentCollectionDoc::getInlineAttachment() const { + return _attachment; +} + + + + + + diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/CafCoreTypesDoc/CInlineAttachmentDoc.cpp b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/CafCoreTypesDoc/CInlineAttachmentDoc.cpp new file mode 100644 index 000000000..d2beab093 --- /dev/null +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/CafCoreTypesDoc/CInlineAttachmentDoc.cpp @@ -0,0 +1,56 @@ +/* + * Author: bwilliams + * Created: April 6, 2012 + * + * Copyright (c) 2012 Vmware, Inc. All rights reserved. + * -- VMware Confidential + * + * + */ + +#include "stdafx.h" +#include "Doc/CafCoreTypesDoc/CInlineAttachmentDoc.h" + +using namespace Caf; + +/// A simple container for objects of type InlineAttachment +CInlineAttachmentDoc::CInlineAttachmentDoc() : + _isInitialized(false) {} +CInlineAttachmentDoc::~CInlineAttachmentDoc() {} + +/// Initializes the object with everything required by this +/// container. Once initialized, this object cannot +/// be changed (i.e. it is immutable). +void CInlineAttachmentDoc::initialize( + const std::string name, + const std::string type, + const std::string value) { + if (! _isInitialized) { + _name = name; + _type = type; + _value = value; + + _isInitialized = true; + } +} + +/// Accessor for the Name +std::string CInlineAttachmentDoc::getName() const { + return _name; +} + +/// Accessor for the Type +std::string CInlineAttachmentDoc::getType() const { + return _type; +} + +/// Accessor for the Value +std::string CInlineAttachmentDoc::getValue() const { + return _value; +} + + + + + + diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/CafCoreTypesDoc/CLoggingLevelCollectionDoc.cpp b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/CafCoreTypesDoc/CLoggingLevelCollectionDoc.cpp new file mode 100644 index 000000000..9912d765f --- /dev/null +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/CafCoreTypesDoc/CLoggingLevelCollectionDoc.cpp @@ -0,0 +1,42 @@ +/* + * Author: bwilliams + * Created: April 6, 2012 + * + * Copyright (c) 2012 Vmware, Inc. All rights reserved. + * -- VMware Confidential + * + * + */ + +#include "stdafx.h" +#include "Doc/CafCoreTypesDoc/CLoggingLevelCollectionDoc.h" + +using namespace Caf; + +/// Set of logging levels for different components +CLoggingLevelCollectionDoc::CLoggingLevelCollectionDoc() : + _isInitialized(false) {} +CLoggingLevelCollectionDoc::~CLoggingLevelCollectionDoc() {} + +/// Initializes the object with everything required by this +/// container. Once initialized, this object cannot +/// be changed (i.e. it is immutable). +void CLoggingLevelCollectionDoc::initialize( + const std::deque loggingLevel) { + if (! _isInitialized) { + _loggingLevel = loggingLevel; + + _isInitialized = true; + } +} + +/// Used to change the logging level for a specific component +std::deque CLoggingLevelCollectionDoc::getLoggingLevel() const { + return _loggingLevel; +} + + + + + + diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/CafCoreTypesDoc/CLoggingLevelElemDoc.cpp b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/CafCoreTypesDoc/CLoggingLevelElemDoc.cpp new file mode 100644 index 000000000..482116bca --- /dev/null +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/CafCoreTypesDoc/CLoggingLevelElemDoc.cpp @@ -0,0 +1,53 @@ +/* + * Author: bwilliams + * Created: April 6, 2012 + * + * Copyright (c) 2012 Vmware, Inc. All rights reserved. + * -- VMware Confidential + * + * + */ + +#include "stdafx.h" +#include "Doc/CafCoreTypesDoc/CLoggingLevelElemDoc.h" + +using namespace Caf; + +/// Logging level for a component +CLoggingLevelElemDoc::CLoggingLevelElemDoc() : + _component(LOGGINGCOMPONENT_NONE), + _level(LOGGINGLEVEL_NONE), + _isInitialized(false) {} +CLoggingLevelElemDoc::~CLoggingLevelElemDoc() {} + +/// Initializes the object with everything required by this +/// container. Once initialized, this object cannot +/// be changed (i.e. it is immutable). +void CLoggingLevelElemDoc::initialize( + const LOGGINGCOMPONENT_TYPE component, + const LOGGINGLEVEL_TYPE level) { + if (! _isInitialized) { + _component = component; + _level = level; + + _isInitialized = true; + } +} + +/// The logging level applies to this component +LOGGINGCOMPONENT_TYPE CLoggingLevelElemDoc::getComponent() const { + return _component; +} + +/// Set the logging level to this value +LOGGINGLEVEL_TYPE CLoggingLevelElemDoc::getLevel() const { + return _level; +} + +LOGGINGCOMPONENT_TYPE _component; +LOGGINGLEVEL_TYPE _level; + + + + + diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/CafCoreTypesDoc/COperationDoc.cpp b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/CafCoreTypesDoc/COperationDoc.cpp new file mode 100644 index 000000000..0ee75e1d4 --- /dev/null +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/CafCoreTypesDoc/COperationDoc.cpp @@ -0,0 +1,49 @@ +/* + * Author: bwilliams + * Created: April 6, 2012 + * + * Copyright (c) 2012 Vmware, Inc. All rights reserved. + * -- VMware Confidential + * + * + */ + +#include "stdafx.h" +#include "Doc/CafCoreTypesDoc/COperationDoc.h" + +using namespace Caf; + +/// A simple container for objects of type Operation +COperationDoc::COperationDoc() : + _isInitialized(false) {} +COperationDoc::~COperationDoc() {} + +/// Initializes the object with everything required by this +/// container. Once initialized, this object cannot +/// be changed (i.e. it is immutable). +void COperationDoc::initialize( + const std::string name, + const SmartPtrCParameterCollectionDoc parameterCollection) { + if (! _isInitialized) { + _name = name; + _parameterCollection = parameterCollection; + + _isInitialized = true; + } +} + +/// Accessor for the Name +std::string COperationDoc::getName() const { + return _name; +} + +/// Accessor for the ParameterCollection +SmartPtrCParameterCollectionDoc COperationDoc::getParameterCollection() const { + return _parameterCollection; +} + + + + + + diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/CafCoreTypesDoc/CParameterCollectionDoc.cpp b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/CafCoreTypesDoc/CParameterCollectionDoc.cpp new file mode 100644 index 000000000..42161c622 --- /dev/null +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/CafCoreTypesDoc/CParameterCollectionDoc.cpp @@ -0,0 +1,49 @@ +/* + * Author: bwilliams + * Created: April 6, 2012 + * + * Copyright (c) 2012 Vmware, Inc. All rights reserved. + * -- VMware Confidential + * + * + */ + +#include "stdafx.h" +#include "Doc/CafCoreTypesDoc/CParameterCollectionDoc.h" + +using namespace Caf; + +/// A simple container for objects of type ParameterCollection +CParameterCollectionDoc::CParameterCollectionDoc() : + _isInitialized(false) {} +CParameterCollectionDoc::~CParameterCollectionDoc() {} + +/// Initializes the object with everything required by this +/// container. Once initialized, this object cannot +/// be changed (i.e. it is immutable). +void CParameterCollectionDoc::initialize( + const std::deque parameter, + const std::deque instanceParameter) { + if (! _isInitialized) { + _parameter = parameter; + _instanceParameter = instanceParameter; + + _isInitialized = true; + } +} + +/// Accessor for the Parameter +std::deque CParameterCollectionDoc::getParameter() const { + return _parameter; +} + +/// Accessor for the InstanceParameter +std::deque CParameterCollectionDoc::getInstanceParameter() const { + return _instanceParameter; +} + + + + + + diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/CafCoreTypesDoc/CPropertyCollectionDoc.cpp b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/CafCoreTypesDoc/CPropertyCollectionDoc.cpp new file mode 100644 index 000000000..2cbaa5388 --- /dev/null +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/CafCoreTypesDoc/CPropertyCollectionDoc.cpp @@ -0,0 +1,42 @@ +/* + * Author: bwilliams + * Created: April 6, 2012 + * + * Copyright (c) 2012 Vmware, Inc. All rights reserved. + * -- VMware Confidential + * + * + */ + +#include "stdafx.h" +#include "Doc/CafCoreTypesDoc/CPropertyCollectionDoc.h" + +using namespace Caf; + +/// A simple container for objects of type PropertyCollection +CPropertyCollectionDoc::CPropertyCollectionDoc() : + _isInitialized(false) {} +CPropertyCollectionDoc::~CPropertyCollectionDoc() {} + +/// Initializes the object with everything required by this +/// container. Once initialized, this object cannot +/// be changed (i.e. it is immutable). +void CPropertyCollectionDoc::initialize( + const std::deque property) { + if (! _isInitialized) { + _property = property; + + _isInitialized = true; + } +} + +/// Accessor for the Property +std::deque CPropertyCollectionDoc::getProperty() const { + return _property; +} + + + + + + diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/CafCoreTypesDoc/CPropertyDoc.cpp b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/CafCoreTypesDoc/CPropertyDoc.cpp new file mode 100644 index 000000000..b50a9f470 --- /dev/null +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/CafCoreTypesDoc/CPropertyDoc.cpp @@ -0,0 +1,57 @@ +/* + * Author: bwilliams + * Created: April 6, 2012 + * + * Copyright (c) 2012 Vmware, Inc. All rights reserved. + * -- VMware Confidential + * + * + */ + +#include "stdafx.h" +#include "Doc/CafCoreTypesDoc/CPropertyDoc.h" + +using namespace Caf; + +/// A simple container for objects of type Property +CPropertyDoc::CPropertyDoc() : + _type(PROPERTY_NONE), + _isInitialized(false) {} +CPropertyDoc::~CPropertyDoc() {} + +/// Initializes the object with everything required by this +/// container. Once initialized, this object cannot +/// be changed (i.e. it is immutable). +void CPropertyDoc::initialize( + const std::string name, + const PROPERTY_TYPE type, + const std::deque value) { + if (! _isInitialized) { + _name = name; + _type = type; + _value = value; + + _isInitialized = true; + } +} + +/// Accessor for the Name +std::string CPropertyDoc::getName() const { + return _name; +} + +/// Accessor for the Type +PROPERTY_TYPE CPropertyDoc::getType() const { + return _type; +} + +/// Accessor for the Value +std::deque CPropertyDoc::getValue() const { + return _value; +} + + + + + + diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/CafCoreTypesDoc/CProtocolCollectionDoc.cpp b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/CafCoreTypesDoc/CProtocolCollectionDoc.cpp new file mode 100644 index 000000000..7b5b26765 --- /dev/null +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/CafCoreTypesDoc/CProtocolCollectionDoc.cpp @@ -0,0 +1,42 @@ +/* + * Author: bwilliams + * Created: April 6, 2012 + * + * Copyright (c) 2012 Vmware, Inc. All rights reserved. + * -- VMware Confidential + * + * + */ + +#include "stdafx.h" +#include "Doc/CafCoreTypesDoc/CProtocolCollectionDoc.h" + +using namespace Caf; + +/// Set of protocol +CProtocolCollectionDoc::CProtocolCollectionDoc() : + _isInitialized(false) {} +CProtocolCollectionDoc::~CProtocolCollectionDoc() {} + +/// Initializes the object with everything required by this +/// container. Once initialized, this object cannot +/// be changed (i.e. it is immutable). +void CProtocolCollectionDoc::initialize( + const std::deque protocol) { + if (! _isInitialized) { + _protocol = protocol; + + _isInitialized = true; + } +} + +/// Used to change the logging level for a specific component +std::deque CProtocolCollectionDoc::getProtocol() const { + return _protocol; +} + + + + + + diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/CafCoreTypesDoc/CProtocolDoc.cpp b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/CafCoreTypesDoc/CProtocolDoc.cpp new file mode 100644 index 000000000..fc041f8e2 --- /dev/null +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/CafCoreTypesDoc/CProtocolDoc.cpp @@ -0,0 +1,57 @@ +/* + * Author: bwilliams + * Created: April 6, 2012 + * + * Copyright (c) 2012 Vmware, Inc. All rights reserved. + * -- VMware Confidential + * + * + */ + +#include "stdafx.h" +#include "Doc/CafCoreTypesDoc/CProtocolDoc.h" + +using namespace Caf; + +/// A simple container for objects of Protocol +CProtocolDoc::CProtocolDoc() : + _sequenceNumber(0), + _isInitialized(false) {} +CProtocolDoc::~CProtocolDoc() {} + +/// Initializes the object with everything required by this +/// container. Once initialized, this object cannot +/// be changed (i.e. it is immutable). +void CProtocolDoc::initialize( + const std::string uri, + const std::string name, + const int32 sequenceNumber) { + if (! _isInitialized) { + _name = name; + _uri = uri; + _sequenceNumber = sequenceNumber; + + _isInitialized = true; + } +} + +/// Accessor for the Uri +std::string CProtocolDoc::getUri() const { + return _uri; +} + +/// Accessor for the Name +std::string CProtocolDoc::getName() const { + return _name; +} + +/// Accessor for the Value +int32 CProtocolDoc::getSequenceNumber() const { + return _sequenceNumber; +} + + + + + + diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/CafCoreTypesDoc/CRequestConfigDoc.cpp b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/CafCoreTypesDoc/CRequestConfigDoc.cpp new file mode 100644 index 000000000..c2d133b09 --- /dev/null +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/CafCoreTypesDoc/CRequestConfigDoc.cpp @@ -0,0 +1,63 @@ +/* + * Author: bwilliams + * Created: April 6, 2012 + * + * Copyright (c) 2012 Vmware, Inc. All rights reserved. + * -- VMware Confidential + * + * + */ + +#include "stdafx.h" +#include "Doc/CafCoreTypesDoc/CRequestConfigDoc.h" + +using namespace Caf; + +/// A simple container for objects of type RequestConfig +CRequestConfigDoc::CRequestConfigDoc() : + _isInitialized(false) {} +CRequestConfigDoc::~CRequestConfigDoc() {} + +/// Initializes the object with everything required by this +/// container. Once initialized, this object cannot +/// be changed (i.e. it is immutable). +void CRequestConfigDoc::initialize( + const std::string responseFormatType, + const SmartPtrCAddInsDoc requestProcessorAddIns, + const SmartPtrCAddInsDoc responseProcessorAddIns, + const SmartPtrCLoggingLevelCollectionDoc loggingLevelCollection) { + if (! _isInitialized) { + _responseFormatType = responseFormatType; + _requestProcessorAddIns = requestProcessorAddIns; + _responseProcessorAddIns = responseProcessorAddIns; + _loggingLevelCollection = loggingLevelCollection; + + _isInitialized = true; + } +} + +/// Accessor for the ResponseFormatType +std::string CRequestConfigDoc::getResponseFormatType() const { + return _responseFormatType; +} + +/// Accessor for the RequestProcessorAddIns +SmartPtrCAddInsDoc CRequestConfigDoc::getRequestProcessorAddIns() const { + return _requestProcessorAddIns; +} + +/// Accessor for the ResponseProcessorAddIns +SmartPtrCAddInsDoc CRequestConfigDoc::getResponseProcessorAddIns() const { + return _responseProcessorAddIns; +} + +/// Accessor for the LoggingLevelCollection +SmartPtrCLoggingLevelCollectionDoc CRequestConfigDoc::getLoggingLevelCollection() const { + return _loggingLevelCollection; +} + + + + + + diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/CafCoreTypesDoc/CRequestHeaderDoc.cpp b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/CafCoreTypesDoc/CRequestHeaderDoc.cpp new file mode 100644 index 000000000..32fb7a53d --- /dev/null +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/CafCoreTypesDoc/CRequestHeaderDoc.cpp @@ -0,0 +1,85 @@ +/* + * Author: bwilliams + * Created: April 6, 2012 + * + * Copyright (c) 2012 Vmware, Inc. All rights reserved. + * -- VMware Confidential + * + * + */ + +#include "stdafx.h" +#include "Doc/CafCoreTypesDoc/CRequestHeaderDoc.h" + +using namespace Caf; + +/// A simple container for objects of type RequestHeader +CRequestHeaderDoc::CRequestHeaderDoc() : + _isInitialized(false), + _sessionId(CAFCOMMON_GUID_NULL) {} +CRequestHeaderDoc::~CRequestHeaderDoc() {} + +/// Initializes the object with everything required by this +/// container. Once initialized, this object cannot +/// be changed (i.e. it is immutable). +void CRequestHeaderDoc::initialize( + const SmartPtrCRequestConfigDoc requestConfig, + const SmartPtrCAuthnAuthzCollectionDoc authnAuthzCollection, + const SmartPtrCProtocolCollectionDoc protocolCollection, + const SmartPtrCPropertyCollectionDoc echoPropertyBag, + const std::string version, + const std::string createdDateTime, + const UUID sessionId) { + if (! _isInitialized) { + _requestConfig = requestConfig; + _authnAuthzCollection = authnAuthzCollection; + _protocolCollection = protocolCollection; + _echoPropertyBag = echoPropertyBag; + _version = version; + _createdDateTime = createdDateTime; + _sessionId = sessionId; + + _isInitialized = true; + } +} + +/// Accessor for the RequestConfig +SmartPtrCRequestConfigDoc CRequestHeaderDoc::getRequestConfig() const { + return _requestConfig; +} + +/// Accessor for the Authentication / Authorization Collection +SmartPtrCAuthnAuthzCollectionDoc CRequestHeaderDoc::getAuthnAuthzCollection() const { + return _authnAuthzCollection; +} + +/// Accessor for the Protocol Collection +SmartPtrCProtocolCollectionDoc CRequestHeaderDoc::getProtocolCollection() const { + return _protocolCollection; +} + +/// Accessor for the EchoPropertyBag +SmartPtrCPropertyCollectionDoc CRequestHeaderDoc::getEchoPropertyBag() const { + return _echoPropertyBag; +} + +/// Accessor for the version +std::string CRequestHeaderDoc::getVersion() const { + return _version; +} + +/// Accessor for the date/time when the request was created +std::string CRequestHeaderDoc::getCreatedDateTime() const { + return _createdDateTime; +} + +/// Accessor for the session ID +UUID CRequestHeaderDoc::getSessionId() const { + return _sessionId; +} + + + + + + diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/CafCoreTypesDoc/CRequestInstanceParameterDoc.cpp b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/CafCoreTypesDoc/CRequestInstanceParameterDoc.cpp new file mode 100644 index 000000000..134542c22 --- /dev/null +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/CafCoreTypesDoc/CRequestInstanceParameterDoc.cpp @@ -0,0 +1,70 @@ +/* + * Author: bwilliams + * Created: April 6, 2012 + * + * Copyright (c) 2012 Vmware, Inc. All rights reserved. + * -- VMware Confidential + * + * + */ + +#include "stdafx.h" +#include "Doc/CafCoreTypesDoc/CRequestInstanceParameterDoc.h" + +using namespace Caf; + +/// A simple container for objects of type RequestInstanceParameter +CRequestInstanceParameterDoc::CRequestInstanceParameterDoc() : + _isInitialized(false) {} +CRequestInstanceParameterDoc::~CRequestInstanceParameterDoc() {} + +/// Initializes the object with everything required by this +/// container. Once initialized, this object cannot +/// be changed (i.e. it is immutable). +void CRequestInstanceParameterDoc::initialize( + const std::string name, + const std::string classNamespace, + const std::string className, + const std::string classVersion, + const std::deque value) { + if (! _isInitialized) { + _name = name; + _classNamespace = classNamespace; + _className = className; + _classVersion = classVersion; + _value = value; + + _isInitialized = true; + } +} + +/// Accessor for the Name +std::string CRequestInstanceParameterDoc::getName() const { + return _name; +} + +/// Accessor for the ClassNamespace +std::string CRequestInstanceParameterDoc::getClassNamespace() const { + return _classNamespace; +} + +/// Accessor for the ClassName +std::string CRequestInstanceParameterDoc::getClassName() const { + return _className; +} + +/// Accessor for the ClassVersion +std::string CRequestInstanceParameterDoc::getClassVersion() const { + return _classVersion; +} + +/// Accessor for the Value +std::deque CRequestInstanceParameterDoc::getValue() const { + return _value; +} + + + + + + diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/CafCoreTypesDoc/CRequestParameterDoc.cpp b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/CafCoreTypesDoc/CRequestParameterDoc.cpp new file mode 100644 index 000000000..b847e7e2f --- /dev/null +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/CafCoreTypesDoc/CRequestParameterDoc.cpp @@ -0,0 +1,57 @@ +/* + * Author: bwilliams + * Created: April 6, 2012 + * + * Copyright (c) 2012 Vmware, Inc. All rights reserved. + * -- VMware Confidential + * + * + */ + +#include "stdafx.h" +#include "Doc/CafCoreTypesDoc/CRequestParameterDoc.h" + +using namespace Caf; + +/// A simple container for objects of type RequestParameter +CRequestParameterDoc::CRequestParameterDoc() : + _type(PARAMETER_NONE), + _isInitialized(false) {} +CRequestParameterDoc::~CRequestParameterDoc() {} + +/// Initializes the object with everything required by this +/// container. Once initialized, this object cannot +/// be changed (i.e. it is immutable). +void CRequestParameterDoc::initialize( + const std::string name, + const PARAMETER_TYPE type, + const std::deque value) { + if (! _isInitialized) { + _name = name; + _type = type; + _value = value; + + _isInitialized = true; + } +} + +/// Accessor for the Name +std::string CRequestParameterDoc::getName() const { + return _name; +} + +/// Accessor for the Type +PARAMETER_TYPE CRequestParameterDoc::getType() const { + return _type; +} + +/// Accessor for the Value +std::deque CRequestParameterDoc::getValue() const { + return _value; +} + + + + + + diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/CafCoreTypesDoc/CStatisticsDoc.cpp b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/CafCoreTypesDoc/CStatisticsDoc.cpp new file mode 100644 index 000000000..6bfcfae73 --- /dev/null +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/CafCoreTypesDoc/CStatisticsDoc.cpp @@ -0,0 +1,89 @@ +/* + * Author: bwilliams + * Created: April 6, 2012 + * + * Copyright (c) 2012 Vmware, Inc. All rights reserved. + * -- VMware Confidential + * + * + */ + +#include "stdafx.h" +#include "Doc/CafCoreTypesDoc/CStatisticsDoc.h" + +using namespace Caf; + +/// A simple container for objects of type Statistics +CStatisticsDoc::CStatisticsDoc() : + _providerJobNum(0), + _providerJobTotal(0), + _providerJobDurationSecs(0), + _pmeNum(0), + _pmeTotal(0), + _pmeDurationSecs(0), + _isInitialized(false) {} +CStatisticsDoc::~CStatisticsDoc() {} + +/// Initializes the object with everything required by this +/// container. Once initialized, this object cannot +/// be changed (i.e. it is immutable). +void CStatisticsDoc::initialize( + const SmartPtrCPropertyCollectionDoc propertyCollection, + const int32 providerJobNum, + const int32 providerJobTotal, + const int32 providerJobDurationSecs, + const int32 pmeNum, + const int32 pmeTotal, + const int32 pmeDurationSecs) { + if (! _isInitialized) { + _propertyCollection = propertyCollection; + _providerJobNum = providerJobNum; + _providerJobTotal = providerJobTotal; + _providerJobDurationSecs = providerJobDurationSecs; + _pmeNum = pmeNum; + _pmeTotal = pmeTotal; + _pmeDurationSecs = pmeDurationSecs; + + _isInitialized = true; + } +} + +/// Accessor for the PropertyCollection +SmartPtrCPropertyCollectionDoc CStatisticsDoc::getPropertyCollection() const { + return _propertyCollection; +} + +/// Accessor for the ProviderJobNum +int32 CStatisticsDoc::getProviderJobNum() const { + return _providerJobNum; +} + +/// Accessor for the ProviderJobTotal +int32 CStatisticsDoc::getProviderJobTotal() const { + return _providerJobTotal; +} + +/// Accessor for the ProviderJobDurationSecs +int32 CStatisticsDoc::getProviderJobDurationSecs() const { + return _providerJobDurationSecs; +} + +/// Accessor for the PmeNum +int32 CStatisticsDoc::getPmeNum() const { + return _pmeNum; +} + +/// Accessor for the PmeTotal +int32 CStatisticsDoc::getPmeTotal() const { + return _pmeTotal; +} + +/// Accessor for the PmeDurationSecs +int32 CStatisticsDoc::getPmeDurationSecs() const { + return _pmeDurationSecs; +} + + + + + diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/CafCoreTypesDoc/stdafx.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/CafCoreTypesDoc/stdafx.h new file mode 100644 index 000000000..b9c3bd99a --- /dev/null +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/CafCoreTypesDoc/stdafx.h @@ -0,0 +1,22 @@ +/* + * Author: bwilliams + * Created: February 25, 2016 + * + * Copyright (c) 2016 Vmware, Inc. All rights reserved. + * -- VMware Confidential + * + */ + +#ifndef STDAFX_H_ +#define STDAFX_H_ + +#ifdef WIN32 + #define CAFCORETYPESDOC_LINKAGE __declspec(dllexport) +#else + #define CAFCORETYPESDOC_LINKAGE +#endif + +#include +#include "Doc/CafCoreTypesDoc/CafCoreTypesDocInc.h" + +#endif /* STDAFX_H_ */ diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/CafInstallRequestDoc/CFullPackageElemDoc.cpp b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/CafInstallRequestDoc/CFullPackageElemDoc.cpp new file mode 100644 index 000000000..beb12113b --- /dev/null +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/CafInstallRequestDoc/CFullPackageElemDoc.cpp @@ -0,0 +1,77 @@ +/* + * Author: bwilliams + * Created: April 6, 2012 + * + * Copyright (c) 2012 Vmware, Inc. All rights reserved. + * -- VMware Confidential + * + * + */ + +#include "stdafx.h" +#include "Doc/CafInstallRequestDoc/CFullPackageElemDoc.h" + +using namespace Caf; + +/// A simple container for objects of type FullPackageElem +CFullPackageElemDoc::CFullPackageElemDoc() : + _index(0), + _isInitialized(false) {} +CFullPackageElemDoc::~CFullPackageElemDoc() {} + +/// Initializes the object with everything required by this +/// container. Once initialized, this object cannot +/// be changed (i.e. it is immutable). +void CFullPackageElemDoc::initialize( + const int32 index, + const std::string packageNamespace, + const std::string packageName, + const std::string packageVersion, + const SmartPtrCPackageDefnDoc installPackage, + const SmartPtrCPackageDefnDoc uninstallPackage) { + if (! _isInitialized) { + _index = index; + _packageNamespace = packageNamespace; + _packageName = packageName; + _packageVersion = packageVersion; + _installPackage = installPackage; + _uninstallPackage = uninstallPackage; + + _isInitialized = true; + } +} + +/// Accessor for the Index +int32 CFullPackageElemDoc::getIndex() const { + return _index; +} + +/// Accessor for the PackageNamespace +std::string CFullPackageElemDoc::getPackageNamespace() const { + return _packageNamespace; +} + +/// Accessor for the PackageName +std::string CFullPackageElemDoc::getPackageName() const { + return _packageName; +} + +/// Accessor for the PackageVersion +std::string CFullPackageElemDoc::getPackageVersion() const { + return _packageVersion; +} + +/// Accessor for the InstallPackage +SmartPtrCPackageDefnDoc CFullPackageElemDoc::getInstallPackage() const { + return _installPackage; +} + +/// Accessor for the UninstallPackage +SmartPtrCPackageDefnDoc CFullPackageElemDoc::getUninstallPackage() const { + return _uninstallPackage; +} + + + + + diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/CafInstallRequestDoc/CGetInventoryJobDoc.cpp b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/CafInstallRequestDoc/CGetInventoryJobDoc.cpp new file mode 100644 index 000000000..1962f83c4 --- /dev/null +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/CafInstallRequestDoc/CGetInventoryJobDoc.cpp @@ -0,0 +1,42 @@ +/* + * Author: bwilliams + * Created: April 6, 2012 + * + * Copyright (c) 2012 Vmware, Inc. All rights reserved. + * -- VMware Confidential + * + * + */ + +#include "stdafx.h" +#include "Doc/CafInstallRequestDoc/CGetInventoryJobDoc.h" + +using namespace Caf; + +/// A simple container for objects of type GetInventoryJob +CGetInventoryJobDoc::CGetInventoryJobDoc() : + _jobId(CAFCOMMON_GUID_NULL), + _isInitialized(false) {} +CGetInventoryJobDoc::~CGetInventoryJobDoc() {} + +/// Initializes the object with everything required by this +/// container. Once initialized, this object cannot +/// be changed (i.e. it is immutable). +void CGetInventoryJobDoc::initialize( + const UUID jobId) { + if (! _isInitialized) { + _jobId = jobId; + + _isInitialized = true; + } +} + +/// Accessor for the JobId +UUID CGetInventoryJobDoc::getJobId() const { + return _jobId; +} + + + + + diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/CafInstallRequestDoc/CInstallBatchDoc.cpp b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/CafInstallRequestDoc/CInstallBatchDoc.cpp new file mode 100644 index 000000000..2c8a63576 --- /dev/null +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/CafInstallRequestDoc/CInstallBatchDoc.cpp @@ -0,0 +1,56 @@ +/* + * Author: bwilliams + * Created: April 6, 2012 + * + * Copyright (c) 2012 Vmware, Inc. All rights reserved. + * -- VMware Confidential + * + * + */ + +#include "stdafx.h" +#include "Doc/CafInstallRequestDoc/CInstallBatchDoc.h" + +using namespace Caf; + +/// A simple container for objects of type InstallBatch +CInstallBatchDoc::CInstallBatchDoc() : + _isInitialized(false) {} +CInstallBatchDoc::~CInstallBatchDoc() {} + +/// Initializes the object with everything required by this +/// container. Once initialized, this object cannot +/// be changed (i.e. it is immutable). +void CInstallBatchDoc::initialize( + const SmartPtrCGetInventoryJobDoc getInventory, + const SmartPtrCInstallProviderJobDoc installProvider, + const SmartPtrCUninstallProviderJobDoc uninstallProvider) { + if (! _isInitialized) { + _getInventory = getInventory; + _installProvider = installProvider; + _uninstallProvider = uninstallProvider; + + _isInitialized = true; + } +} + +/// Accessor for the GetInventory +SmartPtrCGetInventoryJobDoc CInstallBatchDoc::getGetInventory() const { + return _getInventory; +} + +/// Accessor for the InstallProvider +SmartPtrCInstallProviderJobDoc CInstallBatchDoc::getInstallProvider() const { + return _installProvider; +} + +/// Accessor for the UninstallProvider +SmartPtrCUninstallProviderJobDoc CInstallBatchDoc::getUninstallProvider() const { + return _uninstallProvider; +} + + + + + + diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/CafInstallRequestDoc/CInstallPackageSpecDoc.cpp b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/CafInstallRequestDoc/CInstallPackageSpecDoc.cpp new file mode 100644 index 000000000..dbf185468 --- /dev/null +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/CafInstallRequestDoc/CInstallPackageSpecDoc.cpp @@ -0,0 +1,91 @@ +/* + * Author: bwilliams + * Created: April 6, 2012 + * + * Copyright (c) 2012 Vmware, Inc. All rights reserved. + * -- VMware Confidential + * + * + */ + +#include "stdafx.h" +#include "Doc/CafInstallRequestDoc/CInstallPackageSpecDoc.h" + +using namespace Caf; + +/// A simple container for objects of type InstallPackageSpec +CInstallPackageSpecDoc::CInstallPackageSpecDoc() : + _isInitialized(false) {} +CInstallPackageSpecDoc::~CInstallPackageSpecDoc() {} + +/// Initializes the object with everything required by this +/// container. Once initialized, this object cannot +/// be changed (i.e. it is immutable). +void CInstallPackageSpecDoc::initialize( + const std::string packageNamespace, + const std::string packageName, + const std::string packageVersion, + const std::string startupAttachmentName, + const std::string packageAttachmentName, + const SmartPtrCAttachmentNameCollectionDoc attachmentNameCollection, + const SmartPtrCAttachmentCollectionDoc attachmentCollection, + const std::string arguments) { + if (! _isInitialized) { + _packageNamespace = packageNamespace; + _packageName = packageName; + _packageVersion = packageVersion; + _startupAttachmentName = startupAttachmentName; + _packageAttachmentName = packageAttachmentName; + _attachmentNameCollection = attachmentNameCollection; + _attachmentCollection = attachmentCollection; + _arguments = arguments; + + _isInitialized = true; + } +} + +/// Accessor for the PackageNamespace +std::string CInstallPackageSpecDoc::getPackageNamespace() const { + return _packageNamespace; +} + +/// Accessor for the PackageName +std::string CInstallPackageSpecDoc::getPackageName() const { + return _packageName; +} + +/// Accessor for the PackageVersion +std::string CInstallPackageSpecDoc::getPackageVersion() const { + return _packageVersion; +} + +/// Accessor for the StartupAttachmentName +std::string CInstallPackageSpecDoc::getStartupAttachmentName() const { + return _startupAttachmentName; +} + +/// Accessor for the PackageAttachmentName +std::string CInstallPackageSpecDoc::getPackageAttachmentName() const { + return _packageAttachmentName; +} + +/// Accessor for the AttachmentNameCollection +SmartPtrCAttachmentNameCollectionDoc CInstallPackageSpecDoc::getSupportingAttachmentNameCollection() const { + return _attachmentNameCollection; +} + +/// Accessor for the AttachmentCollection +SmartPtrCAttachmentCollectionDoc CInstallPackageSpecDoc::getAttachmentCollection() const { + return _attachmentCollection; +} + +/// Accessor for the Arguments +std::string CInstallPackageSpecDoc::getArguments() const { + return _arguments; +} + + + + + + diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/CafInstallRequestDoc/CInstallProviderJobDoc.cpp b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/CafInstallRequestDoc/CInstallProviderJobDoc.cpp new file mode 100644 index 000000000..6ca6a36f0 --- /dev/null +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/CafInstallRequestDoc/CInstallProviderJobDoc.cpp @@ -0,0 +1,86 @@ +/* + * Author: bwilliams + * Created: April 6, 2012 + * + * Copyright (c) 2012 Vmware, Inc. All rights reserved. + * -- VMware Confidential + * + * + */ + +#include "stdafx.h" +#include "Doc/CafInstallRequestDoc/CInstallProviderJobDoc.h" + +using namespace Caf; + +/// A simple container for objects of type InstallProviderJob +CInstallProviderJobDoc::CInstallProviderJobDoc() : + _clientId(CAFCOMMON_GUID_NULL), + _jobId(CAFCOMMON_GUID_NULL), + _packageOSType(PACKAGE_OS_NONE), + _isInitialized(false) {} +CInstallProviderJobDoc::~CInstallProviderJobDoc() {} + +/// Initializes the object with everything required by this +/// container. Once initialized, this object cannot +/// be changed (i.e. it is immutable). +void CInstallProviderJobDoc::initialize( + const UUID clientId, + const UUID jobId, + const std::string providerNamespace, + const std::string providerName, + const std::string providerVersion, + const PACKAGE_OS_TYPE packageOSType, + const std::deque packageCollection) { + if (! _isInitialized) { + _clientId = clientId; + _jobId = jobId; + _providerNamespace = providerNamespace; + _providerName = providerName; + _providerVersion = providerVersion; + _packageOSType = packageOSType; + _packageCollection = packageCollection; + + _isInitialized = true; + } +} + +/// Accessor for the ClientId +UUID CInstallProviderJobDoc::getClientId() const { + return _clientId; +} + +/// Accessor for the JobId +UUID CInstallProviderJobDoc::getJobId() const { + return _jobId; +} + +/// Accessor for the ProviderNamespace +std::string CInstallProviderJobDoc::getProviderNamespace() const { + return _providerNamespace; +} + +/// Accessor for the ProviderName +std::string CInstallProviderJobDoc::getProviderName() const { + return _providerName; +} + +/// Accessor for the ProviderVersion +std::string CInstallProviderJobDoc::getProviderVersion() const { + return _providerVersion; +} + +/// Accessor for the PackageOSType +PACKAGE_OS_TYPE CInstallProviderJobDoc::getPackageOSType() const { + return _packageOSType; +} + +/// Accessor for the PackageVal +std::deque CInstallProviderJobDoc::getPackageCollection() const { + return _packageCollection; +} + + + + + diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/CafInstallRequestDoc/CInstallProviderSpecDoc.cpp b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/CafInstallRequestDoc/CInstallProviderSpecDoc.cpp new file mode 100644 index 000000000..6382b6cd7 --- /dev/null +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/CafInstallRequestDoc/CInstallProviderSpecDoc.cpp @@ -0,0 +1,70 @@ +/* + * Author: bwilliams + * Created: April 6, 2012 + * + * Copyright (c) 2012 Vmware, Inc. All rights reserved. + * -- VMware Confidential + * + * + */ + +#include "stdafx.h" +#include "Doc/CafInstallRequestDoc/CInstallProviderSpecDoc.h" + +using namespace Caf; + +/// A simple container for objects of type InstallProviderSpec +CInstallProviderSpecDoc::CInstallProviderSpecDoc() : + _clientId(CAFCOMMON_GUID_NULL), + _isInitialized(false) {} +CInstallProviderSpecDoc::~CInstallProviderSpecDoc() {} + +/// Initializes the object with everything required by this +/// container. Once initialized, this object cannot +/// be changed (i.e. it is immutable). +void CInstallProviderSpecDoc::initialize( + const UUID clientId, + const std::string providerNamespace, + const std::string providerName, + const std::string providerVersion, + const std::deque packageCollection) { + if (! _isInitialized) { + _clientId = clientId; + _providerNamespace = providerNamespace; + _providerName = providerName; + _providerVersion = providerVersion; + _packageCollection = packageCollection; + + _isInitialized = true; + } +} + +/// Accessor for the ClientId +UUID CInstallProviderSpecDoc::getClientId() const { + return _clientId; +} + +/// Accessor for the ProviderNamespace +std::string CInstallProviderSpecDoc::getProviderNamespace() const { + return _providerNamespace; +} + +/// Accessor for the ProviderName +std::string CInstallProviderSpecDoc::getProviderName() const { + return _providerName; +} + +/// Accessor for the ProviderVersion +std::string CInstallProviderSpecDoc::getProviderVersion() const { + return _providerVersion; +} + +/// Accessor for the PackageVal +std::deque CInstallProviderSpecDoc::getPackageCollection() const { + return _packageCollection; +} + + + + + diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/CafInstallRequestDoc/CInstallRequestDoc.cpp b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/CafInstallRequestDoc/CInstallRequestDoc.cpp new file mode 100644 index 000000000..a46a6871f --- /dev/null +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/CafInstallRequestDoc/CInstallRequestDoc.cpp @@ -0,0 +1,78 @@ +/* + * Author: bwilliams + * Created: April 6, 2012 + * + * Copyright (c) 2012 Vmware, Inc. All rights reserved. + * -- VMware Confidential + * + * + */ + +#include "stdafx.h" +#include "Doc/CafInstallRequestDoc/CInstallRequestDoc.h" + +using namespace Caf; + +/// A simple container for objects of type InstallRequest +CInstallRequestDoc::CInstallRequestDoc() : + _clientId(CAFCOMMON_GUID_NULL), + _requestId(CAFCOMMON_GUID_NULL), + _isInitialized(false) {} +CInstallRequestDoc::~CInstallRequestDoc() {} + +/// Initializes the object with everything required by this +/// container. Once initialized, this object cannot +/// be changed (i.e. it is immutable). +void CInstallRequestDoc::initialize( + const UUID clientId, + const UUID requestId, + const std::string pmeId, + const SmartPtrCRequestHeaderDoc requestHeader, + const SmartPtrCInstallBatchDoc batch, + const SmartPtrCAttachmentCollectionDoc attachmentCollection) { + if (! _isInitialized) { + _clientId = clientId; + _requestId = requestId; + _pmeId = pmeId; + _requestHeader = requestHeader; + _batch = batch; + _attachmentCollection = attachmentCollection; + + _isInitialized = true; + } +} + +/// Accessor for the ClientId +UUID CInstallRequestDoc::getClientId() const { + return _clientId; +} + +/// Accessor for the RequestId +UUID CInstallRequestDoc::getRequestId() const { + return _requestId; +} + +/// Accessor for the PmeId +std::string CInstallRequestDoc::getPmeId() const { + return _pmeId; +} + +/// Accessor for the RequestHeader +SmartPtrCRequestHeaderDoc CInstallRequestDoc::getRequestHeader() const { + return _requestHeader; +} + +/// Accessor for the Batch +SmartPtrCInstallBatchDoc CInstallRequestDoc::getBatch() const { + return _batch; +} + +/// Accessor for the AttachmentCollection +SmartPtrCAttachmentCollectionDoc CInstallRequestDoc::getAttachmentCollection() const { + return _attachmentCollection; +} + + + + + diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/CafInstallRequestDoc/CMinPackageElemDoc.cpp b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/CafInstallRequestDoc/CMinPackageElemDoc.cpp new file mode 100644 index 000000000..92f73173b --- /dev/null +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/CafInstallRequestDoc/CMinPackageElemDoc.cpp @@ -0,0 +1,63 @@ +/* + * Author: bwilliams + * Created: April 6, 2012 + * + * Copyright (c) 2012 Vmware, Inc. All rights reserved. + * -- VMware Confidential + * + * + */ + +#include "stdafx.h" +#include "Doc/CafInstallRequestDoc/CMinPackageElemDoc.h" + +using namespace Caf; + +/// A simple container for objects of type MinPackageElem +CMinPackageElemDoc::CMinPackageElemDoc() : + _index(0), + _isInitialized(false) {} +CMinPackageElemDoc::~CMinPackageElemDoc() {} + +/// Initializes the object with everything required by this +/// container. Once initialized, this object cannot +/// be changed (i.e. it is immutable). +void CMinPackageElemDoc::initialize( + const int32 index, + const std::string packageNamespace, + const std::string packageName, + const std::string packageVersion) { + if (! _isInitialized) { + _index = index; + _packageNamespace = packageNamespace; + _packageName = packageName; + _packageVersion = packageVersion; + + _isInitialized = true; + } +} + +/// Accessor for the Index +int32 CMinPackageElemDoc::getIndex() const { + return _index; +} + +/// Accessor for the PackageNamespace +std::string CMinPackageElemDoc::getPackageNamespace() const { + return _packageNamespace; +} + +/// Accessor for the PackageName +std::string CMinPackageElemDoc::getPackageName() const { + return _packageName; +} + +/// Accessor for the PackageVersion +std::string CMinPackageElemDoc::getPackageVersion() const { + return _packageVersion; +} + + + + + diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/CafInstallRequestDoc/CPackageDefnDoc.cpp b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/CafInstallRequestDoc/CPackageDefnDoc.cpp new file mode 100644 index 000000000..cfc67323a --- /dev/null +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/CafInstallRequestDoc/CPackageDefnDoc.cpp @@ -0,0 +1,63 @@ +/* + * Author: bwilliams + * Created: April 6, 2012 + * + * Copyright (c) 2012 Vmware, Inc. All rights reserved. + * -- VMware Confidential + * + * + */ + +#include "stdafx.h" +#include "Doc/CafInstallRequestDoc/CPackageDefnDoc.h" + +using namespace Caf; + +/// A simple container for objects of type PackageDefn +CPackageDefnDoc::CPackageDefnDoc() : + _isInitialized(false) {} +CPackageDefnDoc::~CPackageDefnDoc() {} + +/// Initializes the object with everything required by this +/// container. Once initialized, this object cannot +/// be changed (i.e. it is immutable). +void CPackageDefnDoc::initialize( + const std::string startupAttachmentName, + const std::string packageAttachmentName, + const SmartPtrCAttachmentNameCollectionDoc attachmentNameCollection, + const std::string arguments) { + if (! _isInitialized) { + _startupAttachmentName = startupAttachmentName; + _packageAttachmentName = packageAttachmentName; + _attachmentNameCollection = attachmentNameCollection; + _arguments = arguments; + + _isInitialized = true; + } +} + +/// Accessor for the StartupAttachmentName +std::string CPackageDefnDoc::getStartupAttachmentName() const { + return _startupAttachmentName; +} + +/// Accessor for the PackageAttachmentName +std::string CPackageDefnDoc::getPackageAttachmentName() const { + return _packageAttachmentName; +} + +/// Accessor for the AttachmentNameCollection +SmartPtrCAttachmentNameCollectionDoc CPackageDefnDoc::getSupportingAttachmentNameCollection() const { + return _attachmentNameCollection; +} + +/// Accessor for the Arguments +std::string CPackageDefnDoc::getArguments() const { + return _arguments; +} + + + + + + diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/CafInstallRequestDoc/CUninstallProviderJobDoc.cpp b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/CafInstallRequestDoc/CUninstallProviderJobDoc.cpp new file mode 100644 index 000000000..1fee99b3b --- /dev/null +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/CafInstallRequestDoc/CUninstallProviderJobDoc.cpp @@ -0,0 +1,79 @@ +/* + * Author: bwilliams + * Created: April 6, 2012 + * + * Copyright (c) 2012 Vmware, Inc. All rights reserved. + * -- VMware Confidential + * + * + */ + +#include "stdafx.h" +#include "Doc/CafInstallRequestDoc/CUninstallProviderJobDoc.h" + +using namespace Caf; + +/// A simple container for objects of type UninstallProviderJob +CUninstallProviderJobDoc::CUninstallProviderJobDoc() : + _clientId(CAFCOMMON_GUID_NULL), + _jobId(CAFCOMMON_GUID_NULL), + _packageOSType(PACKAGE_OS_NONE), + _isInitialized(false) {} +CUninstallProviderJobDoc::~CUninstallProviderJobDoc() {} + +/// Initializes the object with everything required by this +/// container. Once initialized, this object cannot +/// be changed (i.e. it is immutable). +void CUninstallProviderJobDoc::initialize( + const UUID clientId, + const UUID jobId, + const std::string providerNamespace, + const std::string providerName, + const std::string providerVersion, + const PACKAGE_OS_TYPE packageOSType) { + if (! _isInitialized) { + _clientId = clientId; + _jobId = jobId; + _providerNamespace = providerNamespace; + _providerName = providerName; + _providerVersion = providerVersion; + _packageOSType = packageOSType; + + _isInitialized = true; + } +} + +/// Accessor for the ClientId +UUID CUninstallProviderJobDoc::getClientId() const { + return _clientId; +} + +/// Accessor for the JobId +UUID CUninstallProviderJobDoc::getJobId() const { + return _jobId; +} + +/// Accessor for the ProviderNamespace +std::string CUninstallProviderJobDoc::getProviderNamespace() const { + return _providerNamespace; +} + +/// Accessor for the ProviderName +std::string CUninstallProviderJobDoc::getProviderName() const { + return _providerName; +} + +/// Accessor for the ProviderVersion +std::string CUninstallProviderJobDoc::getProviderVersion() const { + return _providerVersion; +} + +/// Accessor for the PackageOSType +PACKAGE_OS_TYPE CUninstallProviderJobDoc::getPackageOSType() const { + return _packageOSType; +} + + + + + diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/CafInstallRequestDoc/stdafx.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/CafInstallRequestDoc/stdafx.h new file mode 100644 index 000000000..c4e7315f9 --- /dev/null +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/CafInstallRequestDoc/stdafx.h @@ -0,0 +1,22 @@ +/* + * Author: bwilliams + * Created: February 25, 2016 + * + * Copyright (c) 2016 Vmware, Inc. All rights reserved. + * -- VMware Confidential + * + */ + +#ifndef STDAFX_H_ +#define STDAFX_H_ + +#ifdef WIN32 + #define CAFINSTALLREQUESTDOC_LINKAGE __declspec(dllexport) +#else + #define CAFINSTALLREQUESTDOC_LINKAGE +#endif + +#include +#include "Doc/CafInstallRequestDoc/CafInstallRequestDocInc.h" + +#endif /* STDAFX_H_ */ diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/DiagRequestDoc/CDiagRequestDoc.cpp b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/DiagRequestDoc/CDiagRequestDoc.cpp new file mode 100644 index 000000000..0b9670478 --- /dev/null +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/DiagRequestDoc/CDiagRequestDoc.cpp @@ -0,0 +1,71 @@ +/* + * Author: bwilliams + * Created: April 6, 2012 + * + * Copyright (c) 2012 Vmware, Inc. All rights reserved. + * -- VMware Confidential + * + * + */ + +#include "stdafx.h" +#include "Doc/DiagRequestDoc/CDiagRequestDoc.h" + +using namespace Caf; + +/// A simple container for objects of type DiagRequest +CDiagRequestDoc::CDiagRequestDoc() : + _clientId(CAFCOMMON_GUID_NULL), + _requestId(CAFCOMMON_GUID_NULL), + _isInitialized(false) {} +CDiagRequestDoc::~CDiagRequestDoc() {} + +/// Initializes the object with everything required by this +/// container. Once initialized, this object cannot +/// be changed (i.e. it is immutable). +void CDiagRequestDoc::initialize( + const UUID clientId, + const UUID requestId, + const std::string pmeId, + const SmartPtrCRequestHeaderDoc requestHeader, + const SmartPtrCDiagBatchDoc batch) { + if (! _isInitialized) { + _clientId = clientId; + _requestId = requestId; + _pmeId = pmeId; + _requestHeader = requestHeader; + _batch = batch; + + _isInitialized = true; + } +} + +/// Accessor for the ClientId +UUID CDiagRequestDoc::getClientId() const { + return _clientId; +} + +/// Accessor for the RequestId +UUID CDiagRequestDoc::getRequestId() const { + return _requestId; +} + +/// Accessor for the PmeId +std::string CDiagRequestDoc::getPmeId() const { + return _pmeId; +} + +/// Accessor for the RequestHeader +SmartPtrCRequestHeaderDoc CDiagRequestDoc::getRequestHeader() const { + return _requestHeader; +} + +/// Accessor for the Batch +SmartPtrCDiagBatchDoc CDiagRequestDoc::getBatch() const { + return _batch; +} + + + + + diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/DiagRequestDoc/stdafx.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/DiagRequestDoc/stdafx.h new file mode 100644 index 000000000..397f63d1d --- /dev/null +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/DiagRequestDoc/stdafx.h @@ -0,0 +1,22 @@ +/* + * Author: bwilliams + * Created: February 25, 2016 + * + * Copyright (c) 2016 Vmware, Inc. All rights reserved. + * -- VMware Confidential + * + */ + +#ifndef STDAFX_H_ +#define STDAFX_H_ + +#ifdef WIN32 + #define DIAGREQUESTDOC_LINKAGE __declspec(dllexport) +#else + #define DIAGREQUESTDOC_LINKAGE +#endif + +#include +#include "Doc/DiagRequestDoc/DiagRequestDocInc.h" + +#endif /* STDAFX_H_ */ diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/DiagTypesDoc/CDiagBatchDoc.cpp b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/DiagTypesDoc/CDiagBatchDoc.cpp new file mode 100644 index 000000000..6bc301181 --- /dev/null +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/DiagTypesDoc/CDiagBatchDoc.cpp @@ -0,0 +1,56 @@ +/* + * Author: bwilliams + * Created: April 6, 2012 + * + * Copyright (c) 2012 Vmware, Inc. All rights reserved. + * -- VMware Confidential + * + * + */ + +#include "stdafx.h" +#include "Doc/DiagTypesDoc/CDiagBatchDoc.h" + +using namespace Caf; + +/// A simple container for objects of type DiagBatch +CDiagBatchDoc::CDiagBatchDoc() : + _isInitialized(false) {} +CDiagBatchDoc::~CDiagBatchDoc() {} + +/// Initializes the object with everything required by this +/// container. Once initialized, this object cannot +/// be changed (i.e. it is immutable). +void CDiagBatchDoc::initialize( + const SmartPtrCDiagCollectInstancesDoc collectInstances, + const SmartPtrCDiagSetValueCollectionDoc setValueCollection, + const SmartPtrCDiagDeleteValueCollectionDoc deleteValueCollection) { + if (! _isInitialized) { + _collectInstances = collectInstances; + _setValueCollection = setValueCollection; + _deleteValueCollection = deleteValueCollection; + + _isInitialized = true; + } +} + +/// Accessor for the CollectInstances +SmartPtrCDiagCollectInstancesDoc CDiagBatchDoc::getCollectInstances() const { + return _collectInstances; +} + +/// Accessor for the SetValueCollection +SmartPtrCDiagSetValueCollectionDoc CDiagBatchDoc::getSetValueCollection() const { + return _setValueCollection; +} + +/// Accessor for the DeleteValueCollection +SmartPtrCDiagDeleteValueCollectionDoc CDiagBatchDoc::getDeleteValueCollection() const { + return _deleteValueCollection; +} + + + + + + diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/DiagTypesDoc/CDiagCollectInstancesDoc.cpp b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/DiagTypesDoc/CDiagCollectInstancesDoc.cpp new file mode 100644 index 000000000..64c03defd --- /dev/null +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/DiagTypesDoc/CDiagCollectInstancesDoc.cpp @@ -0,0 +1,42 @@ +/* + * Author: bwilliams + * Created: April 6, 2012 + * + * Copyright (c) 2012 Vmware, Inc. All rights reserved. + * -- VMware Confidential + * + * + */ + +#include "stdafx.h" +#include "Doc/DiagTypesDoc/CDiagCollectInstancesDoc.h" + +using namespace Caf; + +/// A simple container for objects of type DiagCollectInstances +CDiagCollectInstancesDoc::CDiagCollectInstancesDoc() : + _jobId(CAFCOMMON_GUID_NULL), + _isInitialized(false) {} +CDiagCollectInstancesDoc::~CDiagCollectInstancesDoc() {} + +/// Initializes the object with everything required by this +/// container. Once initialized, this object cannot +/// be changed (i.e. it is immutable). +void CDiagCollectInstancesDoc::initialize( + const UUID jobId) { + if (! _isInitialized) { + _jobId = jobId; + + _isInitialized = true; + } +} + +/// Accessor for the JobId +UUID CDiagCollectInstancesDoc::getJobId() const { + return _jobId; +} + + + + + diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/DiagTypesDoc/CDiagDeleteValueCollectionDoc.cpp b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/DiagTypesDoc/CDiagDeleteValueCollectionDoc.cpp new file mode 100644 index 000000000..6d0a8c9e7 --- /dev/null +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/DiagTypesDoc/CDiagDeleteValueCollectionDoc.cpp @@ -0,0 +1,42 @@ +/* + * Author: bwilliams + * Created: April 6, 2012 + * + * Copyright (c) 2012 Vmware, Inc. All rights reserved. + * -- VMware Confidential + * + * + */ + +#include "stdafx.h" +#include "Doc/DiagTypesDoc/CDiagDeleteValueCollectionDoc.h" + +using namespace Caf; + +/// A simple container for objects of type DiagDeleteValueCollection +CDiagDeleteValueCollectionDoc::CDiagDeleteValueCollectionDoc() : + _isInitialized(false) {} +CDiagDeleteValueCollectionDoc::~CDiagDeleteValueCollectionDoc() {} + +/// Initializes the object with everything required by this +/// container. Once initialized, this object cannot +/// be changed (i.e. it is immutable). +void CDiagDeleteValueCollectionDoc::initialize( + const std::deque deleteValueCollection) { + if (! _isInitialized) { + _deleteValueCollection = deleteValueCollection; + + _isInitialized = true; + } +} + +/// Accessor for the DeleteValue +std::deque CDiagDeleteValueCollectionDoc::getDeleteValueCollection() const { + return _deleteValueCollection; +} + + + + + + diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/DiagTypesDoc/CDiagDeleteValueDoc.cpp b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/DiagTypesDoc/CDiagDeleteValueDoc.cpp new file mode 100644 index 000000000..0be0e52b6 --- /dev/null +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/DiagTypesDoc/CDiagDeleteValueDoc.cpp @@ -0,0 +1,56 @@ +/* + * Author: bwilliams + * Created: April 6, 2012 + * + * Copyright (c) 2012 Vmware, Inc. All rights reserved. + * -- VMware Confidential + * + * + */ + +#include "stdafx.h" +#include "Doc/DiagTypesDoc/CDiagDeleteValueDoc.h" + +using namespace Caf; + +/// A simple container for objects of type DiagDeleteValue +CDiagDeleteValueDoc::CDiagDeleteValueDoc() : + _jobId(CAFCOMMON_GUID_NULL), + _isInitialized(false) {} +CDiagDeleteValueDoc::~CDiagDeleteValueDoc() {} + +/// Initializes the object with everything required by this +/// container. Once initialized, this object cannot +/// be changed (i.e. it is immutable). +void CDiagDeleteValueDoc::initialize( + const UUID jobId, + const std::string fileAlias, + const std::string valueName) { + if (! _isInitialized) { + _jobId = jobId; + _fileAlias = fileAlias; + _valueName = valueName; + + _isInitialized = true; + } +} + +/// Accessor for the JobId +UUID CDiagDeleteValueDoc::getJobId() const { + return _jobId; +} + +/// Accessor for the FileAlias +std::string CDiagDeleteValueDoc::getFileAlias() const { + return _fileAlias; +} + +/// Accessor for the ValueName +std::string CDiagDeleteValueDoc::getValueName() const { + return _valueName; +} + + + + + diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/DiagTypesDoc/CDiagSetValueCollectionDoc.cpp b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/DiagTypesDoc/CDiagSetValueCollectionDoc.cpp new file mode 100644 index 000000000..a8bd20e30 --- /dev/null +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/DiagTypesDoc/CDiagSetValueCollectionDoc.cpp @@ -0,0 +1,42 @@ +/* + * Author: bwilliams + * Created: April 6, 2012 + * + * Copyright (c) 2012 Vmware, Inc. All rights reserved. + * -- VMware Confidential + * + * + */ + +#include "stdafx.h" +#include "Doc/DiagTypesDoc/CDiagSetValueCollectionDoc.h" + +using namespace Caf; + +/// A simple container for objects of type DiagSetValueCollection +CDiagSetValueCollectionDoc::CDiagSetValueCollectionDoc() : + _isInitialized(false) {} +CDiagSetValueCollectionDoc::~CDiagSetValueCollectionDoc() {} + +/// Initializes the object with everything required by this +/// container. Once initialized, this object cannot +/// be changed (i.e. it is immutable). +void CDiagSetValueCollectionDoc::initialize( + const std::deque setValueCollection) { + if (! _isInitialized) { + _setValueCollection = setValueCollection; + + _isInitialized = true; + } +} + +/// Accessor for the SetValue +std::deque CDiagSetValueCollectionDoc::getSetValueCollection() const { + return _setValueCollection; +} + + + + + + diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/DiagTypesDoc/CDiagSetValueDoc.cpp b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/DiagTypesDoc/CDiagSetValueDoc.cpp new file mode 100644 index 000000000..3d4c20123 --- /dev/null +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/DiagTypesDoc/CDiagSetValueDoc.cpp @@ -0,0 +1,56 @@ +/* + * Author: bwilliams + * Created: April 6, 2012 + * + * Copyright (c) 2012 Vmware, Inc. All rights reserved. + * -- VMware Confidential + * + * + */ + +#include "stdafx.h" +#include "Doc/DiagTypesDoc/CDiagSetValueDoc.h" + +using namespace Caf; + +/// A simple container for objects of type DiagSetValue +CDiagSetValueDoc::CDiagSetValueDoc() : + _jobId(CAFCOMMON_GUID_NULL), + _isInitialized(false) {} +CDiagSetValueDoc::~CDiagSetValueDoc() {} + +/// Initializes the object with everything required by this +/// container. Once initialized, this object cannot +/// be changed (i.e. it is immutable). +void CDiagSetValueDoc::initialize( + const UUID jobId, + const std::string fileAlias, + const SmartPtrCPropertyDoc value) { + if (! _isInitialized) { + _jobId = jobId; + _fileAlias = fileAlias; + _value = value; + + _isInitialized = true; + } +} + +/// Accessor for the JobId +UUID CDiagSetValueDoc::getJobId() const { + return _jobId; +} + +/// Accessor for the FileAlias +std::string CDiagSetValueDoc::getFileAlias() const { + return _fileAlias; +} + +/// Accessor for the Value +SmartPtrCPropertyDoc CDiagSetValueDoc::getValue() const { + return _value; +} + + + + + diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/DiagTypesDoc/stdafx.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/DiagTypesDoc/stdafx.h new file mode 100644 index 000000000..e89c6af9e --- /dev/null +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/DiagTypesDoc/stdafx.h @@ -0,0 +1,22 @@ +/* + * Author: bwilliams + * Created: February 25, 2016 + * + * Copyright (c) 2016 Vmware, Inc. All rights reserved. + * -- VMware Confidential + * + */ + +#ifndef STDAFX_H_ +#define STDAFX_H_ + +#ifdef WIN32 + #define DIAGTYPESDOC_LINKAGE __declspec(dllexport) +#else + #define DIAGTYPESDOC_LINKAGE +#endif + +#include +#include "Doc/DiagTypesDoc/DiagTypesDocInc.h" + +#endif /* STDAFX_H_ */ diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/MgmtRequestDoc/CMgmtRequestDoc.cpp b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/MgmtRequestDoc/CMgmtRequestDoc.cpp new file mode 100644 index 000000000..b4f8d7c8f --- /dev/null +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/MgmtRequestDoc/CMgmtRequestDoc.cpp @@ -0,0 +1,78 @@ +/* + * Author: bwilliams + * Created: April 6, 2012 + * + * Copyright (c) 2012 Vmware, Inc. All rights reserved. + * -- VMware Confidential + * + * + */ + +#include "stdafx.h" +#include "Doc/MgmtRequestDoc/CMgmtRequestDoc.h" + +using namespace Caf; + +/// A simple container for objects of type MgmtRequest +CMgmtRequestDoc::CMgmtRequestDoc() : + _clientId(CAFCOMMON_GUID_NULL), + _requestId(CAFCOMMON_GUID_NULL), + _isInitialized(false) {} +CMgmtRequestDoc::~CMgmtRequestDoc() {} + +/// Initializes the object with everything required by this +/// container. Once initialized, this object cannot +/// be changed (i.e. it is immutable). +void CMgmtRequestDoc::initialize( + const UUID clientId, + const UUID requestId, + const std::string pmeId, + const SmartPtrCRequestHeaderDoc requestHeader, + const SmartPtrCMgmtBatchDoc batch, + const SmartPtrCAttachmentCollectionDoc attachmentCollection) { + if (! _isInitialized) { + _clientId = clientId; + _requestId = requestId; + _pmeId = pmeId; + _requestHeader = requestHeader; + _batch = batch; + _attachmentCollection = attachmentCollection; + + _isInitialized = true; + } +} + +/// Accessor for the ClientId +UUID CMgmtRequestDoc::getClientId() const { + return _clientId; +} + +/// Accessor for the RequestId +UUID CMgmtRequestDoc::getRequestId() const { + return _requestId; +} + +/// Accessor for the PmeId +std::string CMgmtRequestDoc::getPmeId() const { + return _pmeId; +} + +/// Accessor for the RequestHeader +SmartPtrCRequestHeaderDoc CMgmtRequestDoc::getRequestHeader() const { + return _requestHeader; +} + +/// Accessor for the Batch +SmartPtrCMgmtBatchDoc CMgmtRequestDoc::getBatch() const { + return _batch; +} + +/// Accessor for the AttachmentCollection +SmartPtrCAttachmentCollectionDoc CMgmtRequestDoc::getAttachmentCollection() const { + return _attachmentCollection; +} + + + + + diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/MgmtRequestDoc/stdafx.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/MgmtRequestDoc/stdafx.h new file mode 100644 index 000000000..abb636fd4 --- /dev/null +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/MgmtRequestDoc/stdafx.h @@ -0,0 +1,22 @@ +/* + * Author: bwilliams + * Created: February 25, 2016 + * + * Copyright (c) 2016 Vmware, Inc. All rights reserved. + * -- VMware Confidential + * + */ + +#ifndef STDAFX_H_ +#define STDAFX_H_ + +#ifdef WIN32 + #define MGMTREQUESTDOC_LINKAGE __declspec(dllexport) +#else + #define MGMTREQUESTDOC_LINKAGE +#endif + +#include +#include "Doc/MgmtRequestDoc/MgmtRequestDocInc.h" + +#endif /* STDAFX_H_ */ diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/MgmtTypesDoc/CMgmtBatchDoc.cpp b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/MgmtTypesDoc/CMgmtBatchDoc.cpp new file mode 100644 index 000000000..8d6b79322 --- /dev/null +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/MgmtTypesDoc/CMgmtBatchDoc.cpp @@ -0,0 +1,56 @@ +/* + * Author: bwilliams + * Created: April 6, 2012 + * + * Copyright (c) 2012 Vmware, Inc. All rights reserved. + * -- VMware Confidential + * + * + */ + +#include "stdafx.h" +#include "Doc/MgmtTypesDoc/CMgmtBatchDoc.h" + +using namespace Caf; + +/// A simple container for objects of type MgmtBatch +CMgmtBatchDoc::CMgmtBatchDoc() : + _isInitialized(false) {} +CMgmtBatchDoc::~CMgmtBatchDoc() {} + +/// Initializes the object with everything required by this +/// container. Once initialized, this object cannot +/// be changed (i.e. it is immutable). +void CMgmtBatchDoc::initialize( + const SmartPtrCMgmtCollectSchemaDoc collectSchema, + const SmartPtrCMgmtCollectInstancesCollectionDoc collectInstancesCollection, + const SmartPtrCMgmtInvokeOperationCollectionDoc invokeOperationCollection) { + if (! _isInitialized) { + _collectSchema = collectSchema; + _collectInstancesCollection = collectInstancesCollection; + _invokeOperationCollection = invokeOperationCollection; + + _isInitialized = true; + } +} + +/// Accessor for the CollectSchema +SmartPtrCMgmtCollectSchemaDoc CMgmtBatchDoc::getCollectSchema() const { + return _collectSchema; +} + +/// Accessor for the CollectInstancesCollection +SmartPtrCMgmtCollectInstancesCollectionDoc CMgmtBatchDoc::getCollectInstancesCollection() const { + return _collectInstancesCollection; +} + +/// Accessor for the InvokeOperationCollection +SmartPtrCMgmtInvokeOperationCollectionDoc CMgmtBatchDoc::getInvokeOperationCollection() const { + return _invokeOperationCollection; +} + + + + + + diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/MgmtTypesDoc/CMgmtCollectInstancesCollectionDoc.cpp b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/MgmtTypesDoc/CMgmtCollectInstancesCollectionDoc.cpp new file mode 100644 index 000000000..d157d0a53 --- /dev/null +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/MgmtTypesDoc/CMgmtCollectInstancesCollectionDoc.cpp @@ -0,0 +1,42 @@ +/* + * Author: bwilliams + * Created: April 6, 2012 + * + * Copyright (c) 2012 Vmware, Inc. All rights reserved. + * -- VMware Confidential + * + * + */ + +#include "stdafx.h" +#include "Doc/MgmtTypesDoc/CMgmtCollectInstancesCollectionDoc.h" + +using namespace Caf; + +/// A simple container for objects of type MgmtCollectInstancesCollection +CMgmtCollectInstancesCollectionDoc::CMgmtCollectInstancesCollectionDoc() : + _isInitialized(false) {} +CMgmtCollectInstancesCollectionDoc::~CMgmtCollectInstancesCollectionDoc() {} + +/// Initializes the object with everything required by this +/// container. Once initialized, this object cannot +/// be changed (i.e. it is immutable). +void CMgmtCollectInstancesCollectionDoc::initialize( + const std::deque collectInstancesCollection) { + if (! _isInitialized) { + _collectInstancesCollection = collectInstancesCollection; + + _isInitialized = true; + } +} + +/// Accessor for the CollectInstances +std::deque CMgmtCollectInstancesCollectionDoc::getCollectInstancesCollection() const { + return _collectInstancesCollection; +} + + + + + + diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/MgmtTypesDoc/CMgmtCollectInstancesDoc.cpp b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/MgmtTypesDoc/CMgmtCollectInstancesDoc.cpp new file mode 100644 index 000000000..53b700981 --- /dev/null +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/MgmtTypesDoc/CMgmtCollectInstancesDoc.cpp @@ -0,0 +1,56 @@ +/* + * Author: bwilliams + * Created: April 6, 2012 + * + * Copyright (c) 2012 Vmware, Inc. All rights reserved. + * -- VMware Confidential + * + * + */ + +#include "stdafx.h" +#include "Doc/MgmtTypesDoc/CMgmtCollectInstancesDoc.h" + +using namespace Caf; + +/// A simple container for objects of type MgmtCollectInstances +CMgmtCollectInstancesDoc::CMgmtCollectInstancesDoc() : + _jobId(CAFCOMMON_GUID_NULL), + _isInitialized(false) {} +CMgmtCollectInstancesDoc::~CMgmtCollectInstancesDoc() {} + +/// Initializes the object with everything required by this +/// container. Once initialized, this object cannot +/// be changed (i.e. it is immutable). +void CMgmtCollectInstancesDoc::initialize( + const UUID jobId, + const SmartPtrCClassSpecifierDoc classSpecifier, + const SmartPtrCParameterCollectionDoc parameterCollection) { + if (! _isInitialized) { + _jobId = jobId; + _classSpecifier = classSpecifier; + _parameterCollection = parameterCollection; + + _isInitialized = true; + } +} + +/// Accessor for the JobId +UUID CMgmtCollectInstancesDoc::getJobId() const { + return _jobId; +} + +/// Accessor for the ClassSpecifier +SmartPtrCClassSpecifierDoc CMgmtCollectInstancesDoc::getClassSpecifier() const { + return _classSpecifier; +} + +/// Accessor for the ParameterCollection +SmartPtrCParameterCollectionDoc CMgmtCollectInstancesDoc::getParameterCollection() const { + return _parameterCollection; +} + + + + + diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/MgmtTypesDoc/CMgmtCollectSchemaDoc.cpp b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/MgmtTypesDoc/CMgmtCollectSchemaDoc.cpp new file mode 100644 index 000000000..165b1b0ad --- /dev/null +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/MgmtTypesDoc/CMgmtCollectSchemaDoc.cpp @@ -0,0 +1,42 @@ +/* + * Author: bwilliams + * Created: April 6, 2012 + * + * Copyright (c) 2012 Vmware, Inc. All rights reserved. + * -- VMware Confidential + * + * + */ + +#include "stdafx.h" +#include "Doc/MgmtTypesDoc/CMgmtCollectSchemaDoc.h" + +using namespace Caf; + +/// A simple container for objects of type MgmtCollectSchema +CMgmtCollectSchemaDoc::CMgmtCollectSchemaDoc() : + _jobId(CAFCOMMON_GUID_NULL), + _isInitialized(false) {} +CMgmtCollectSchemaDoc::~CMgmtCollectSchemaDoc() {} + +/// Initializes the object with everything required by this +/// container. Once initialized, this object cannot +/// be changed (i.e. it is immutable). +void CMgmtCollectSchemaDoc::initialize( + const UUID jobId) { + if (! _isInitialized) { + _jobId = jobId; + + _isInitialized = true; + } +} + +/// Accessor for the JobId +UUID CMgmtCollectSchemaDoc::getJobId() const { + return _jobId; +} + + + + + diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/MgmtTypesDoc/CMgmtInvokeOperationCollectionDoc.cpp b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/MgmtTypesDoc/CMgmtInvokeOperationCollectionDoc.cpp new file mode 100644 index 000000000..99436fa7f --- /dev/null +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/MgmtTypesDoc/CMgmtInvokeOperationCollectionDoc.cpp @@ -0,0 +1,42 @@ +/* + * Author: bwilliams + * Created: April 6, 2012 + * + * Copyright (c) 2012 Vmware, Inc. All rights reserved. + * -- VMware Confidential + * + * + */ + +#include "stdafx.h" +#include "Doc/MgmtTypesDoc/CMgmtInvokeOperationCollectionDoc.h" + +using namespace Caf; + +/// A simple container for objects of type MgmtInvokeOperationCollection +CMgmtInvokeOperationCollectionDoc::CMgmtInvokeOperationCollectionDoc() : + _isInitialized(false) {} +CMgmtInvokeOperationCollectionDoc::~CMgmtInvokeOperationCollectionDoc() {} + +/// Initializes the object with everything required by this +/// container. Once initialized, this object cannot +/// be changed (i.e. it is immutable). +void CMgmtInvokeOperationCollectionDoc::initialize( + const std::deque invokeOperationCollection) { + if (! _isInitialized) { + _invokeOperationCollection = invokeOperationCollection; + + _isInitialized = true; + } +} + +/// Accessor for the InvokeOperation +std::deque CMgmtInvokeOperationCollectionDoc::getInvokeOperationCollection() const { + return _invokeOperationCollection; +} + + + + + + diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/MgmtTypesDoc/CMgmtInvokeOperationDoc.cpp b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/MgmtTypesDoc/CMgmtInvokeOperationDoc.cpp new file mode 100644 index 000000000..7efa3754f --- /dev/null +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/MgmtTypesDoc/CMgmtInvokeOperationDoc.cpp @@ -0,0 +1,56 @@ +/* + * Author: bwilliams + * Created: April 6, 2012 + * + * Copyright (c) 2012 Vmware, Inc. All rights reserved. + * -- VMware Confidential + * + * + */ + +#include "stdafx.h" +#include "Doc/MgmtTypesDoc/CMgmtInvokeOperationDoc.h" + +using namespace Caf; + +/// A simple container for objects of type MgmtInvokeOperation +CMgmtInvokeOperationDoc::CMgmtInvokeOperationDoc() : + _jobId(CAFCOMMON_GUID_NULL), + _isInitialized(false) {} +CMgmtInvokeOperationDoc::~CMgmtInvokeOperationDoc() {} + +/// Initializes the object with everything required by this +/// container. Once initialized, this object cannot +/// be changed (i.e. it is immutable). +void CMgmtInvokeOperationDoc::initialize( + const UUID jobId, + const SmartPtrCClassSpecifierDoc classSpecifier, + const SmartPtrCOperationDoc operation) { + if (! _isInitialized) { + _jobId = jobId; + _classSpecifier = classSpecifier; + _operation = operation; + + _isInitialized = true; + } +} + +/// Accessor for the JobId +UUID CMgmtInvokeOperationDoc::getJobId() const { + return _jobId; +} + +/// Accessor for the ClassSpecifier +SmartPtrCClassSpecifierDoc CMgmtInvokeOperationDoc::getClassSpecifier() const { + return _classSpecifier; +} + +/// Accessor for the Operation +SmartPtrCOperationDoc CMgmtInvokeOperationDoc::getOperation() const { + return _operation; +} + + + + + diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/MgmtTypesDoc/stdafx.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/MgmtTypesDoc/stdafx.h new file mode 100644 index 000000000..b56359ec3 --- /dev/null +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/MgmtTypesDoc/stdafx.h @@ -0,0 +1,22 @@ +/* + * Author: bwilliams + * Created: February 25, 2016 + * + * Copyright (c) 2016 Vmware, Inc. All rights reserved. + * -- VMware Confidential + * + */ + +#ifndef STDAFX_H_ +#define STDAFX_H_ + +#ifdef WIN32 + #define MGMTTYPESDOC_LINKAGE __declspec(dllexport) +#else + #define MGMTTYPESDOC_LINKAGE +#endif + +#include +#include "Doc/MgmtTypesDoc/MgmtTypesDocInc.h" + +#endif /* STDAFX_H_ */ diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/MultiPmeMgmtRequestDoc/CMultiPmeMgmtBatchCollectionDoc.cpp b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/MultiPmeMgmtRequestDoc/CMultiPmeMgmtBatchCollectionDoc.cpp new file mode 100644 index 000000000..8790944b6 --- /dev/null +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/MultiPmeMgmtRequestDoc/CMultiPmeMgmtBatchCollectionDoc.cpp @@ -0,0 +1,42 @@ +/* + * Author: bwilliams + * Created: April 6, 2012 + * + * Copyright (c) 2012 Vmware, Inc. All rights reserved. + * -- VMware Confidential + * + * + */ + +#include "stdafx.h" +#include "Doc/MultiPmeMgmtRequestDoc/CMultiPmeMgmtBatchCollectionDoc.h" + +using namespace Caf; + +/// A simple container for objects of type MultiPmeMgmtBatchCollection +CMultiPmeMgmtBatchCollectionDoc::CMultiPmeMgmtBatchCollectionDoc() : + _isInitialized(false) {} +CMultiPmeMgmtBatchCollectionDoc::~CMultiPmeMgmtBatchCollectionDoc() {} + +/// Initializes the object with everything required by this +/// container. Once initialized, this object cannot +/// be changed (i.e. it is immutable). +void CMultiPmeMgmtBatchCollectionDoc::initialize( + const std::deque multiPmeBatch) { + if (! _isInitialized) { + _multiPmeBatch = multiPmeBatch; + + _isInitialized = true; + } +} + +/// Accessor for the MultiPmeBatch +std::deque CMultiPmeMgmtBatchCollectionDoc::getMultiPmeBatch() const { + return _multiPmeBatch; +} + + + + + + diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/MultiPmeMgmtRequestDoc/CMultiPmeMgmtBatchDoc.cpp b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/MultiPmeMgmtRequestDoc/CMultiPmeMgmtBatchDoc.cpp new file mode 100644 index 000000000..fdbf14ddf --- /dev/null +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/MultiPmeMgmtRequestDoc/CMultiPmeMgmtBatchDoc.cpp @@ -0,0 +1,49 @@ +/* + * Author: bwilliams + * Created: April 6, 2012 + * + * Copyright (c) 2012 Vmware, Inc. All rights reserved. + * -- VMware Confidential + * + * + */ + +#include "stdafx.h" +#include "Doc/MultiPmeMgmtRequestDoc/CMultiPmeMgmtBatchDoc.h" + +using namespace Caf; + +/// A simple container for objects of type MultiPmeMgmtBatch +CMultiPmeMgmtBatchDoc::CMultiPmeMgmtBatchDoc() : + _isInitialized(false) {} +CMultiPmeMgmtBatchDoc::~CMultiPmeMgmtBatchDoc() {} + +/// Initializes the object with everything required by this +/// container. Once initialized, this object cannot +/// be changed (i.e. it is immutable). +void CMultiPmeMgmtBatchDoc::initialize( + const SmartPtrCPmeIdCollectionDoc pmeIdCollection, + const SmartPtrCMgmtBatchDoc batch) { + if (! _isInitialized) { + _pmeIdCollection = pmeIdCollection; + _batch = batch; + + _isInitialized = true; + } +} + +/// Accessor for the PmeIdCollection +SmartPtrCPmeIdCollectionDoc CMultiPmeMgmtBatchDoc::getPmeIdCollection() const { + return _pmeIdCollection; +} + +/// Accessor for the Batch +SmartPtrCMgmtBatchDoc CMultiPmeMgmtBatchDoc::getBatch() const { + return _batch; +} + + + + + + diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/MultiPmeMgmtRequestDoc/CMultiPmeMgmtRequestDoc.cpp b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/MultiPmeMgmtRequestDoc/CMultiPmeMgmtRequestDoc.cpp new file mode 100644 index 000000000..e9bc2f45b --- /dev/null +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/MultiPmeMgmtRequestDoc/CMultiPmeMgmtRequestDoc.cpp @@ -0,0 +1,64 @@ +/* + * Author: bwilliams + * Created: April 6, 2012 + * + * Copyright (c) 2012 Vmware, Inc. All rights reserved. + * -- VMware Confidential + * + * + */ + +#include "stdafx.h" +#include "Doc/MultiPmeMgmtRequestDoc/CMultiPmeMgmtRequestDoc.h" + +using namespace Caf; + +/// A simple container for objects of type MultiPmeMgmtRequest +CMultiPmeMgmtRequestDoc::CMultiPmeMgmtRequestDoc() : + _clientId(CAFCOMMON_GUID_NULL), + _requestId(CAFCOMMON_GUID_NULL), + _isInitialized(false) {} +CMultiPmeMgmtRequestDoc::~CMultiPmeMgmtRequestDoc() {} + +/// Initializes the object with everything required by this +/// container. Once initialized, this object cannot +/// be changed (i.e. it is immutable). +void CMultiPmeMgmtRequestDoc::initialize( + const UUID clientId, + const UUID requestId, + const SmartPtrCRequestHeaderDoc requestHeader, + const SmartPtrCMultiPmeMgmtBatchCollectionDoc multiPmeBatchCollection) { + if (! _isInitialized) { + _clientId = clientId; + _requestId = requestId; + _requestHeader = requestHeader; + _multiPmeBatchCollection = multiPmeBatchCollection; + + _isInitialized = true; + } +} + +/// Accessor for the ClientId +UUID CMultiPmeMgmtRequestDoc::getClientId() const { + return _clientId; +} + +/// Accessor for the RequestId +UUID CMultiPmeMgmtRequestDoc::getRequestId() const { + return _requestId; +} + +/// Accessor for the RequestHeader +SmartPtrCRequestHeaderDoc CMultiPmeMgmtRequestDoc::getRequestHeader() const { + return _requestHeader; +} + +/// Accessor for the MultiPmeBatchCollection +SmartPtrCMultiPmeMgmtBatchCollectionDoc CMultiPmeMgmtRequestDoc::getMultiPmeBatchCollection() const { + return _multiPmeBatchCollection; +} + + + + + diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/MultiPmeMgmtRequestDoc/CPmeIdCollectionDoc.cpp b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/MultiPmeMgmtRequestDoc/CPmeIdCollectionDoc.cpp new file mode 100644 index 000000000..a119389bc --- /dev/null +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/MultiPmeMgmtRequestDoc/CPmeIdCollectionDoc.cpp @@ -0,0 +1,42 @@ +/* + * Author: bwilliams + * Created: April 6, 2012 + * + * Copyright (c) 2012 Vmware, Inc. All rights reserved. + * -- VMware Confidential + * + * + */ + +#include "stdafx.h" +#include "Doc/MultiPmeMgmtRequestDoc/CPmeIdCollectionDoc.h" + +using namespace Caf; + +/// A simple container for objects of type PmeIdCollection +CPmeIdCollectionDoc::CPmeIdCollectionDoc() : + _isInitialized(false) {} +CPmeIdCollectionDoc::~CPmeIdCollectionDoc() {} + +/// Initializes the object with everything required by this +/// container. Once initialized, this object cannot +/// be changed (i.e. it is immutable). +void CPmeIdCollectionDoc::initialize( + const std::deque pmeIdCollection) { + if (! _isInitialized) { + _pmeIdCollection = pmeIdCollection; + + _isInitialized = true; + } +} + +/// Accessor for the PmeId +std::deque CPmeIdCollectionDoc::getPmeIdCollection() const { + return _pmeIdCollection; +} + + + + + + diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/MultiPmeMgmtRequestDoc/stdafx.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/MultiPmeMgmtRequestDoc/stdafx.h new file mode 100644 index 000000000..cdebb3f90 --- /dev/null +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/MultiPmeMgmtRequestDoc/stdafx.h @@ -0,0 +1,22 @@ +/* + * Author: bwilliams + * Created: February 25, 2016 + * + * Copyright (c) 2016 Vmware, Inc. All rights reserved. + * -- VMware Confidential + * + */ + +#ifndef STDAFX_H_ +#define STDAFX_H_ + +#ifdef WIN32 + #define MULTIPMEMGMTREQUESTDOC_LINKAGE __declspec(dllexport) +#else + #define MULTIPMEMGMTREQUESTDOC_LINKAGE +#endif + +#include +#include "Doc/MultiPmeMgmtRequestDoc/MultiPmeMgmtRequestDocInc.h" + +#endif /* STDAFX_H_ */ diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/PayloadEnvelopeDoc/CPayloadEnvelopeDoc.cpp b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/PayloadEnvelopeDoc/CPayloadEnvelopeDoc.cpp new file mode 100644 index 000000000..ff1705051 --- /dev/null +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/PayloadEnvelopeDoc/CPayloadEnvelopeDoc.cpp @@ -0,0 +1,98 @@ +/* + * Author: bwilliams + * Created: July 3, 2015 + * + * Copyright (c) 2012 Vmware, Inc. All rights reserved. + * -- VMware Confidential + * + */ + +#include "stdafx.h" +#include "Doc/PayloadEnvelopeDoc/CPayloadEnvelopeDoc.h" + +using namespace Caf; + +/// A simple container for objects of type PayloadEnvelope +CPayloadEnvelopeDoc::CPayloadEnvelopeDoc() : + _clientId(CAFCOMMON_GUID_NULL), + _requestId(CAFCOMMON_GUID_NULL), + _isInitialized(false) {} +CPayloadEnvelopeDoc::~CPayloadEnvelopeDoc() {} + +/// Initializes the object with everything required by this +/// container. Once initialized, this object cannot +/// be changed (i.e. it is immutable). +void CPayloadEnvelopeDoc::initialize( + const UUID& clientId, + const UUID& requestId, + const std::string& pmeId, + const std::string& payloadType, + const std::string& payloadVersion, + const SmartPtrCAttachmentCollectionDoc& attachmentCollection, + const SmartPtrCProtocolCollectionDoc& protocolCollection, + const SmartPtrCPropertyCollectionDoc& headerCollection, + const std::string version) { + if (! _isInitialized) { + _clientId = clientId; + _requestId = requestId; + _pmeId = pmeId; + _payloadType = payloadType; + _payloadVersion = payloadVersion; + _attachmentCollection = attachmentCollection; + _protocolCollection = protocolCollection; + _headerCollection = headerCollection; + _version = version; + + _isInitialized = true; + } +} + +/// Accessor for the ClientId +UUID CPayloadEnvelopeDoc::getClientId() const { + return _clientId; +} + +/// Accessor for the RequestId +UUID CPayloadEnvelopeDoc::getRequestId() const { + return _requestId; +} + +/// Accessor for the PmeId +std::string CPayloadEnvelopeDoc::getPmeId() const { + return _pmeId; +} + +/// Accessor for the PayloadType +std::string CPayloadEnvelopeDoc::getPayloadType() const { + return _payloadType; +} + +/// Accessor for the PayloadVersion +std::string CPayloadEnvelopeDoc::getPayloadVersion() const { + return _payloadVersion; +} + +/// Accessor for the Protocol Collection +SmartPtrCProtocolCollectionDoc CPayloadEnvelopeDoc::getProtocolCollection() const { + return _protocolCollection; +} + +/// Accessor for the AttachmentCollection +SmartPtrCAttachmentCollectionDoc CPayloadEnvelopeDoc::getAttachmentCollection() const { + return _attachmentCollection; +} + +/// Accessor for the Headers +SmartPtrCPropertyCollectionDoc CPayloadEnvelopeDoc::getHeaderCollection() const { + return _headerCollection; +} + +/// Accessor for the version +std::string CPayloadEnvelopeDoc::getVersion() const { + return _version; +} + + + + + diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/PayloadEnvelopeDoc/stdafx.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/PayloadEnvelopeDoc/stdafx.h new file mode 100644 index 000000000..41d2451cf --- /dev/null +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/PayloadEnvelopeDoc/stdafx.h @@ -0,0 +1,22 @@ +/* + * Author: bwilliams + * Created: February 25, 2016 + * + * Copyright (c) 2016 Vmware, Inc. All rights reserved. + * -- VMware Confidential + * + */ + +#ifndef STDAFX_H_ +#define STDAFX_H_ + +#ifdef WIN32 + #define PAYLOADENVELOPEDOC_LINKAGE __declspec(dllexport) +#else + #define PAYLOADENVELOPEDOC_LINKAGE +#endif + +#include +#include "Doc/PayloadEnvelopeDoc/PayloadEnvelopeDocInc.h" + +#endif /* STDAFX_H_ */ diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/PersistenceDoc/CCertCollectionDoc.cpp b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/PersistenceDoc/CCertCollectionDoc.cpp new file mode 100644 index 000000000..7aa1b5938 --- /dev/null +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/PersistenceDoc/CCertCollectionDoc.cpp @@ -0,0 +1,42 @@ +/* + * Author: bwilliams + * Created: April 6, 2012 + * + * Copyright (c) 2012 Vmware, Inc. All rights reserved. + * -- VMware Confidential + * + * + */ + +#include "stdafx.h" +#include "Doc/PersistenceDoc/CCertCollectionDoc.h" + +using namespace Caf; + +/// A simple container for objects of type CertCollection +CCertCollectionDoc::CCertCollectionDoc() : + _isInitialized(false) {} +CCertCollectionDoc::~CCertCollectionDoc() {} + +/// Initializes the object with everything required by this +/// container. Once initialized, this object cannot +/// be changed (i.e. it is immutable). +void CCertCollectionDoc::initialize( + const std::deque certCollection) { + if (! _isInitialized) { + _certCollection = certCollection; + + _isInitialized = true; + } +} + +/// Accessor for the Cert +std::deque CCertCollectionDoc::getCert() const { + return _certCollection; +} + + + + + + diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/PersistenceDoc/CCertPathCollectionDoc.cpp b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/PersistenceDoc/CCertPathCollectionDoc.cpp new file mode 100644 index 000000000..19b84ef8e --- /dev/null +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/PersistenceDoc/CCertPathCollectionDoc.cpp @@ -0,0 +1,42 @@ +/* + * Author: bwilliams + * Created: April 6, 2012 + * + * Copyright (c) 2012 Vmware, Inc. All rights reserved. + * -- VMware Confidential + * + * + */ + +#include "stdafx.h" +#include "Doc/PersistenceDoc/CCertPathCollectionDoc.h" + +using namespace Caf; + +/// A simple container for objects of type CertPathCollection +CCertPathCollectionDoc::CCertPathCollectionDoc() : + _isInitialized(false) {} +CCertPathCollectionDoc::~CCertPathCollectionDoc() {} + +/// Initializes the object with everything required by this +/// container. Once initialized, this object cannot +/// be changed (i.e. it is immutable). +void CCertPathCollectionDoc::initialize( + const std::deque certPathCollection) { + if (! _isInitialized) { + _certPathCollection = certPathCollection; + + _isInitialized = true; + } +} + +/// Accessor for the Cert +std::deque CCertPathCollectionDoc::getCertPath() const { + return _certPathCollection; +} + + + + + + diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/PersistenceDoc/CLocalSecurityDoc.cpp b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/PersistenceDoc/CLocalSecurityDoc.cpp new file mode 100644 index 000000000..6cdcae254 --- /dev/null +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/PersistenceDoc/CLocalSecurityDoc.cpp @@ -0,0 +1,71 @@ +/* + * Author: bwilliams + * Created: Nov 16, 2015 + * + * Copyright (c) 2015 Vmware, Inc. All rights reserved. + * -- VMware Confidential + * + */ + +#include "stdafx.h" +#include "Doc/PersistenceDoc/CLocalSecurityDoc.h" + +using namespace Caf; + +/// A simple container for objects of type CLocalSecurityDoc +CLocalSecurityDoc::CLocalSecurityDoc() : + _isInitialized(false) {} +CLocalSecurityDoc::~CLocalSecurityDoc() {} + +/// Initializes the object with everything required by this +/// container. Once initialized, this object cannot +/// be changed (i.e. it is immutable). +void CLocalSecurityDoc::initialize( + const std::string& localId, + const std::string& privateKey, + const std::string& cert, + const std::string& privateKeyPath, + const std::string& certPath) { + if (! _isInitialized) { + _localId = localId; + _privateKey = privateKey; + _cert = cert; + + _privateKeyPath = privateKeyPath; + _certPath = certPath; + + _isInitialized = true; + } +} + +/// Accessor for the LocalId +std::string CLocalSecurityDoc::getLocalId() const { + return _localId; +} + +/// Accessor for the PrivateKey +std::string CLocalSecurityDoc::getPrivateKey() const { + return _privateKey; +} + +/// Accessor for the Cert +std::string CLocalSecurityDoc::getCert() const { + return _cert; +} + +/// Accessor for the PrivateKeyPath +std::string CLocalSecurityDoc::getPrivateKeyPath() const { + return _privateKeyPath; +} + +/// Accessor for the CertPath +std::string CLocalSecurityDoc::getCertPath() const { + return _certPath; +} + + + + + + + diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/PersistenceDoc/CPersistenceDoc.cpp b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/PersistenceDoc/CPersistenceDoc.cpp new file mode 100644 index 000000000..8d2a49457 --- /dev/null +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/PersistenceDoc/CPersistenceDoc.cpp @@ -0,0 +1,62 @@ +/* + * Author: bwilliams + * Created: Nov 16, 2015 + * + * Copyright (c) 2015 Vmware, Inc. All rights reserved. + * -- VMware Confidential + * + */ + +#include "stdafx.h" +#include "Doc/PersistenceDoc/CPersistenceDoc.h" + +using namespace Caf; + +/// A simple container for objects of type PersistenceEnvelope +CPersistenceDoc::CPersistenceDoc() : + _isInitialized(false) {} +CPersistenceDoc::~CPersistenceDoc() {} + +/// Initializes the object with everything required by this +/// container. Once initialized, this object cannot +/// be changed (i.e. it is immutable). +void CPersistenceDoc::initialize( + const SmartPtrCLocalSecurityDoc& localSecurity, + const SmartPtrCRemoteSecurityCollectionDoc& remoteSecurityCollection, + const SmartPtrCPersistenceProtocolCollectionDoc& persistenceProtocolCollection, + const std::string version) { + if (! _isInitialized) { + _localSecurity = localSecurity; + _remoteSecurityCollection = remoteSecurityCollection; + _persistenceProtocolCollection = persistenceProtocolCollection; + _version = version; + + _isInitialized = true; + } +} + +/// Accessor for the LocalSecurity +SmartPtrCLocalSecurityDoc CPersistenceDoc::getLocalSecurity() const { + return _localSecurity; +} + +/// Accessor for the Protocol Collection +SmartPtrCRemoteSecurityCollectionDoc CPersistenceDoc::getRemoteSecurityCollection() const { + return _remoteSecurityCollection; +} + +/// Accessor for the PersistenceProtocol +SmartPtrCPersistenceProtocolCollectionDoc CPersistenceDoc::getPersistenceProtocolCollection() const { + return _persistenceProtocolCollection; +} + +/// Accessor for the version +std::string CPersistenceDoc::getVersion() const { + return _version; +} + + + + + + diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/PersistenceDoc/CPersistenceProtocolCollectionDoc.cpp b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/PersistenceDoc/CPersistenceProtocolCollectionDoc.cpp new file mode 100644 index 000000000..8a78dcc3c --- /dev/null +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/PersistenceDoc/CPersistenceProtocolCollectionDoc.cpp @@ -0,0 +1,42 @@ +/* + * Author: bwilliams + * Created: April 6, 2012 + * + * Copyright (c) 2012 Vmware, Inc. All rights reserved. + * -- VMware Confidential + * + * + */ + +#include "stdafx.h" +#include "Doc/PersistenceDoc/CPersistenceProtocolCollectionDoc.h" + +using namespace Caf; + +/// A simple container for objects of type PersistenceProtocolCollection +CPersistenceProtocolCollectionDoc::CPersistenceProtocolCollectionDoc() : + _isInitialized(false) {} +CPersistenceProtocolCollectionDoc::~CPersistenceProtocolCollectionDoc() {} + +/// Initializes the object with everything required by this +/// container. Once initialized, this object cannot +/// be changed (i.e. it is immutable). +void CPersistenceProtocolCollectionDoc::initialize( + const std::deque persistenceProtocol) { + if (! _isInitialized) { + _persistenceProtocol = persistenceProtocol; + + _isInitialized = true; + } +} + +/// Accessor for the PersistenceProtocol +std::deque CPersistenceProtocolCollectionDoc::getPersistenceProtocol() const { + return _persistenceProtocol; +} + + + + + + diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/PersistenceDoc/CPersistenceProtocolDoc.cpp b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/PersistenceDoc/CPersistenceProtocolDoc.cpp new file mode 100644 index 000000000..c0d17c3bc --- /dev/null +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/PersistenceDoc/CPersistenceProtocolDoc.cpp @@ -0,0 +1,121 @@ +/* + * Author: bwilliams + * Created: Nov 16, 2015 + * + * Copyright (c) 2015 Vmware, Inc. All rights reserved. + * -- VMware Confidential + * + */ + +#include "stdafx.h" +#include "Doc/PersistenceDoc/CPersistenceProtocolDoc.h" + +using namespace Caf; + +/// A simple container for objects of type CPersistenceProtocolDoc +CPersistenceProtocolDoc::CPersistenceProtocolDoc() : + _isInitialized(false) {} +CPersistenceProtocolDoc::~CPersistenceProtocolDoc() {} + +/// Initializes the object with everything required by this +/// container. Once initialized, this object cannot +/// be changed (i.e. it is immutable). +void CPersistenceProtocolDoc::initialize( + const std::string& protocolName, + const std::string& uri, + const std::string& uriAmqp, + const std::string& uriTunnel, + const std::string& tlsCert, + const std::string& tlsProtocol, + const Cdeqstr& tlsCipherCollection, + const SmartPtrCCertCollectionDoc& tlsCertCollection, + const std::string& uriAmqpPath, + const std::string& uriTunnelPath, + const std::string& tlsCertPath, + const SmartPtrCCertPathCollectionDoc& tlsCertPathCollection) { + if (! _isInitialized) { + _protocolName = protocolName; + _uri = uri; + _uriAmqp = uriAmqp; + _uriTunnel = uriTunnel; + _tlsCert = tlsCert; + _tlsProtocol = tlsProtocol; + _tlsCipherCollection = tlsCipherCollection; + _tlsCertCollection = tlsCertCollection; + + _uriAmqpPath = uriAmqpPath; + _uriTunnelPath = uriTunnelPath; + _tlsCertPath = tlsCertPath; + _tlsCertPathCollection = tlsCertPathCollection; + + _isInitialized = true; + } +} + +/// Accessor for the ProtocolName +std::string CPersistenceProtocolDoc::getProtocolName() const { + return _protocolName; +} + +/// Accessor for the Uri +std::string CPersistenceProtocolDoc::getUri() const { + return _uri; +} + +/// Accessor for the UriAmqp +std::string CPersistenceProtocolDoc::getUriAmqp() const { + return _uriAmqp; +} + +/// Accessor for the UriTunnel +std::string CPersistenceProtocolDoc::getUriTunnel() const { + return _uriTunnel; +} + +/// Accessor for the TlsCert +std::string CPersistenceProtocolDoc::getTlsCert() const { + return _tlsCert; +} + +/// Accessor for the TlsProtocol +std::string CPersistenceProtocolDoc::getTlsProtocol() const { + return _tlsProtocol; +} + +/// Accessor for the tlsCipherCollection +Cdeqstr CPersistenceProtocolDoc::getTlsCipherCollection() const { + return _tlsCipherCollection; +} + +/// Accessor for the TlsCertCollection +SmartPtrCCertCollectionDoc CPersistenceProtocolDoc::getTlsCertCollection() const { + return _tlsCertCollection; +} + +/// Accessor for the UriAmqpPath +std::string CPersistenceProtocolDoc::getUriAmqpPath() const { + return _uriAmqpPath; +} + +/// Accessor for the UriTunnelPath +std::string CPersistenceProtocolDoc::getUriTunnelPath() const { + return _uriTunnelPath; +} + +/// Accessor for the TlsCertPath +std::string CPersistenceProtocolDoc::getTlsCertPath() const { + return _tlsCertPath; +} + +/// Accessor for the TlsCertPathCollection +SmartPtrCCertPathCollectionDoc CPersistenceProtocolDoc::getTlsCertPathCollection() const { + return _tlsCertPathCollection; +} + +Cdeqstr _tlsCipherCollection; + + + + + + diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/PersistenceDoc/CRemoteSecurityCollectionDoc.cpp b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/PersistenceDoc/CRemoteSecurityCollectionDoc.cpp new file mode 100644 index 000000000..6cc69a6c7 --- /dev/null +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/PersistenceDoc/CRemoteSecurityCollectionDoc.cpp @@ -0,0 +1,42 @@ +/* + * Author: bwilliams + * Created: April 6, 2012 + * + * Copyright (c) 2012 Vmware, Inc. All rights reserved. + * -- VMware Confidential + * + * + */ + +#include "stdafx.h" +#include "Doc/PersistenceDoc/CRemoteSecurityCollectionDoc.h" + +using namespace Caf; + +/// A simple container for objects of type RemoteSecurityCollection +CRemoteSecurityCollectionDoc::CRemoteSecurityCollectionDoc() : + _isInitialized(false) {} +CRemoteSecurityCollectionDoc::~CRemoteSecurityCollectionDoc() {} + +/// Initializes the object with everything required by this +/// container. Once initialized, this object cannot +/// be changed (i.e. it is immutable). +void CRemoteSecurityCollectionDoc::initialize( + const std::deque remoteSecurity) { + if (! _isInitialized) { + _remoteSecurity = remoteSecurity; + + _isInitialized = true; + } +} + +/// Accessor for the RemoteSecurity +std::deque CRemoteSecurityCollectionDoc::getRemoteSecurity() const { + return _remoteSecurity; +} + + + + + + diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/PersistenceDoc/CRemoteSecurityDoc.cpp b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/PersistenceDoc/CRemoteSecurityDoc.cpp new file mode 100644 index 000000000..d101b6acf --- /dev/null +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/PersistenceDoc/CRemoteSecurityDoc.cpp @@ -0,0 +1,85 @@ +/* + * Author: bwilliams + * Created: Nov 16, 2015 + * + * Copyright (c) 2015 Vmware, Inc. All rights reserved. + * -- VMware Confidential + * + */ + +#include "stdafx.h" +#include "Doc/PersistenceDoc/CRemoteSecurityDoc.h" + +using namespace Caf; + +/// A simple container for objects of type CRemoteSecurityDoc +CRemoteSecurityDoc::CRemoteSecurityDoc() : + _isInitialized(false) {} +CRemoteSecurityDoc::~CRemoteSecurityDoc() {} + +/// Initializes the object with everything required by this +/// container. Once initialized, this object cannot +/// be changed (i.e. it is immutable). +void CRemoteSecurityDoc::initialize( + const std::string& remoteId, + const std::string& protocolName, + const std::string& cmsCert, + const std::string& cmsCipherName, + const SmartPtrCCertCollectionDoc& cmsCertCollection, + const std::string& cmsCertPath, + const SmartPtrCCertPathCollectionDoc& cmsCertPathCollection) { + if (! _isInitialized) { + _remoteId = remoteId; + _protocolName = protocolName; + _cmsCert = cmsCert; + _cmsCipherName = cmsCipherName; + _cmsCertCollection = cmsCertCollection; + + _cmsCertPath = cmsCertPath; + _cmsCertPathCollection = cmsCertPathCollection; + + _isInitialized = true; + } +} + +/// Accessor for the RemoteId +std::string CRemoteSecurityDoc::getRemoteId() const { + return _remoteId; +} + +/// Accessor for the ProtocolName +std::string CRemoteSecurityDoc::getProtocolName() const { + return _protocolName; +} + +/// Accessor for the cmsCert +std::string CRemoteSecurityDoc::getCmsCert() const { + return _cmsCert; +} + +/// Accessor for the CmsCipher +std::string CRemoteSecurityDoc::getCmsCipherName() const { + return _cmsCipherName; +} + +/// Accessor for the CertCollection +SmartPtrCCertCollectionDoc CRemoteSecurityDoc::getCmsCertCollection() const { + return _cmsCertCollection; +} + +/// Accessor for the cmsCertPath +std::string CRemoteSecurityDoc::getCmsCertPath() const { + return _cmsCertPath; +} + +/// Accessor for the CertPathCollection +SmartPtrCCertPathCollectionDoc CRemoteSecurityDoc::getCmsCertPathCollection() const { + return _cmsCertPathCollection; +} + + + + + + + diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/PersistenceDoc/stdafx.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/PersistenceDoc/stdafx.h new file mode 100644 index 000000000..c3b4977f5 --- /dev/null +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/PersistenceDoc/stdafx.h @@ -0,0 +1,22 @@ +/* + * Author: bwilliams + * Created: February 25, 2016 + * + * Copyright (c) 2016 Vmware, Inc. All rights reserved. + * -- VMware Confidential + * + */ + +#ifndef STDAFX_H_ +#define STDAFX_H_ + +#ifdef WIN32 + #define PERSISTENCEDOC_LINKAGE __declspec(dllexport) +#else + #define PERSISTENCEDOC_LINKAGE +#endif + +#include +#include "Doc/PersistenceDoc/PersistenceDocInc.h" + +#endif /* STDAFX_H_ */ diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/ProviderInfraDoc/CClassCollectionDoc.cpp b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/ProviderInfraDoc/CClassCollectionDoc.cpp new file mode 100644 index 000000000..be7abf527 --- /dev/null +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/ProviderInfraDoc/CClassCollectionDoc.cpp @@ -0,0 +1,42 @@ +/* + * Author: bwilliams + * Created: April 6, 2012 + * + * Copyright (c) 2012 Vmware, Inc. All rights reserved. + * -- VMware Confidential + * + * + */ + +#include "stdafx.h" +#include "Doc/ProviderInfraDoc/CClassCollectionDoc.h" + +using namespace Caf; + +/// A simple container for objects of type ClassCollection +CClassCollectionDoc::CClassCollectionDoc() : + _isInitialized(false) {} +CClassCollectionDoc::~CClassCollectionDoc() {} + +/// Initializes the object with everything required by this +/// container. Once initialized, this object cannot +/// be changed (i.e. it is immutable). +void CClassCollectionDoc::initialize( + const std::deque fullyQualifiedClass) { + if (! _isInitialized) { + _fullyQualifiedClass = fullyQualifiedClass; + + _isInitialized = true; + } +} + +/// Accessor for the FullyQualifiedClass +std::deque CClassCollectionDoc::getFullyQualifiedClass() const { + return _fullyQualifiedClass; +} + + + + + + diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/ProviderInfraDoc/CProviderRegDoc.cpp b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/ProviderInfraDoc/CProviderRegDoc.cpp new file mode 100644 index 000000000..7e2a9bf79 --- /dev/null +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/ProviderInfraDoc/CProviderRegDoc.cpp @@ -0,0 +1,78 @@ +/* + * Author: bwilliams + * Created: April 6, 2012 + * + * Copyright (c) 2012 Vmware, Inc. All rights reserved. + * -- VMware Confidential + * + * + */ + +#include "stdafx.h" +#include "Doc/ProviderInfraDoc/CProviderRegDoc.h" + +using namespace Caf; + +/// A simple container for objects of type ProviderReg +CProviderRegDoc::CProviderRegDoc() : + _staleSec(0), + _isSchemaVisible(false), + _isInitialized(false) {} +CProviderRegDoc::~CProviderRegDoc() {} + +/// Initializes the object with everything required by this +/// container. Once initialized, this object cannot +/// be changed (i.e. it is immutable). +void CProviderRegDoc::initialize( + const std::string providerNamespace, + const std::string providerName, + const std::string providerVersion, + const int32 staleSec, + const bool isSchemaVisible, + const std::string invokerRelPath) { + if (! _isInitialized) { + _providerNamespace = providerNamespace; + _providerName = providerName; + _providerVersion = providerVersion; + _staleSec = staleSec; + _isSchemaVisible = isSchemaVisible; + _invokerRelPath = invokerRelPath; + + _isInitialized = true; + } +} + +/// Accessor for the ProviderNamespace +std::string CProviderRegDoc::getProviderNamespace() const { + return _providerNamespace; +} + +/// Accessor for the ProviderName +std::string CProviderRegDoc::getProviderName() const { + return _providerName; +} + +/// Accessor for the ProviderVersion +std::string CProviderRegDoc::getProviderVersion() const { + return _providerVersion; +} + +/// Accessor for the StaleSec +int32 CProviderRegDoc::getStaleSec() const { + return _staleSec; +} + +/// Accessor for the IsSchemaVisible +bool CProviderRegDoc::getIsSchemaVisible() const { + return _isSchemaVisible; +} + +/// Accessor for the InvokerRelPath +std::string CProviderRegDoc::getInvokerRelPath() const { + return _invokerRelPath; +} + + + + + diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/ProviderInfraDoc/CSchemaSummaryDoc.cpp b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/ProviderInfraDoc/CSchemaSummaryDoc.cpp new file mode 100644 index 000000000..5ca669196 --- /dev/null +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/ProviderInfraDoc/CSchemaSummaryDoc.cpp @@ -0,0 +1,70 @@ +/* + * Author: bwilliams + * Created: April 6, 2012 + * + * Copyright (c) 2012 Vmware, Inc. All rights reserved. + * -- VMware Confidential + * + * + */ + +#include "stdafx.h" +#include "Doc/ProviderInfraDoc/CSchemaSummaryDoc.h" + +using namespace Caf; + +/// A simple container for objects of type SchemaSummary +CSchemaSummaryDoc::CSchemaSummaryDoc() : + _isInitialized(false) {} +CSchemaSummaryDoc::~CSchemaSummaryDoc() {} + +/// Initializes the object with everything required by this +/// container. Once initialized, this object cannot +/// be changed (i.e. it is immutable). +void CSchemaSummaryDoc::initialize( + const std::string providerNamespace, + const std::string providerName, + const std::string providerVersion, + const SmartPtrCClassCollectionDoc classCollection, + const std::string invokerPath) { + if (! _isInitialized) { + _providerNamespace = providerNamespace; + _providerName = providerName; + _providerVersion = providerVersion; + _classCollection = classCollection; + _invokerPath = invokerPath; + + _isInitialized = true; + } +} + +/// Accessor for the ProviderNamespace +std::string CSchemaSummaryDoc::getProviderNamespace() const { + return _providerNamespace; +} + +/// Accessor for the ProviderName +std::string CSchemaSummaryDoc::getProviderName() const { + return _providerName; +} + +/// Accessor for the ProviderVersion +std::string CSchemaSummaryDoc::getProviderVersion() const { + return _providerVersion; +} + +/// Accessor for the ClassCollection +SmartPtrCClassCollectionDoc CSchemaSummaryDoc::getClassCollection() const { + return _classCollection; +} + +/// Accessor for the InvokerPath +std::string CSchemaSummaryDoc::getInvokerPath() const { + return _invokerPath; +} + + + + + + diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/ProviderInfraDoc/stdafx.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/ProviderInfraDoc/stdafx.h new file mode 100644 index 000000000..05101b036 --- /dev/null +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/ProviderInfraDoc/stdafx.h @@ -0,0 +1,22 @@ +/* + * Author: bwilliams + * Created: February 25, 2016 + * + * Copyright (c) 2016 Vmware, Inc. All rights reserved. + * -- VMware Confidential + * + */ + +#ifndef STDAFX_H_ +#define STDAFX_H_ + +#ifdef WIN32 + #define PROVIDERINFRADOC_LINKAGE __declspec(dllexport) +#else + #define PROVIDERINFRADOC_LINKAGE +#endif + +#include +#include "Doc/ProviderInfraDoc/ProviderInfraDocInc.h" + +#endif /* STDAFX_H_ */ diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/ProviderRequestDoc/CProviderBatchDoc.cpp b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/ProviderRequestDoc/CProviderBatchDoc.cpp new file mode 100644 index 000000000..11af36a8a --- /dev/null +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/ProviderRequestDoc/CProviderBatchDoc.cpp @@ -0,0 +1,56 @@ +/* + * Author: bwilliams + * Created: April 6, 2012 + * + * Copyright (c) 2012 Vmware, Inc. All rights reserved. + * -- VMware Confidential + * + * + */ + +#include "stdafx.h" +#include "Doc/ProviderRequestDoc/CProviderBatchDoc.h" + +using namespace Caf; + +/// A simple container for objects of type ProviderBatch +CProviderBatchDoc::CProviderBatchDoc() : + _isInitialized(false) {} +CProviderBatchDoc::~CProviderBatchDoc() {} + +/// Initializes the object with everything required by this +/// container. Once initialized, this object cannot +/// be changed (i.e. it is immutable). +void CProviderBatchDoc::initialize( + const std::string outputDir, + const SmartPtrCProviderCollectInstancesCollectionDoc collectInstancesCollection, + const SmartPtrCProviderInvokeOperationCollectionDoc invokeOperationCollection) { + if (! _isInitialized) { + _outputDir = outputDir; + _collectInstancesCollection = collectInstancesCollection; + _invokeOperationCollection = invokeOperationCollection; + + _isInitialized = true; + } +} + +/// Accessor for the OutputDir +std::string CProviderBatchDoc::getOutputDir() const { + return _outputDir; +} + +/// Accessor for the CollectInstancesCollection +SmartPtrCProviderCollectInstancesCollectionDoc CProviderBatchDoc::getCollectInstancesCollection() const { + return _collectInstancesCollection; +} + +/// Accessor for the InvokeOperationCollection +SmartPtrCProviderInvokeOperationCollectionDoc CProviderBatchDoc::getInvokeOperationCollection() const { + return _invokeOperationCollection; +} + + + + + + diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/ProviderRequestDoc/CProviderCollectInstancesCollectionDoc.cpp b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/ProviderRequestDoc/CProviderCollectInstancesCollectionDoc.cpp new file mode 100644 index 000000000..2f28600c7 --- /dev/null +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/ProviderRequestDoc/CProviderCollectInstancesCollectionDoc.cpp @@ -0,0 +1,42 @@ +/* + * Author: bwilliams + * Created: April 6, 2012 + * + * Copyright (c) 2012 Vmware, Inc. All rights reserved. + * -- VMware Confidential + * + * + */ + +#include "stdafx.h" +#include "Doc/ProviderRequestDoc/CProviderCollectInstancesCollectionDoc.h" + +using namespace Caf; + +/// A simple container for objects of type ProviderCollectInstancesCollection +CProviderCollectInstancesCollectionDoc::CProviderCollectInstancesCollectionDoc() : + _isInitialized(false) {} +CProviderCollectInstancesCollectionDoc::~CProviderCollectInstancesCollectionDoc() {} + +/// Initializes the object with everything required by this +/// container. Once initialized, this object cannot +/// be changed (i.e. it is immutable). +void CProviderCollectInstancesCollectionDoc::initialize( + const std::deque collectInstances) { + if (! _isInitialized) { + _collectInstances = collectInstances; + + _isInitialized = true; + } +} + +/// Accessor for the CollectInstances +std::deque CProviderCollectInstancesCollectionDoc::getCollectInstances() const { + return _collectInstances; +} + + + + + + diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/ProviderRequestDoc/CProviderCollectInstancesDoc.cpp b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/ProviderRequestDoc/CProviderCollectInstancesDoc.cpp new file mode 100644 index 000000000..422c074ea --- /dev/null +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/ProviderRequestDoc/CProviderCollectInstancesDoc.cpp @@ -0,0 +1,77 @@ +/* + * Author: bwilliams + * Created: April 6, 2012 + * + * Copyright (c) 2012 Vmware, Inc. All rights reserved. + * -- VMware Confidential + * + * + */ + +#include "stdafx.h" +#include "Doc/ProviderRequestDoc/CProviderCollectInstancesDoc.h" + +using namespace Caf; + +/// A simple container for objects of type ProviderCollectInstances +CProviderCollectInstancesDoc::CProviderCollectInstancesDoc() : + _jobId(CAFCOMMON_GUID_NULL), + _isInitialized(false) {} +CProviderCollectInstancesDoc::~CProviderCollectInstancesDoc() {} + +/// Initializes the object with everything required by this +/// container. Once initialized, this object cannot +/// be changed (i.e. it is immutable). +void CProviderCollectInstancesDoc::initialize( + const std::string classNamespace, + const std::string className, + const std::string classVersion, + const UUID jobId, + const std::string outputDir, + const SmartPtrCParameterCollectionDoc parameterCollection) { + if (! _isInitialized) { + _classNamespace = classNamespace; + _className = className; + _classVersion = classVersion; + _jobId = jobId; + _outputDir = outputDir; + _parameterCollection = parameterCollection; + + _isInitialized = true; + } +} + +/// Accessor for the ClassNamespace +std::string CProviderCollectInstancesDoc::getClassNamespace() const { + return _classNamespace; +} + +/// Accessor for the ClassName +std::string CProviderCollectInstancesDoc::getClassName() const { + return _className; +} + +/// Accessor for the ClassVersion +std::string CProviderCollectInstancesDoc::getClassVersion() const { + return _classVersion; +} + +/// Accessor for the JobId +UUID CProviderCollectInstancesDoc::getJobId() const { + return _jobId; +} + +/// Accessor for the OutputDir +std::string CProviderCollectInstancesDoc::getOutputDir() const { + return _outputDir; +} + +/// Accessor for the ParameterCollection +SmartPtrCParameterCollectionDoc CProviderCollectInstancesDoc::getParameterCollection() const { + return _parameterCollection; +} + + + + + diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/ProviderRequestDoc/CProviderCollectSchemaRequestDoc.cpp b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/ProviderRequestDoc/CProviderCollectSchemaRequestDoc.cpp new file mode 100644 index 000000000..65299ce63 --- /dev/null +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/ProviderRequestDoc/CProviderCollectSchemaRequestDoc.cpp @@ -0,0 +1,79 @@ +/* + * Author: bwilliams + * Created: April 6, 2012 + * + * Copyright (c) 2012 Vmware, Inc. All rights reserved. + * -- VMware Confidential + * + * + */ + +#include "stdafx.h" +#include "Doc/ProviderRequestDoc/CProviderCollectSchemaRequestDoc.h" + +using namespace Caf; + +/// A simple container for objects of type ProviderCollectSchemaRequest +CProviderCollectSchemaRequestDoc::CProviderCollectSchemaRequestDoc() : + _clientId(CAFCOMMON_GUID_NULL), + _requestId(CAFCOMMON_GUID_NULL), + _jobId(CAFCOMMON_GUID_NULL), + _isInitialized(false) {} +CProviderCollectSchemaRequestDoc::~CProviderCollectSchemaRequestDoc() {} + +/// Initializes the object with everything required by this +/// container. Once initialized, this object cannot +/// be changed (i.e. it is immutable). +void CProviderCollectSchemaRequestDoc::initialize( + const UUID clientId, + const UUID requestId, + const std::string pmeId, + const UUID jobId, + const std::string outputDir, + const SmartPtrCProviderRequestHeaderDoc requestHeader) { + if (! _isInitialized) { + _clientId = clientId; + _requestId = requestId; + _pmeId = pmeId; + _jobId = jobId; + _outputDir = outputDir; + _requestHeader = requestHeader; + + _isInitialized = true; + } +} + +/// Accessor for the ClientId +UUID CProviderCollectSchemaRequestDoc::getClientId() const { + return _clientId; +} + +/// Accessor for the RequestId +UUID CProviderCollectSchemaRequestDoc::getRequestId() const { + return _requestId; +} + +/// Accessor for the PmeId +std::string CProviderCollectSchemaRequestDoc::getPmeId() const { + return _pmeId; +} + +/// Accessor for the JobId +UUID CProviderCollectSchemaRequestDoc::getJobId() const { + return _jobId; +} + +/// Accessor for the OutputDir +std::string CProviderCollectSchemaRequestDoc::getOutputDir() const { + return _outputDir; +} + +/// Accessor for the RequestHeader +SmartPtrCProviderRequestHeaderDoc CProviderCollectSchemaRequestDoc::getRequestHeader() const { + return _requestHeader; +} + + + + + diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/ProviderRequestDoc/CProviderInvokeOperationCollectionDoc.cpp b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/ProviderRequestDoc/CProviderInvokeOperationCollectionDoc.cpp new file mode 100644 index 000000000..84fd4f42d --- /dev/null +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/ProviderRequestDoc/CProviderInvokeOperationCollectionDoc.cpp @@ -0,0 +1,42 @@ +/* + * Author: bwilliams + * Created: April 6, 2012 + * + * Copyright (c) 2012 Vmware, Inc. All rights reserved. + * -- VMware Confidential + * + * + */ + +#include "stdafx.h" +#include "Doc/ProviderRequestDoc/CProviderInvokeOperationCollectionDoc.h" + +using namespace Caf; + +/// A simple container for objects of type ProviderInvokeOperationCollection +CProviderInvokeOperationCollectionDoc::CProviderInvokeOperationCollectionDoc() : + _isInitialized(false) {} +CProviderInvokeOperationCollectionDoc::~CProviderInvokeOperationCollectionDoc() {} + +/// Initializes the object with everything required by this +/// container. Once initialized, this object cannot +/// be changed (i.e. it is immutable). +void CProviderInvokeOperationCollectionDoc::initialize( + const std::deque invokeOperation) { + if (! _isInitialized) { + _invokeOperation = invokeOperation; + + _isInitialized = true; + } +} + +/// Accessor for the InvokeOperation +std::deque CProviderInvokeOperationCollectionDoc::getInvokeOperation() const { + return _invokeOperation; +} + + + + + + diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/ProviderRequestDoc/CProviderInvokeOperationDoc.cpp b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/ProviderRequestDoc/CProviderInvokeOperationDoc.cpp new file mode 100644 index 000000000..270de7dfc --- /dev/null +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/ProviderRequestDoc/CProviderInvokeOperationDoc.cpp @@ -0,0 +1,77 @@ +/* + * Author: bwilliams + * Created: April 6, 2012 + * + * Copyright (c) 2012 Vmware, Inc. All rights reserved. + * -- VMware Confidential + * + * + */ + +#include "stdafx.h" +#include "Doc/ProviderRequestDoc/CProviderInvokeOperationDoc.h" + +using namespace Caf; + +/// A simple container for objects of type ProviderInvokeOperation +CProviderInvokeOperationDoc::CProviderInvokeOperationDoc() : + _jobId(CAFCOMMON_GUID_NULL), + _isInitialized(false) {} +CProviderInvokeOperationDoc::~CProviderInvokeOperationDoc() {} + +/// Initializes the object with everything required by this +/// container. Once initialized, this object cannot +/// be changed (i.e. it is immutable). +void CProviderInvokeOperationDoc::initialize( + const std::string classNamespace, + const std::string className, + const std::string classVersion, + const UUID jobId, + const std::string outputDir, + const SmartPtrCOperationDoc operation) { + if (! _isInitialized) { + _classNamespace = classNamespace; + _className = className; + _classVersion = classVersion; + _jobId = jobId; + _outputDir = outputDir; + _operation = operation; + + _isInitialized = true; + } +} + +/// Accessor for the ClassNamespace +std::string CProviderInvokeOperationDoc::getClassNamespace() const { + return _classNamespace; +} + +/// Accessor for the ClassName +std::string CProviderInvokeOperationDoc::getClassName() const { + return _className; +} + +/// Accessor for the ClassVersion +std::string CProviderInvokeOperationDoc::getClassVersion() const { + return _classVersion; +} + +/// Accessor for the JobId +UUID CProviderInvokeOperationDoc::getJobId() const { + return _jobId; +} + +/// Accessor for the OutputDir +std::string CProviderInvokeOperationDoc::getOutputDir() const { + return _outputDir; +} + +/// Accessor for the Operation +SmartPtrCOperationDoc CProviderInvokeOperationDoc::getOperation() const { + return _operation; +} + + + + + diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/ProviderRequestDoc/CProviderRequestConfigDoc.cpp b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/ProviderRequestDoc/CProviderRequestConfigDoc.cpp new file mode 100644 index 000000000..212ed5bd6 --- /dev/null +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/ProviderRequestDoc/CProviderRequestConfigDoc.cpp @@ -0,0 +1,49 @@ +/* + * Author: bwilliams + * Created: April 6, 2012 + * + * Copyright (c) 2012 Vmware, Inc. All rights reserved. + * -- VMware Confidential + * + * + */ + +#include "stdafx.h" +#include "Doc/ProviderRequestDoc/CProviderRequestConfigDoc.h" + +using namespace Caf; + +/// A simple container for objects of type ProviderRequestConfig +CProviderRequestConfigDoc::CProviderRequestConfigDoc() : + _isInitialized(false) {} +CProviderRequestConfigDoc::~CProviderRequestConfigDoc() {} + +/// Initializes the object with everything required by this +/// container. Once initialized, this object cannot +/// be changed (i.e. it is immutable). +void CProviderRequestConfigDoc::initialize( + const std::string responseFormatType, + const SmartPtrCLoggingLevelCollectionDoc loggingLevelCollection) { + if (! _isInitialized) { + _responseFormatType = responseFormatType; + _loggingLevelCollection = loggingLevelCollection; + + _isInitialized = true; + } +} + +/// Accessor for the ResponseFormatType +std::string CProviderRequestConfigDoc::getResponseFormatType() const { + return _responseFormatType; +} + +/// Accessor for the LoggingLevelCollection +SmartPtrCLoggingLevelCollectionDoc CProviderRequestConfigDoc::getLoggingLevelCollection() const { + return _loggingLevelCollection; +} + + + + + + diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/ProviderRequestDoc/CProviderRequestDoc.cpp b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/ProviderRequestDoc/CProviderRequestDoc.cpp new file mode 100644 index 000000000..203b34885 --- /dev/null +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/ProviderRequestDoc/CProviderRequestDoc.cpp @@ -0,0 +1,78 @@ +/* + * Author: bwilliams + * Created: April 6, 2012 + * + * Copyright (c) 2012 Vmware, Inc. All rights reserved. + * -- VMware Confidential + * + * + */ + +#include "stdafx.h" +#include "Doc/ProviderRequestDoc/CProviderRequestDoc.h" + +using namespace Caf; + +/// A simple container for objects of type ProviderRequest +CProviderRequestDoc::CProviderRequestDoc() : + _clientId(CAFCOMMON_GUID_NULL), + _requestId(CAFCOMMON_GUID_NULL), + _isInitialized(false) {} +CProviderRequestDoc::~CProviderRequestDoc() {} + +/// Initializes the object with everything required by this +/// container. Once initialized, this object cannot +/// be changed (i.e. it is immutable). +void CProviderRequestDoc::initialize( + const UUID clientId, + const UUID requestId, + const std::string pmeId, + const SmartPtrCProviderRequestHeaderDoc requestHeader, + const SmartPtrCProviderBatchDoc batch, + const SmartPtrCAttachmentCollectionDoc attachmentCollection) { + if (! _isInitialized) { + _clientId = clientId; + _requestId = requestId; + _pmeId = pmeId; + _requestHeader = requestHeader; + _batch = batch; + _attachmentCollection = attachmentCollection; + + _isInitialized = true; + } +} + +/// Accessor for the ClientId +UUID CProviderRequestDoc::getClientId() const { + return _clientId; +} + +/// Accessor for the RequestId +UUID CProviderRequestDoc::getRequestId() const { + return _requestId; +} + +/// Accessor for the PmeId +std::string CProviderRequestDoc::getPmeId() const { + return _pmeId; +} + +/// Accessor for the RequestHeader +SmartPtrCProviderRequestHeaderDoc CProviderRequestDoc::getRequestHeader() const { + return _requestHeader; +} + +/// Accessor for the Batch +SmartPtrCProviderBatchDoc CProviderRequestDoc::getBatch() const { + return _batch; +} + +/// Accessor for the AttachmentCollection +SmartPtrCAttachmentCollectionDoc CProviderRequestDoc::getAttachmentCollection() const { + return _attachmentCollection; +} + + + + + diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/ProviderRequestDoc/CProviderRequestHeaderDoc.cpp b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/ProviderRequestDoc/CProviderRequestHeaderDoc.cpp new file mode 100644 index 000000000..e279d794c --- /dev/null +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/ProviderRequestDoc/CProviderRequestHeaderDoc.cpp @@ -0,0 +1,49 @@ +/* + * Author: bwilliams + * Created: April 6, 2012 + * + * Copyright (c) 2012 Vmware, Inc. All rights reserved. + * -- VMware Confidential + * + * + */ + +#include "stdafx.h" +#include "Doc/ProviderRequestDoc/CProviderRequestHeaderDoc.h" + +using namespace Caf; + +/// A simple container for objects of type ProviderRequestHeader +CProviderRequestHeaderDoc::CProviderRequestHeaderDoc() : + _isInitialized(false) {} +CProviderRequestHeaderDoc::~CProviderRequestHeaderDoc() {} + +/// Initializes the object with everything required by this +/// container. Once initialized, this object cannot +/// be changed (i.e. it is immutable). +void CProviderRequestHeaderDoc::initialize( + const SmartPtrCProviderRequestConfigDoc requestConfig, + const SmartPtrCPropertyCollectionDoc echoPropertyBag) { + if (! _isInitialized) { + _requestConfig = requestConfig; + _echoPropertyBag = echoPropertyBag; + + _isInitialized = true; + } +} + +/// Accessor for the RequestConfig +SmartPtrCProviderRequestConfigDoc CProviderRequestHeaderDoc::getRequestConfig() const { + return _requestConfig; +} + +/// Accessor for the EchoPropertyBag +SmartPtrCPropertyCollectionDoc CProviderRequestHeaderDoc::getEchoPropertyBag() const { + return _echoPropertyBag; +} + + + + + + diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/ProviderRequestDoc/stdafx.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/ProviderRequestDoc/stdafx.h new file mode 100644 index 000000000..216288e3f --- /dev/null +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/ProviderRequestDoc/stdafx.h @@ -0,0 +1,22 @@ +/* + * Author: bwilliams + * Created: February 25, 2016 + * + * Copyright (c) 2016 Vmware, Inc. All rights reserved. + * -- VMware Confidential + * + */ + +#ifndef STDAFX_H_ +#define STDAFX_H_ + +#ifdef WIN32 + #define PROVIDERREQUESTDOC_LINKAGE __declspec(dllexport) +#else + #define PROVIDERREQUESTDOC_LINKAGE +#endif + +#include +#include "Doc/ProviderRequestDoc/ProviderRequestDocInc.h" + +#endif /* STDAFX_H_ */ diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/ProviderResultsDoc/CCdifDoc.cpp b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/ProviderResultsDoc/CCdifDoc.cpp new file mode 100644 index 000000000..ee492e626 --- /dev/null +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/ProviderResultsDoc/CCdifDoc.cpp @@ -0,0 +1,56 @@ +/* + * Author: bwilliams + * Created: April 6, 2012 + * + * Copyright (c) 2012 Vmware, Inc. All rights reserved. + * -- VMware Confidential + * + * + */ + +#include "stdafx.h" +#include "Doc/ProviderResultsDoc/CCdifDoc.h" + +using namespace Caf; + +/// A simple container for objects of type Cdif +CCdifDoc::CCdifDoc() : + _isInitialized(false) {} +CCdifDoc::~CCdifDoc() {} + +/// Initializes the object with everything required by this +/// container. Once initialized, this object cannot +/// be changed (i.e. it is immutable). +void CCdifDoc::initialize( + const SmartPtrCRequestIdentifierDoc requestIdentifier, + const SmartPtrCDefinitionObjectCollectionDoc definitionObjectCollection, + const SmartPtrCSchemaDoc schema) { + if (! _isInitialized) { + _requestIdentifier = requestIdentifier; + _definitionObjectCollection = definitionObjectCollection; + _schema = schema; + + _isInitialized = true; + } +} + +/// Accessor for the RequestIdentifier +SmartPtrCRequestIdentifierDoc CCdifDoc::getRequestIdentifier() const { + return _requestIdentifier; +} + +/// Accessor for the DefinitionObjectCollection +SmartPtrCDefinitionObjectCollectionDoc CCdifDoc::getDefinitionObjectCollection() const { + return _definitionObjectCollection; +} + +/// Accessor for the Schema +SmartPtrCSchemaDoc CCdifDoc::getSchema() const { + return _schema; +} + + + + + + diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/ProviderResultsDoc/CDefinitionObjectCollectionDoc.cpp b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/ProviderResultsDoc/CDefinitionObjectCollectionDoc.cpp new file mode 100644 index 000000000..da388a46e --- /dev/null +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/ProviderResultsDoc/CDefinitionObjectCollectionDoc.cpp @@ -0,0 +1,42 @@ +/* + * Author: bwilliams + * Created: April 6, 2012 + * + * Copyright (c) 2012 Vmware, Inc. All rights reserved. + * -- VMware Confidential + * + * + */ + +#include "stdafx.h" +#include "Doc/ProviderResultsDoc/CDefinitionObjectCollectionDoc.h" + +using namespace Caf; + +/// Set of elements containing data returned as a result of a provider collection or action +CDefinitionObjectCollectionDoc::CDefinitionObjectCollectionDoc() : + _isInitialized(false) {} +CDefinitionObjectCollectionDoc::~CDefinitionObjectCollectionDoc() {} + +/// Initializes the object with everything required by this +/// container. Once initialized, this object cannot +/// be changed (i.e. it is immutable). +void CDefinitionObjectCollectionDoc::initialize( + const std::deque value) { + if (! _isInitialized) { + _value = value; + + _isInitialized = true; + } +} + +/// Accessor for the Value +std::deque CDefinitionObjectCollectionDoc::getValue() const { + return _value; +} + + + + + + diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/ProviderResultsDoc/CRequestIdentifierDoc.cpp b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/ProviderResultsDoc/CRequestIdentifierDoc.cpp new file mode 100644 index 000000000..bb53de8c4 --- /dev/null +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/ProviderResultsDoc/CRequestIdentifierDoc.cpp @@ -0,0 +1,80 @@ +/* + * Author: bwilliams + * Created: April 6, 2012 + * + * Copyright (c) 2012 Vmware, Inc. All rights reserved. + * -- VMware Confidential + * + * + */ + +#include "stdafx.h" +#include "Doc/ProviderResultsDoc/CRequestIdentifierDoc.h" + +using namespace Caf; + +/// Fields that allow client to determine which request resulted in this response document +CRequestIdentifierDoc::CRequestIdentifierDoc() : + _clientId(CAFCOMMON_GUID_NULL), + _requestId(CAFCOMMON_GUID_NULL), + _jobId(CAFCOMMON_GUID_NULL), + _sessionId(CAFCOMMON_GUID_NULL), + _isInitialized(false) {} +CRequestIdentifierDoc::~CRequestIdentifierDoc() {} + +/// Initializes the object with everything required by this +/// container. Once initialized, this object cannot +/// be changed (i.e. it is immutable). +void CRequestIdentifierDoc::initialize( + const UUID clientId, + const UUID requestId, + const std::string pmeId, + const UUID jobId, + const SmartPtrCActionClassDoc actionClass, + const UUID sessionId) { + if (! _isInitialized) { + _clientId = clientId; + _requestId = requestId; + _pmeId = pmeId; + _jobId = jobId; + _actionClass = actionClass; + _sessionId = sessionId; + + _isInitialized = true; + } +} + +/// Accessor for the ClientId +UUID CRequestIdentifierDoc::getClientId() const { + return _clientId; +} + +/// Accessor for the RequestId +UUID CRequestIdentifierDoc::getRequestId() const { + return _requestId; +} + +/// Accessor for the PmeId +std::string CRequestIdentifierDoc::getPmeId() const { + return _pmeId; +} + +/// Identifier of the specific job within the request +UUID CRequestIdentifierDoc::getJobId() const { + return _jobId; +} + +/// Accessor for the ActionClass +SmartPtrCActionClassDoc CRequestIdentifierDoc::getActionClass() const { + return _actionClass; +} + +/// Client-configurable identifier that is opaque (not used) by the Common Agent Framework +UUID CRequestIdentifierDoc::getSessionId() const { + return _sessionId; +} + + + + + diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/ProviderResultsDoc/CSchemaDoc.cpp b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/ProviderResultsDoc/CSchemaDoc.cpp new file mode 100644 index 000000000..f59b121a7 --- /dev/null +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/ProviderResultsDoc/CSchemaDoc.cpp @@ -0,0 +1,63 @@ +/* + * Author: bwilliams + * Created: April 6, 2012 + * + * Copyright (c) 2012 Vmware, Inc. All rights reserved. + * -- VMware Confidential + * + * + */ + +#include "stdafx.h" +#include "Doc/ProviderResultsDoc/CSchemaDoc.h" + +using namespace Caf; + +/// Set of elements describing the objects that can be generated by the provider +CSchemaDoc::CSchemaDoc() : + _isInitialized(false) {} +CSchemaDoc::~CSchemaDoc() {} + +/// Initializes the object with everything required by this +/// container. Once initialized, this object cannot +/// be changed (i.e. it is immutable). +void CSchemaDoc::initialize( + const std::deque dataClassCollection, + const std::deque actionClassCollection, + const std::deque logicalRelationshipCollection, + const std::deque physicalRelationshipCollection) { + if (! _isInitialized) { + _dataClassCollection = dataClassCollection; + _actionClassCollection = actionClassCollection; + _logicalRelationshipCollection = logicalRelationshipCollection; + _physicalRelationshipCollection = physicalRelationshipCollection; + + _isInitialized = true; + } +} + +/// Accessor for the DataClassCollection +std::deque CSchemaDoc::getDataClassCollection() const { + return _dataClassCollection; +} + +/// Accessor for the ActionClassCollection +std::deque CSchemaDoc::getActionClassCollection() const { + return _actionClassCollection; +} + +/// Accessor for the LogicalRelationshipCollection +std::deque CSchemaDoc::getLogicalRelationshipCollection() const { + return _logicalRelationshipCollection; +} + +/// Accessor for the PhysicalRelationshipCollection +std::deque CSchemaDoc::getPhysicalRelationshipCollection() const { + return _physicalRelationshipCollection; +} + + + + + + diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/ProviderResultsDoc/stdafx.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/ProviderResultsDoc/stdafx.h new file mode 100644 index 000000000..ef81fc79f --- /dev/null +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/ProviderResultsDoc/stdafx.h @@ -0,0 +1,22 @@ +/* + * Author: bwilliams + * Created: February 25, 2016 + * + * Copyright (c) 2016 Vmware, Inc. All rights reserved. + * -- VMware Confidential + * + */ + +#ifndef STDAFX_H_ +#define STDAFX_H_ + +#ifdef WIN32 + #define PROVIDERRESULTSDOC_LINKAGE __declspec(dllexport) +#else + #define PROVIDERRESULTSDOC_LINKAGE +#endif + +#include +#include "Doc/ProviderResultsDoc/ProviderResultsDocInc.h" + +#endif /* STDAFX_H_ */ diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/ResponseDoc/CErrorResponseDoc.cpp b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/ResponseDoc/CErrorResponseDoc.cpp new file mode 100644 index 000000000..fad598d25 --- /dev/null +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/ResponseDoc/CErrorResponseDoc.cpp @@ -0,0 +1,71 @@ +/* + * Author: bwilliams + * Created: April 6, 2012 + * + * Copyright (c) 2012 Vmware, Inc. All rights reserved. + * -- VMware Confidential + * + * + */ + +#include "stdafx.h" +#include "Doc/ResponseDoc/CErrorResponseDoc.h" + +using namespace Caf; + +/// A simple container for objects of type ErrorResponse +CErrorResponseDoc::CErrorResponseDoc() : + _clientId(CAFCOMMON_GUID_NULL), + _requestId(CAFCOMMON_GUID_NULL), + _isInitialized(false) {} +CErrorResponseDoc::~CErrorResponseDoc() {} + +/// Initializes the object with everything required by this +/// container. Once initialized, this object cannot +/// be changed (i.e. it is immutable). +void CErrorResponseDoc::initialize( + const UUID clientId, + const UUID requestId, + const std::string pmeId, + const SmartPtrCResponseHeaderDoc responseHeader, + const std::string errorMessage) { + if (! _isInitialized) { + _clientId = clientId; + _requestId = requestId; + _pmeId = pmeId; + _responseHeader = responseHeader; + _errorMessage = errorMessage; + + _isInitialized = true; + } +} + +/// Accessor for the ClientId +UUID CErrorResponseDoc::getClientId() const { + return _clientId; +} + +/// Accessor for the RequestId +UUID CErrorResponseDoc::getRequestId() const { + return _requestId; +} + +/// Accessor for the PmeId +std::string CErrorResponseDoc::getPmeId() const { + return _pmeId; +} + +/// Accessor for the Response Header +SmartPtrCResponseHeaderDoc CErrorResponseDoc::getResponseHeader() const { + return _responseHeader; +} + +/// Accessor for the ErrorMessage +std::string CErrorResponseDoc::getErrorMessage() const { + return _errorMessage; +} + + + + + diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/ResponseDoc/CEventKeyCollectionDoc.cpp b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/ResponseDoc/CEventKeyCollectionDoc.cpp new file mode 100644 index 000000000..aa3477037 --- /dev/null +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/ResponseDoc/CEventKeyCollectionDoc.cpp @@ -0,0 +1,42 @@ +/* + * Author: bwilliams + * Created: April 6, 2012 + * + * Copyright (c) 2012 Vmware, Inc. All rights reserved. + * -- VMware Confidential + * + * + */ + +#include "stdafx.h" +#include "Doc/ResponseDoc/CEventKeyCollectionDoc.h" + +using namespace Caf; + +/// A simple container for objects of type EventKeyCollection +CEventKeyCollectionDoc::CEventKeyCollectionDoc() : + _isInitialized(false) {} +CEventKeyCollectionDoc::~CEventKeyCollectionDoc() {} + +/// Initializes the object with everything required by this +/// container. Once initialized, this object cannot +/// be changed (i.e. it is immutable). +void CEventKeyCollectionDoc::initialize( + const std::deque eventKey) { + if (! _isInitialized) { + _eventKey = eventKey; + + _isInitialized = true; + } +} + +/// Accessor for the EventKey +std::deque CEventKeyCollectionDoc::getEventKey() const { + return _eventKey; +} + + + + + + diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/ResponseDoc/CEventKeyDoc.cpp b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/ResponseDoc/CEventKeyDoc.cpp new file mode 100644 index 000000000..b52a0ac0e --- /dev/null +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/ResponseDoc/CEventKeyDoc.cpp @@ -0,0 +1,49 @@ +/* + * Author: bwilliams + * Created: April 6, 2012 + * + * Copyright (c) 2012 Vmware, Inc. All rights reserved. + * -- VMware Confidential + * + * + */ + +#include "stdafx.h" +#include "Doc/ResponseDoc/CEventKeyDoc.h" + +using namespace Caf; + +/// A simple container for objects of type EventKey +CEventKeyDoc::CEventKeyDoc() : + _isInitialized(false) {} +CEventKeyDoc::~CEventKeyDoc() {} + +/// Initializes the object with everything required by this +/// container. Once initialized, this object cannot +/// be changed (i.e. it is immutable). +void CEventKeyDoc::initialize( + const std::string name, + const std::string value) { + if (! _isInitialized) { + _name = name; + _value = value; + + _isInitialized = true; + } +} + +/// Accessor for the Name +std::string CEventKeyDoc::getName() const { + return _name; +} + +/// Accessor for the Value +std::string CEventKeyDoc::getValue() const { + return _value; +} + + + + + + diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/ResponseDoc/CEventManifestDoc.cpp b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/ResponseDoc/CEventManifestDoc.cpp new file mode 100644 index 000000000..41360547b --- /dev/null +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/ResponseDoc/CEventManifestDoc.cpp @@ -0,0 +1,70 @@ +/* + * Author: bwilliams + * Created: April 6, 2012 + * + * Copyright (c) 2012 Vmware, Inc. All rights reserved. + * -- VMware Confidential + * + * + */ + +#include "stdafx.h" +#include "Doc/ResponseDoc/CEventManifestDoc.h" + +using namespace Caf; + +/// A simple container for objects of type EventManifest +CEventManifestDoc::CEventManifestDoc() : + _isInitialized(false) {} +CEventManifestDoc::~CEventManifestDoc() {} + +/// Initializes the object with everything required by this +/// container. Once initialized, this object cannot +/// be changed (i.e. it is immutable). +void CEventManifestDoc::initialize( + const std::string classNamespace, + const std::string className, + const std::string classVersion, + const std::string operationName, + const SmartPtrCAttachmentCollectionDoc attachmentCollection) { + if (! _isInitialized) { + _classNamespace = classNamespace; + _className = className; + _classVersion = classVersion; + _operationName = operationName; + _attachmentCollection = attachmentCollection; + + _isInitialized = true; + } +} + +/// Accessor for the ClassNamespace +std::string CEventManifestDoc::getClassNamespace() const { + return _classNamespace; +} + +/// Accessor for the ClassName +std::string CEventManifestDoc::getClassName() const { + return _className; +} + +/// Accessor for the ClassVersion +std::string CEventManifestDoc::getClassVersion() const { + return _classVersion; +} + +/// Accessor for the OperationName +std::string CEventManifestDoc::getOperationName() const { + return _operationName; +} + +/// Accessor for the AttachmentCollection +SmartPtrCAttachmentCollectionDoc CEventManifestDoc::getAttachmentCollection() const { + return _attachmentCollection; +} + + + + + + diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/ResponseDoc/CManifestCollectionDoc.cpp b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/ResponseDoc/CManifestCollectionDoc.cpp new file mode 100644 index 000000000..ff533934c --- /dev/null +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/ResponseDoc/CManifestCollectionDoc.cpp @@ -0,0 +1,42 @@ +/* + * Author: bwilliams + * Created: April 6, 2012 + * + * Copyright (c) 2012 Vmware, Inc. All rights reserved. + * -- VMware Confidential + * + * + */ + +#include "stdafx.h" +#include "Doc/ResponseDoc/CManifestCollectionDoc.h" + +using namespace Caf; + +/// A simple container for objects of type ManifestCollection +CManifestCollectionDoc::CManifestCollectionDoc() : + _isInitialized(false) {} +CManifestCollectionDoc::~CManifestCollectionDoc() {} + +/// Initializes the object with everything required by this +/// container. Once initialized, this object cannot +/// be changed (i.e. it is immutable). +void CManifestCollectionDoc::initialize( + const std::deque manifest) { + if (! _isInitialized) { + _manifest = manifest; + + _isInitialized = true; + } +} + +/// Accessor for the Manifest +std::deque CManifestCollectionDoc::getManifest() const { + return _manifest; +} + + + + + + diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/ResponseDoc/CManifestDoc.cpp b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/ResponseDoc/CManifestDoc.cpp new file mode 100644 index 000000000..c6ffe2631 --- /dev/null +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/ResponseDoc/CManifestDoc.cpp @@ -0,0 +1,77 @@ +/* + * Author: bwilliams + * Created: April 6, 2012 + * + * Copyright (c) 2012 Vmware, Inc. All rights reserved. + * -- VMware Confidential + * + * + */ + +#include "stdafx.h" +#include "Doc/ResponseDoc/CManifestDoc.h" + +using namespace Caf; + +/// A simple container for objects of type Manifest +CManifestDoc::CManifestDoc() : + _jobId(CAFCOMMON_GUID_NULL), + _isInitialized(false) {} +CManifestDoc::~CManifestDoc() {} + +/// Initializes the object with everything required by this +/// container. Once initialized, this object cannot +/// be changed (i.e. it is immutable). +void CManifestDoc::initialize( + const std::string classNamespace, + const std::string className, + const std::string classVersion, + const UUID jobId, + const std::string operationName, + const SmartPtrCAttachmentNameCollectionDoc attachmentNameCollection) { + if (! _isInitialized) { + _classNamespace = classNamespace; + _className = className; + _classVersion = classVersion; + _jobId = jobId; + _operationName = operationName; + _attachmentNameCollection = attachmentNameCollection; + + _isInitialized = true; + } +} + +/// Accessor for the ClassNamespace +std::string CManifestDoc::getClassNamespace() const { + return _classNamespace; +} + +/// Accessor for the ClassName +std::string CManifestDoc::getClassName() const { + return _className; +} + +/// Accessor for the ClassVersion +std::string CManifestDoc::getClassVersion() const { + return _classVersion; +} + +/// Accessor for the JobId +UUID CManifestDoc::getJobId() const { + return _jobId; +} + +/// Accessor for the OperationName +std::string CManifestDoc::getOperationName() const { + return _operationName; +} + +/// Accessor for the AttachmentNameCollection +SmartPtrCAttachmentNameCollectionDoc CManifestDoc::getAttachmentNameCollection() const { + return _attachmentNameCollection; +} + + + + + diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/ResponseDoc/CProviderEventResponseDoc.cpp b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/ResponseDoc/CProviderEventResponseDoc.cpp new file mode 100644 index 000000000..97f5a32be --- /dev/null +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/ResponseDoc/CProviderEventResponseDoc.cpp @@ -0,0 +1,70 @@ +/* + * Author: bwilliams + * Created: April 6, 2012 + * + * Copyright (c) 2012 Vmware, Inc. All rights reserved. + * -- VMware Confidential + * + * + */ + +#include "stdafx.h" +#include "Doc/ResponseDoc/CProviderEventResponseDoc.h" + +using namespace Caf; + +/// A simple container for objects of type ProviderEventResponse +CProviderEventResponseDoc::CProviderEventResponseDoc() : + _isInitialized(false) {} +CProviderEventResponseDoc::~CProviderEventResponseDoc() {} + +/// Initializes the object with everything required by this +/// container. Once initialized, this object cannot +/// be changed (i.e. it is immutable). +void CProviderEventResponseDoc::initialize( + const std::string pmeId, + const SmartPtrCResponseHeaderDoc responseHeader, + const SmartPtrCEventManifestDoc manifest, + const SmartPtrCEventKeyCollectionDoc eventKeyCollection, + const SmartPtrCStatisticsDoc statistics) { + if (! _isInitialized) { + _pmeId = pmeId; + _responseHeader = responseHeader; + _manifest = manifest; + _eventKeyCollection = eventKeyCollection; + _statistics = statistics; + + _isInitialized = true; + } +} + +/// Accessor for the PmeId +std::string CProviderEventResponseDoc::getPmeId() const { + return _pmeId; +} + +/// Accessor for the ResponseHeader +SmartPtrCResponseHeaderDoc CProviderEventResponseDoc::getResponseHeader() const { + return _responseHeader; +} + +/// Accessor for the Manifest +SmartPtrCEventManifestDoc CProviderEventResponseDoc::getManifest() const { + return _manifest; +} + +/// Accessor for the EventKeyCollection +SmartPtrCEventKeyCollectionDoc CProviderEventResponseDoc::getEventKeyCollection() const { + return _eventKeyCollection; +} + +/// Accessor for the Statistics +SmartPtrCStatisticsDoc CProviderEventResponseDoc::getStatistics() const { + return _statistics; +} + + + + + + diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/ResponseDoc/CProviderResponseDoc.cpp b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/ResponseDoc/CProviderResponseDoc.cpp new file mode 100644 index 000000000..1d3fb87b1 --- /dev/null +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/ResponseDoc/CProviderResponseDoc.cpp @@ -0,0 +1,85 @@ +/* + * Author: bwilliams + * Created: April 6, 2012 + * + * Copyright (c) 2012 Vmware, Inc. All rights reserved. + * -- VMware Confidential + * + * + */ + +#include "stdafx.h" +#include "Doc/ResponseDoc/CProviderResponseDoc.h" + +using namespace Caf; + +/// A simple container for objects of type ProviderResponse +CProviderResponseDoc::CProviderResponseDoc() : + _clientId(CAFCOMMON_GUID_NULL), + _requestId(CAFCOMMON_GUID_NULL), + _isInitialized(false) {} +CProviderResponseDoc::~CProviderResponseDoc() {} + +/// Initializes the object with everything required by this +/// container. Once initialized, this object cannot +/// be changed (i.e. it is immutable). +void CProviderResponseDoc::initialize( + const UUID clientId, + const UUID requestId, + const std::string pmeId, + const SmartPtrCResponseHeaderDoc responseHeader, + const SmartPtrCManifestDoc manifest, + const SmartPtrCAttachmentCollectionDoc attachmentCollection, + const SmartPtrCStatisticsDoc statistics) { + if (! _isInitialized) { + _clientId = clientId; + _requestId = requestId; + _pmeId = pmeId; + _responseHeader = responseHeader; + _manifest = manifest; + _attachmentCollection = attachmentCollection; + _statistics = statistics; + + _isInitialized = true; + } +} + +/// Accessor for the ClientId +UUID CProviderResponseDoc::getClientId() const { + return _clientId; +} + +/// Accessor for the RequestId +UUID CProviderResponseDoc::getRequestId() const { + return _requestId; +} + +/// Accessor for the PmeId +std::string CProviderResponseDoc::getPmeId() const { + return _pmeId; +} + +/// Accessor for the ResponseHeader +SmartPtrCResponseHeaderDoc CProviderResponseDoc::getResponseHeader() const { + return _responseHeader; +} + +/// Accessor for the Manifest +SmartPtrCManifestDoc CProviderResponseDoc::getManifest() const { + return _manifest; +} + +/// Accessor for the AttachmentCollection +SmartPtrCAttachmentCollectionDoc CProviderResponseDoc::getAttachmentCollection() const { + return _attachmentCollection; +} + +/// Accessor for the Statistics +SmartPtrCStatisticsDoc CProviderResponseDoc::getStatistics() const { + return _statistics; +} + + + + + diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/ResponseDoc/CResponseDoc.cpp b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/ResponseDoc/CResponseDoc.cpp new file mode 100644 index 000000000..f97326e49 --- /dev/null +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/ResponseDoc/CResponseDoc.cpp @@ -0,0 +1,85 @@ +/* + * Author: bwilliams + * Created: April 6, 2012 + * + * Copyright (c) 2012 Vmware, Inc. All rights reserved. + * -- VMware Confidential + * + * + */ + +#include "stdafx.h" +#include "Doc/ResponseDoc/CResponseDoc.h" + +using namespace Caf; + +/// A simple container for objects of type Response +CResponseDoc::CResponseDoc() : + _clientId(CAFCOMMON_GUID_NULL), + _requestId(CAFCOMMON_GUID_NULL), + _isInitialized(false) {} +CResponseDoc::~CResponseDoc() {} + +/// Initializes the object with everything required by this +/// container. Once initialized, this object cannot +/// be changed (i.e. it is immutable). +void CResponseDoc::initialize( + const UUID clientId, + const UUID requestId, + const std::string pmeId, + const SmartPtrCResponseHeaderDoc responseHeader, + const SmartPtrCManifestCollectionDoc manifestCollection, + const SmartPtrCAttachmentCollectionDoc attachmentCollection, + const SmartPtrCStatisticsDoc statistics) { + if (! _isInitialized) { + _clientId = clientId; + _requestId = requestId; + _pmeId = pmeId; + _responseHeader = responseHeader; + _manifestCollection = manifestCollection; + _attachmentCollection = attachmentCollection; + _statistics = statistics; + + _isInitialized = true; + } +} + +/// Accessor for the ClientId +UUID CResponseDoc::getClientId() const { + return _clientId; +} + +/// Accessor for the RequestId +UUID CResponseDoc::getRequestId() const { + return _requestId; +} + +/// Accessor for the PmeId +std::string CResponseDoc::getPmeId() const { + return _pmeId; +} + +/// Accessor for the ManifestCollection +SmartPtrCResponseHeaderDoc CResponseDoc::getResponseHeader() const { + return _responseHeader; +} + +/// Accessor for the ManifestCollection +SmartPtrCManifestCollectionDoc CResponseDoc::getManifestCollection() const { + return _manifestCollection; +} + +/// Accessor for the AttachmentCollection +SmartPtrCAttachmentCollectionDoc CResponseDoc::getAttachmentCollection() const { + return _attachmentCollection; +} + +/// Accessor for the Statistics +SmartPtrCStatisticsDoc CResponseDoc::getStatistics() const { + return _statistics; +} + + + + + diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/ResponseDoc/CResponseHeaderDoc.cpp b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/ResponseDoc/CResponseHeaderDoc.cpp new file mode 100644 index 000000000..0e0a286bc --- /dev/null +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/ResponseDoc/CResponseHeaderDoc.cpp @@ -0,0 +1,72 @@ +/* + * Author: bwilliams + * Created: April 6, 2012 + * + * Copyright (c) 2012 Vmware, Inc. All rights reserved. + * -- VMware Confidential + * + * + */ + +#include "stdafx.h" +#include "Doc/ResponseDoc/CResponseHeaderDoc.h" + +using namespace Caf; + +/// A simple container for objects of type ResponseHeader +CResponseHeaderDoc::CResponseHeaderDoc() : + _sequenceNumber(0), + _isFinalResponse(true), + _sessionId(CAFCOMMON_GUID_NULL), + _isInitialized(false) {} +CResponseHeaderDoc::~CResponseHeaderDoc() {} + +/// Initializes the object with everything required by this +/// container. Once initialized, this object cannot +/// be changed (i.e. it is immutable). +void CResponseHeaderDoc::initialize( + const std::string version, + const std::string createdDateTime, + const uint32 sequenceNumber, + const bool isFinalResponse, + const UUID sessionId) { + if (! _isInitialized) { + _version = version; + _createdDateTime = createdDateTime; + _sequenceNumber = sequenceNumber; + _isFinalResponse = isFinalResponse; + _sessionId = sessionId; + + _isInitialized = true; + } +} + +/// Accessor for the version +std::string CResponseHeaderDoc::getVersion() const { + return _version; +} + +/// Accessor for the date/time when the request was created +std::string CResponseHeaderDoc::getCreatedDateTime() const { + return _createdDateTime; +} + +/// Accessor for the sequenceNumber +uint32 CResponseHeaderDoc::getSequenceNumber() const { + return _sequenceNumber; +} + +/// Accessor for the version +bool CResponseHeaderDoc::getIsFinalResponse() const { + return _isFinalResponse; +} + +/// Accessor for the session ID +UUID CResponseHeaderDoc::getSessionId() const { + return _sessionId; +} + + + + + diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/ResponseDoc/stdafx.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/ResponseDoc/stdafx.h new file mode 100644 index 000000000..f0f88e267 --- /dev/null +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/ResponseDoc/stdafx.h @@ -0,0 +1,22 @@ +/* + * Author: bwilliams + * Created: February 25, 2016 + * + * Copyright (c) 2016 Vmware, Inc. All rights reserved. + * -- VMware Confidential + * + */ + +#ifndef STDAFX_H_ +#define STDAFX_H_ + +#ifdef WIN32 + #define RESPONSEDOC_LINKAGE __declspec(dllexport) +#else + #define RESPONSEDOC_LINKAGE +#endif + +#include +#include "Doc/ResponseDoc/ResponseDocInc.h" + +#endif /* STDAFX_H_ */ diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/SchemaTypesDoc/CActionClassDoc.cpp b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/SchemaTypesDoc/CActionClassDoc.cpp new file mode 100644 index 000000000..1eaa21b09 --- /dev/null +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/SchemaTypesDoc/CActionClassDoc.cpp @@ -0,0 +1,84 @@ +/* + * Author: bwilliams + * Created: April 6, 2012 + * + * Copyright (c) 2012 Vmware, Inc. All rights reserved. + * -- VMware Confidential + * + * + */ + +#include "stdafx.h" +#include "Doc/SchemaTypesDoc/CActionClassDoc.h" + +using namespace Caf; + +/// Definition of an action class that may be generated by the provider +CActionClassDoc::CActionClassDoc() : + _isInitialized(false) {} +CActionClassDoc::~CActionClassDoc() {} + +/// Initializes the object with everything required by this +/// container. Once initialized, this object cannot +/// be changed (i.e. it is immutable). +void CActionClassDoc::initialize( + const std::string namespaceVal, + const std::string name, + const std::string version, + const SmartPtrCCollectMethodDoc collectMethod, + const std::deque methodCollection, + const std::string displayName, + const std::string description) { + if (! _isInitialized) { + _namespaceVal = namespaceVal; + _name = name; + _version = version; + _collectMethod = collectMethod; + _methodCollection = methodCollection; + _displayName = displayName; + _description = description; + + _isInitialized = true; + } +} + +/// Accessor for the NamespaceVal +std::string CActionClassDoc::getNamespaceVal() const { + return _namespaceVal; +} + +/// Accessor for the Name +std::string CActionClassDoc::getName() const { + return _name; +} + +/// Accessor for the Version +std::string CActionClassDoc::getVersion() const { + return _version; +} + +/// Accessor for the CollectMethod +SmartPtrCCollectMethodDoc CActionClassDoc::getCollectMethod() const { + return _collectMethod; +} + +/// Accessor for the Method +std::deque CActionClassDoc::getMethodCollection() const { + return _methodCollection; +} + +/// A hint as to what this class should be called when displaying it to a human +std::string CActionClassDoc::getDisplayName() const { + return _displayName; +} + +/// A phrase to describe the class for mouse-over text, etc +std::string CActionClassDoc::getDescription() const { + return _description; +} + + + + + + diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/SchemaTypesDoc/CActionClassInstanceCollectionDoc.cpp b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/SchemaTypesDoc/CActionClassInstanceCollectionDoc.cpp new file mode 100644 index 000000000..8262268e8 --- /dev/null +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/SchemaTypesDoc/CActionClassInstanceCollectionDoc.cpp @@ -0,0 +1,42 @@ +/* + * Author: bwilliams + * Created: April 6, 2012 + * + * Copyright (c) 2012 Vmware, Inc. All rights reserved. + * -- VMware Confidential + * + * + */ + +#include "stdafx.h" +#include "Doc/SchemaTypesDoc/CActionClassInstanceCollectionDoc.h" + +using namespace Caf; + +/// A simple container for objects of type ActionClassInstanceCollection +CActionClassInstanceCollectionDoc::CActionClassInstanceCollectionDoc() : + _isInitialized(false) {} +CActionClassInstanceCollectionDoc::~CActionClassInstanceCollectionDoc() {} + +/// Initializes the object with everything required by this +/// container. Once initialized, this object cannot +/// be changed (i.e. it is immutable). +void CActionClassInstanceCollectionDoc::initialize( + const std::deque actionClassInstanceCollection) { + if (! _isInitialized) { + _actionClassInstanceCollection = actionClassInstanceCollection; + + _isInitialized = true; + } +} + +/// Accessor for the ActionClassInstance +std::deque CActionClassInstanceCollectionDoc::getActionClassInstanceCollection() const { + return _actionClassInstanceCollection; +} + + + + + + diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/SchemaTypesDoc/CActionClassInstanceDoc.cpp b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/SchemaTypesDoc/CActionClassInstanceDoc.cpp new file mode 100644 index 000000000..a40040ebe --- /dev/null +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/SchemaTypesDoc/CActionClassInstanceDoc.cpp @@ -0,0 +1,63 @@ +/* + * Author: bwilliams + * Created: April 6, 2012 + * + * Copyright (c) 2012 Vmware, Inc. All rights reserved. + * -- VMware Confidential + * + * + */ + +#include "stdafx.h" +#include "Doc/SchemaTypesDoc/CActionClassInstanceDoc.h" + +using namespace Caf; + +/// A simple container for objects of type ActionClassInstance +CActionClassInstanceDoc::CActionClassInstanceDoc() : + _isInitialized(false) {} +CActionClassInstanceDoc::~CActionClassInstanceDoc() {} + +/// Initializes the object with everything required by this +/// container. Once initialized, this object cannot +/// be changed (i.e. it is immutable). +void CActionClassInstanceDoc::initialize( + const std::string namespaceVal, + const std::string name, + const std::string version, + const SmartPtrCInstanceOperationCollectionDoc instanceOperationCollection) { + if (! _isInitialized) { + _namespaceVal = namespaceVal; + _name = name; + _version = version; + _instanceOperationCollection = instanceOperationCollection; + + _isInitialized = true; + } +} + +/// Accessor for the NamespaceVal +std::string CActionClassInstanceDoc::getNamespaceVal() const { + return _namespaceVal; +} + +/// Accessor for the Name +std::string CActionClassInstanceDoc::getName() const { + return _name; +} + +/// Accessor for the Version +std::string CActionClassInstanceDoc::getVersion() const { + return _version; +} + +/// Accessor for the InstanceOperationCollection +SmartPtrCInstanceOperationCollectionDoc CActionClassInstanceDoc::getInstanceOperationCollection() const { + return _instanceOperationCollection; +} + + + + + + diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/SchemaTypesDoc/CClassCardinalityDoc.cpp b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/SchemaTypesDoc/CClassCardinalityDoc.cpp new file mode 100644 index 000000000..a70d64990 --- /dev/null +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/SchemaTypesDoc/CClassCardinalityDoc.cpp @@ -0,0 +1,63 @@ +/* + * Author: bwilliams + * Created: April 6, 2012 + * + * Copyright (c) 2012 Vmware, Inc. All rights reserved. + * -- VMware Confidential + * + * + */ + +#include "stdafx.h" +#include "Doc/SchemaTypesDoc/CClassCardinalityDoc.h" + +using namespace Caf; + +/// Class description of one end of a relationship +CClassCardinalityDoc::CClassCardinalityDoc() : + _isInitialized(false) {} +CClassCardinalityDoc::~CClassCardinalityDoc() {} + +/// Initializes the object with everything required by this +/// container. Once initialized, this object cannot +/// be changed (i.e. it is immutable). +void CClassCardinalityDoc::initialize( + const std::string namespaceVal, + const std::string name, + const std::string version, + const std::string cardinality) { + if (! _isInitialized) { + _namespaceVal = namespaceVal; + _name = name; + _version = version; + _cardinality = cardinality; + + _isInitialized = true; + } +} + +/// Accessor for the NamespaceVal +std::string CClassCardinalityDoc::getNamespaceVal() const { + return _namespaceVal; +} + +/// Accessor for the Name +std::string CClassCardinalityDoc::getName() const { + return _name; +} + +/// Accessor for the Version +std::string CClassCardinalityDoc::getVersion() const { + return _version; +} + +/// Cardinality of one end relationship, i.e. has one, has many, etc +std::string CClassCardinalityDoc::getCardinality() const { + return _cardinality; +} + + + + + + diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/SchemaTypesDoc/CClassFieldDoc.cpp b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/SchemaTypesDoc/CClassFieldDoc.cpp new file mode 100644 index 000000000..32b929491 --- /dev/null +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/SchemaTypesDoc/CClassFieldDoc.cpp @@ -0,0 +1,63 @@ +/* + * Author: bwilliams + * Created: April 6, 2012 + * + * Copyright (c) 2012 Vmware, Inc. All rights reserved. + * -- VMware Confidential + * + * + */ + +#include "stdafx.h" +#include "Doc/SchemaTypesDoc/CClassFieldDoc.h" + +using namespace Caf; + +/// Description of a class and the field used to identify one end of a relationship +CClassFieldDoc::CClassFieldDoc() : + _isInitialized(false) {} +CClassFieldDoc::~CClassFieldDoc() {} + +/// Initializes the object with everything required by this +/// container. Once initialized, this object cannot +/// be changed (i.e. it is immutable). +void CClassFieldDoc::initialize( + const std::string namespaceVal, + const std::string name, + const std::string version, + const std::string field) { + if (! _isInitialized) { + _namespaceVal = namespaceVal; + _name = name; + _version = version; + _field = field; + + _isInitialized = true; + } +} + +/// Accessor for the NamespaceVal +std::string CClassFieldDoc::getNamespaceVal() const { + return _namespaceVal; +} + +/// Accessor for the Name +std::string CClassFieldDoc::getName() const { + return _name; +} + +/// Accessor for the Version +std::string CClassFieldDoc::getVersion() const { + return _version; +} + +/// Description of a class field used to identify one end of a relationship +std::string CClassFieldDoc::getField() const { + return _field; +} + + + + + + diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/SchemaTypesDoc/CClassIdentifierDoc.cpp b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/SchemaTypesDoc/CClassIdentifierDoc.cpp new file mode 100644 index 000000000..7161d8958 --- /dev/null +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/SchemaTypesDoc/CClassIdentifierDoc.cpp @@ -0,0 +1,56 @@ +/* + * Author: bwilliams + * Created: April 6, 2012 + * + * Copyright (c) 2012 Vmware, Inc. All rights reserved. + * -- VMware Confidential + * + * + */ + +#include "stdafx.h" +#include "Doc/SchemaTypesDoc/CClassIdentifierDoc.h" + +using namespace Caf; + +/// Tuple of values to uniquely identify a class +CClassIdentifierDoc::CClassIdentifierDoc() : + _isInitialized(false) {} +CClassIdentifierDoc::~CClassIdentifierDoc() {} + +/// Initializes the object with everything required by this +/// container. Once initialized, this object cannot +/// be changed (i.e. it is immutable). +void CClassIdentifierDoc::initialize( + const std::string namespaceVal, + const std::string name, + const std::string version) { + if (! _isInitialized) { + _namespaceVal = namespaceVal; + _name = name; + _version = version; + + _isInitialized = true; + } +} + +/// Accessor for the NamespaceVal +std::string CClassIdentifierDoc::getNamespaceVal() const { + return _namespaceVal; +} + +/// Accessor for the Name +std::string CClassIdentifierDoc::getName() const { + return _name; +} + +/// Accessor for the Version +std::string CClassIdentifierDoc::getVersion() const { + return _version; +} + + + + + + diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/SchemaTypesDoc/CClassInstancePropertyDoc.cpp b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/SchemaTypesDoc/CClassInstancePropertyDoc.cpp new file mode 100644 index 000000000..412cce140 --- /dev/null +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/SchemaTypesDoc/CClassInstancePropertyDoc.cpp @@ -0,0 +1,86 @@ +/* + * Author: bwilliams + * Created: April 6, 2012 + * + * Copyright (c) 2012 Vmware, Inc. All rights reserved. + * -- VMware Confidential + * + * + */ + +#include "stdafx.h" +#include "Doc/SchemaTypesDoc/CClassInstancePropertyDoc.h" + +using namespace Caf; + +/// Definition of an attribute (field) of a class +CClassInstancePropertyDoc::CClassInstancePropertyDoc() : + _required(false), + _transientVal(false), + _list(false), + _isInitialized(false) {} +CClassInstancePropertyDoc::~CClassInstancePropertyDoc() {} + +/// Initializes the object with everything required by this +/// container. Once initialized, this object cannot +/// be changed (i.e. it is immutable). +void CClassInstancePropertyDoc::initialize( + const std::string name, + const std::deque type, + const bool required, + const bool transientVal, + const bool list, + const std::string displayName, + const std::string description) { + if (! _isInitialized) { + _name = name; + _type = type; + _required = required; + _transientVal = transientVal; + _list = list; + _displayName = displayName; + _description = description; + + _isInitialized = true; + } +} + +/// Property name +std::string CClassInstancePropertyDoc::getName() const { + return _name; +} + +/// Accessor for the Type +std::deque CClassInstancePropertyDoc::getType() const { + return _type; +} + +/// Whether this is a required property, i.e. this property must always be non-empty +bool CClassInstancePropertyDoc::getRequired() const { + return _required; +} + +/// Accessor for the TransientVal +bool CClassInstancePropertyDoc::getTransientVal() const { + return _transientVal; +} + +/// Indicates whether to expect a list of properties in the provider response +bool CClassInstancePropertyDoc::getList() const { + return _list; +} + +/// A hint as to what this property should be called when displaying it to a human +std::string CClassInstancePropertyDoc::getDisplayName() const { + return _displayName; +} + +/// A phrase to describe the property for mouse-over text, etc +std::string CClassInstancePropertyDoc::getDescription() const { + return _description; +} + + + + + diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/SchemaTypesDoc/CClassPropertyDoc.cpp b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/SchemaTypesDoc/CClassPropertyDoc.cpp new file mode 100644 index 000000000..9880fcce1 --- /dev/null +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/SchemaTypesDoc/CClassPropertyDoc.cpp @@ -0,0 +1,140 @@ +/* + * Author: bwilliams + * Created: April 6, 2012 + * + * Copyright (c) 2012 Vmware, Inc. All rights reserved. + * -- VMware Confidential + * + * + */ + +#include "stdafx.h" +#include "Doc/SchemaTypesDoc/CClassPropertyDoc.h" + +using namespace Caf; + +/// Definition of an attribute (field) of a class +CClassPropertyDoc::CClassPropertyDoc() : + _type(PROPERTY_NONE), + _required(false), + _key(false), + _list(false), + _caseSensitive(false), + _transientVal(false), + _validator(VALIDATOR_NONE), + _isInitialized(false) {} +CClassPropertyDoc::~CClassPropertyDoc() {} + +/// Initializes the object with everything required by this +/// container. Once initialized, this object cannot +/// be changed (i.e. it is immutable). +void CClassPropertyDoc::initialize( + const std::string name, + const PROPERTY_TYPE type, + const std::deque value, + const bool required, + const bool key, + const bool list, + const bool caseSensitive, + const bool transientVal, + const std::string defaultVal, + const VALIDATOR_TYPE validator, + const std::string upperRange, + const std::string lowerRange, + const std::string displayName, + const std::string description) { + if (! _isInitialized) { + _name = name; + _type = type; + _value = value; + _required = required; + _key = key; + _list = list; + _caseSensitive = caseSensitive; + _transientVal = transientVal; + _defaultVal = defaultVal; + _validator = validator; + _upperRange = upperRange; + _lowerRange = lowerRange; + _displayName = displayName; + _description = description; + + _isInitialized = true; + } +} + +/// Property name +std::string CClassPropertyDoc::getName() const { + return _name; +} + +/// Describes the data type of the property +PROPERTY_TYPE CClassPropertyDoc::getType() const { + return _type; +} + +/// The contents of a validator used on this property +std::deque CClassPropertyDoc::getValue() const { + return _value; +} + +/// Whether this is a required property, i.e. this property must always be non-empty +bool CClassPropertyDoc::getRequired() const { + return _required; +} + +/// Indicates this property may be used as a key identifying field +bool CClassPropertyDoc::getKey() const { + return _key; +} + +/// Indicates whether to expect a list of properties in the provider response +bool CClassPropertyDoc::getList() const { + return _list; +} + +/// Indicates whether a string field should be treated in a case-sensitive manner +bool CClassPropertyDoc::getCaseSensitive() const { + return _caseSensitive; +} + +/// Accessor for the TransientVal +bool CClassPropertyDoc::getTransientVal() const { + return _transientVal; +} + +/// Accessor for the DefaultVal +std::string CClassPropertyDoc::getDefaultVal() const { + return _defaultVal; +} + +/// The type of validator described in the 'value' sub-elements +VALIDATOR_TYPE CClassPropertyDoc::getValidator() const { + return _validator; +} + +/// If a 'range' validator is in use, this describes the upper limit of allowable values for the property. QUESTIONABLE: how do we determine inclusive or exclusive range +std::string CClassPropertyDoc::getUpperRange() const { + return _upperRange; +} + +/// If a 'range' validator is in use, this describes the lower limit of allowable values for the property. QUESTIONABLE: how do we determine inclusive or exclusive range +std::string CClassPropertyDoc::getLowerRange() const { + return _lowerRange; +} + +/// A hint as to what this property should be called when displaying it to a human +std::string CClassPropertyDoc::getDisplayName() const { + return _displayName; +} + +/// A phrase to describe the property for mouse-over text, etc +std::string CClassPropertyDoc::getDescription() const { + return _description; +} + +VALIDATOR_TYPE _validator; + + + + diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/SchemaTypesDoc/CCmdlMetadataDoc.cpp b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/SchemaTypesDoc/CCmdlMetadataDoc.cpp new file mode 100644 index 000000000..5ff36f767 --- /dev/null +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/SchemaTypesDoc/CCmdlMetadataDoc.cpp @@ -0,0 +1,49 @@ +/* + * Author: bwilliams + * Created: April 6, 2012 + * + * Copyright (c) 2012 Vmware, Inc. All rights reserved. + * -- VMware Confidential + * + * + */ + +#include "stdafx.h" +#include "Doc/SchemaTypesDoc/CCmdlMetadataDoc.h" + +using namespace Caf; + +/// A simple container for objects of type CmdlMetadata +CCmdlMetadataDoc::CCmdlMetadataDoc() : + _isInitialized(false) {} +CCmdlMetadataDoc::~CCmdlMetadataDoc() {} + +/// Initializes the object with everything required by this +/// container. Once initialized, this object cannot +/// be changed (i.e. it is immutable). +void CCmdlMetadataDoc::initialize( + const std::string name, + const std::string value) { + if (! _isInitialized) { + _name = name; + _value = value; + + _isInitialized = true; + } +} + +/// Accessor for the Name +std::string CCmdlMetadataDoc::getName() const { + return _name; +} + +/// Accessor for the Value +std::string CCmdlMetadataDoc::getValue() const { + return _value; +} + + + + + + diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/SchemaTypesDoc/CCmdlUnionDoc.cpp b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/SchemaTypesDoc/CCmdlUnionDoc.cpp new file mode 100644 index 000000000..ddb71c33b --- /dev/null +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/SchemaTypesDoc/CCmdlUnionDoc.cpp @@ -0,0 +1,56 @@ +/* + * Author: bwilliams + * Created: April 6, 2012 + * + * Copyright (c) 2012 Vmware, Inc. All rights reserved. + * -- VMware Confidential + * + * + */ + +#include "stdafx.h" +#include "Doc/SchemaTypesDoc/CCmdlUnionDoc.h" + +using namespace Caf; + +/// A simple container for objects of type CmdlUnion +CCmdlUnionDoc::CCmdlUnionDoc() : + _isInitialized(false) {} +CCmdlUnionDoc::~CCmdlUnionDoc() {} + +/// Initializes the object with everything required by this +/// container. Once initialized, this object cannot +/// be changed (i.e. it is immutable). +void CCmdlUnionDoc::initialize( + const std::string namespaceVal, + const std::string name, + const std::string version) { + if (! _isInitialized) { + _namespaceVal = namespaceVal; + _name = name; + _version = version; + + _isInitialized = true; + } +} + +/// Accessor for the NamespaceVal +std::string CCmdlUnionDoc::getNamespaceVal() const { + return _namespaceVal; +} + +/// Accessor for the Name +std::string CCmdlUnionDoc::getName() const { + return _name; +} + +/// Accessor for the Version +std::string CCmdlUnionDoc::getVersion() const { + return _version; +} + + + + + + diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/SchemaTypesDoc/CCollectMethodDoc.cpp b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/SchemaTypesDoc/CCollectMethodDoc.cpp new file mode 100644 index 000000000..b2155d2dc --- /dev/null +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/SchemaTypesDoc/CCollectMethodDoc.cpp @@ -0,0 +1,77 @@ +/* + * Author: bwilliams + * Created: April 6, 2012 + * + * Copyright (c) 2012 Vmware, Inc. All rights reserved. + * -- VMware Confidential + * + * + */ + +#include "stdafx.h" +#include "Doc/SchemaTypesDoc/CCollectMethodDoc.h" + +using namespace Caf; + +/// Definition of a collection method on a class +CCollectMethodDoc::CCollectMethodDoc() : + _isInitialized(false) {} +CCollectMethodDoc::~CCollectMethodDoc() {} + +/// Initializes the object with everything required by this +/// container. Once initialized, this object cannot +/// be changed (i.e. it is immutable). +void CCollectMethodDoc::initialize( + const std::string name, + const std::deque parameterCollection, + const std::deque instanceParameterCollection, + const std::deque returnValCollection, + const std::deque eventValCollection, + const std::deque errorCollection) { + if (! _isInitialized) { + _name = name; + _parameterCollection = parameterCollection; + _instanceParameterCollection = instanceParameterCollection; + _returnValCollection = returnValCollection; + _eventValCollection = eventValCollection; + _errorCollection = errorCollection; + + _isInitialized = true; + } +} + +/// name of the collection method +std::string CCollectMethodDoc::getName() const { + return _name; +} + +/// Definition of a parameter that passes simple types to the collection method +std::deque CCollectMethodDoc::getParameterCollection() const { + return _parameterCollection; +} + +/// Definition of a parameter passing data class instances to the collection method +std::deque CCollectMethodDoc::getInstanceParameterCollection() const { + return _instanceParameterCollection; +} + +/// Accessor for the ReturnVal +std::deque CCollectMethodDoc::getReturnValCollection() const { + return _returnValCollection; +} + +/// Accessor for the EventVal +std::deque CCollectMethodDoc::getEventValCollection() const { + return _eventValCollection; +} + +/// A class that may be returned to indicate an error occurred during the processing of the collection method +std::deque CCollectMethodDoc::getErrorCollection() const { + return _errorCollection; +} + + + + + + diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/SchemaTypesDoc/CDataClassDoc.cpp b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/SchemaTypesDoc/CDataClassDoc.cpp new file mode 100644 index 000000000..e59bc31d1 --- /dev/null +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/SchemaTypesDoc/CDataClassDoc.cpp @@ -0,0 +1,99 @@ +/* + * Author: bwilliams + * Created: April 6, 2012 + * + * Copyright (c) 2012 Vmware, Inc. All rights reserved. + * -- VMware Confidential + * + * + */ + +#include "stdafx.h" +#include "Doc/SchemaTypesDoc/CDataClassDoc.h" + +using namespace Caf; + +/// Definition of a data class that may be generated by the provider +CDataClassDoc::CDataClassDoc() : + _unique(false), + _transientVal(false), + _isInitialized(false) {} +CDataClassDoc::~CDataClassDoc() {} + +/// Initializes the object with everything required by this +/// container. Once initialized, this object cannot +/// be changed (i.e. it is immutable). +void CDataClassDoc::initialize( + const std::string namespaceVal, + const std::string name, + const std::string version, + const std::deque propertyCollection, + const std::deque instancePropertyCollection, + const bool unique, + const bool transientVal, + const std::string displayName, + const std::string description) { + if (! _isInitialized) { + _namespaceVal = namespaceVal; + _name = name; + _version = version; + _propertyCollection = propertyCollection; + _instancePropertyCollection = instancePropertyCollection; + _unique = unique; + _transientVal = transientVal; + _displayName = displayName; + _description = description; + + _isInitialized = true; + } +} + +/// Accessor for the NamespaceVal +std::string CDataClassDoc::getNamespaceVal() const { + return _namespaceVal; +} + +/// Accessor for the Name +std::string CDataClassDoc::getName() const { + return _name; +} + +/// Accessor for the Version +std::string CDataClassDoc::getVersion() const { + return _version; +} + +/// Accessor for the Property +std::deque CDataClassDoc::getPropertyCollection() const { + return _propertyCollection; +} + +/// Accessor for the InstanceProperty +std::deque CDataClassDoc::getInstancePropertyCollection() const { + return _instancePropertyCollection; +} + +/// Indicates whether the key properties of this class are enough to guarantee uniqueness from other classes of the same type +bool CDataClassDoc::getUnique() const { + return _unique; +} + +/// Accessor for the TransientVal +bool CDataClassDoc::getTransientVal() const { + return _transientVal; +} + +/// A hint as to what this class should be called when displaying it to a human +std::string CDataClassDoc::getDisplayName() const { + return _displayName; +} + +/// A phrase to describe the class for mouse-over text, etc +std::string CDataClassDoc::getDescription() const { + return _description; +} + + + + + diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/SchemaTypesDoc/CDataClassInstanceCollectionDoc.cpp b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/SchemaTypesDoc/CDataClassInstanceCollectionDoc.cpp new file mode 100644 index 000000000..799135068 --- /dev/null +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/SchemaTypesDoc/CDataClassInstanceCollectionDoc.cpp @@ -0,0 +1,42 @@ +/* + * Author: bwilliams + * Created: April 6, 2012 + * + * Copyright (c) 2012 Vmware, Inc. All rights reserved. + * -- VMware Confidential + * + * + */ + +#include "stdafx.h" +#include "Doc/SchemaTypesDoc/CDataClassInstanceCollectionDoc.h" + +using namespace Caf; + +/// A simple container for objects of type DataClassInstanceCollection +CDataClassInstanceCollectionDoc::CDataClassInstanceCollectionDoc() : + _isInitialized(false) {} +CDataClassInstanceCollectionDoc::~CDataClassInstanceCollectionDoc() {} + +/// Initializes the object with everything required by this +/// container. Once initialized, this object cannot +/// be changed (i.e. it is immutable). +void CDataClassInstanceCollectionDoc::initialize( + const std::deque dataClassInstanceCollection) { + if (! _isInitialized) { + _dataClassInstanceCollection = dataClassInstanceCollection; + + _isInitialized = true; + } +} + +/// Accessor for the DataClassInstance +std::deque CDataClassInstanceCollectionDoc::getDataClassInstanceCollection() const { + return _dataClassInstanceCollection; +} + + + + + + diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/SchemaTypesDoc/CDataClassInstanceDoc.cpp b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/SchemaTypesDoc/CDataClassInstanceDoc.cpp new file mode 100644 index 000000000..76d99f7bc --- /dev/null +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/SchemaTypesDoc/CDataClassInstanceDoc.cpp @@ -0,0 +1,84 @@ +/* + * Author: bwilliams + * Created: April 6, 2012 + * + * Copyright (c) 2012 Vmware, Inc. All rights reserved. + * -- VMware Confidential + * + * + */ + +#include "stdafx.h" +#include "Doc/SchemaTypesDoc/CDataClassInstanceDoc.h" + +using namespace Caf; + +/// A simple container for objects of type DataClassInstance +CDataClassInstanceDoc::CDataClassInstanceDoc() : + _isInitialized(false) {} +CDataClassInstanceDoc::~CDataClassInstanceDoc() {} + +/// Initializes the object with everything required by this +/// container. Once initialized, this object cannot +/// be changed (i.e. it is immutable). +void CDataClassInstanceDoc::initialize( + const std::string namespaceVal, + const std::string name, + const std::string version, + const std::deque cmdlMetadataCollection, + const std::deque propertyCollection, + const std::deque instancePropertyCollection, + const SmartPtrCCmdlUnionDoc cmdlUnion) { + if (! _isInitialized) { + _namespaceVal = namespaceVal; + _name = name; + _version = version; + _cmdlMetadataCollection = cmdlMetadataCollection; + _propertyCollection = propertyCollection; + _instancePropertyCollection = instancePropertyCollection; + _cmdlUnion = cmdlUnion; + + _isInitialized = true; + } +} + +/// Accessor for the NamespaceVal +std::string CDataClassInstanceDoc::getNamespaceVal() const { + return _namespaceVal; +} + +/// Accessor for the Name +std::string CDataClassInstanceDoc::getName() const { + return _name; +} + +/// Accessor for the Version +std::string CDataClassInstanceDoc::getVersion() const { + return _version; +} + +/// Accessor for the CmdlMetadata +std::deque CDataClassInstanceDoc::getCmdlMetadataCollection() const { + return _cmdlMetadataCollection; +} + +/// Accessor for the Property +std::deque CDataClassInstanceDoc::getPropertyCollection() const { + return _propertyCollection; +} + +/// Accessor for the InstanceProperty +std::deque CDataClassInstanceDoc::getInstancePropertyCollection() const { + return _instancePropertyCollection; +} + +/// Accessor for the CmdlUnion +SmartPtrCCmdlUnionDoc CDataClassInstanceDoc::getCmdlUnion() const { + return _cmdlUnion; +} + + + + + + diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/SchemaTypesDoc/CDataClassPropertyDoc.cpp b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/SchemaTypesDoc/CDataClassPropertyDoc.cpp new file mode 100644 index 000000000..edd1fee8f --- /dev/null +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/SchemaTypesDoc/CDataClassPropertyDoc.cpp @@ -0,0 +1,56 @@ +/* + * Author: bwilliams + * Created: April 6, 2012 + * + * Copyright (c) 2012 Vmware, Inc. All rights reserved. + * -- VMware Confidential + * + * + */ + +#include "stdafx.h" +#include "Doc/SchemaTypesDoc/CDataClassPropertyDoc.h" + +using namespace Caf; + +/// A simple container for objects of type DataClassProperty +CDataClassPropertyDoc::CDataClassPropertyDoc() : + _isInitialized(false) {} +CDataClassPropertyDoc::~CDataClassPropertyDoc() {} + +/// Initializes the object with everything required by this +/// container. Once initialized, this object cannot +/// be changed (i.e. it is immutable). +void CDataClassPropertyDoc::initialize( + const std::string name, + const std::deque cmdlMetadata, + const std::string value) { + if (! _isInitialized) { + _name = name; + _cmdlMetadata = cmdlMetadata; + _value = value; + + _isInitialized = true; + } +} + +/// Accessor for the Name +std::string CDataClassPropertyDoc::getName() const { + return _name; +} + +/// Accessor for the CmdlMetadata +std::deque CDataClassPropertyDoc::getCmdlMetadata() const { + return _cmdlMetadata; +} + +/// Accessor for the Value +std::string CDataClassPropertyDoc::getValue() const { + return _value; +} + + + + + + diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/SchemaTypesDoc/CDataClassSubInstanceDoc.cpp b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/SchemaTypesDoc/CDataClassSubInstanceDoc.cpp new file mode 100644 index 000000000..06c524935 --- /dev/null +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/SchemaTypesDoc/CDataClassSubInstanceDoc.cpp @@ -0,0 +1,70 @@ +/* + * Author: bwilliams + * Created: April 6, 2012 + * + * Copyright (c) 2012 Vmware, Inc. All rights reserved. + * -- VMware Confidential + * + * + */ + +#include "stdafx.h" +#include "Doc/SchemaTypesDoc/CDataClassSubInstanceDoc.h" + +using namespace Caf; + +/// A simple container for objects of type DataClassSubInstance +CDataClassSubInstanceDoc::CDataClassSubInstanceDoc() : + _isInitialized(false) {} +CDataClassSubInstanceDoc::~CDataClassSubInstanceDoc() {} + +/// Initializes the object with everything required by this +/// container. Once initialized, this object cannot +/// be changed (i.e. it is immutable). +void CDataClassSubInstanceDoc::initialize( + const std::string name, + const std::deque cmdlMetadataCollection, + const std::deque propertyCollection, + const std::deque instancePropertyCollection, + const SmartPtrCCmdlUnionDoc cmdlUnion) { + if (! _isInitialized) { + _name = name; + _cmdlMetadataCollection = cmdlMetadataCollection; + _propertyCollection = propertyCollection; + _instancePropertyCollection = instancePropertyCollection; + _cmdlUnion = cmdlUnion; + + _isInitialized = true; + } +} + +/// Accessor for the Name +std::string CDataClassSubInstanceDoc::getName() const { + return _name; +} + +/// Accessor for the CmdlMetadata +std::deque CDataClassSubInstanceDoc::getCmdlMetadataCollection() const { + return _cmdlMetadataCollection; +} + +/// Accessor for the Property +std::deque CDataClassSubInstanceDoc::getPropertyCollection() const { + return _propertyCollection; +} + +/// Accessor for the InstanceProperty +std::deque CDataClassSubInstanceDoc::getInstancePropertyCollection() const { + return _instancePropertyCollection; +} + +/// Accessor for the CmdlUnion +SmartPtrCCmdlUnionDoc CDataClassSubInstanceDoc::getCmdlUnion() const { + return _cmdlUnion; +} + + + + + + diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/SchemaTypesDoc/CInstanceOperationCollectionDoc.cpp b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/SchemaTypesDoc/CInstanceOperationCollectionDoc.cpp new file mode 100644 index 000000000..c19768516 --- /dev/null +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/SchemaTypesDoc/CInstanceOperationCollectionDoc.cpp @@ -0,0 +1,42 @@ +/* + * Author: bwilliams + * Created: April 6, 2012 + * + * Copyright (c) 2012 Vmware, Inc. All rights reserved. + * -- VMware Confidential + * + * + */ + +#include "stdafx.h" +#include "Doc/SchemaTypesDoc/CInstanceOperationCollectionDoc.h" + +using namespace Caf; + +/// A simple container for objects of type InstanceOperationCollection +CInstanceOperationCollectionDoc::CInstanceOperationCollectionDoc() : + _isInitialized(false) {} +CInstanceOperationCollectionDoc::~CInstanceOperationCollectionDoc() {} + +/// Initializes the object with everything required by this +/// container. Once initialized, this object cannot +/// be changed (i.e. it is immutable). +void CInstanceOperationCollectionDoc::initialize( + const std::deque instanceOperationCollection) { + if (! _isInitialized) { + _instanceOperationCollection = instanceOperationCollection; + + _isInitialized = true; + } +} + +/// Accessor for the InstanceOperation +std::deque CInstanceOperationCollectionDoc::getInstanceOperationCollection() const { + return _instanceOperationCollection; +} + + + + + + diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/SchemaTypesDoc/CInstanceOperationDoc.cpp b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/SchemaTypesDoc/CInstanceOperationDoc.cpp new file mode 100644 index 000000000..c7f9b1c50 --- /dev/null +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/SchemaTypesDoc/CInstanceOperationDoc.cpp @@ -0,0 +1,49 @@ +/* + * Author: bwilliams + * Created: April 6, 2012 + * + * Copyright (c) 2012 Vmware, Inc. All rights reserved. + * -- VMware Confidential + * + * + */ + +#include "stdafx.h" +#include "Doc/SchemaTypesDoc/CInstanceOperationDoc.h" + +using namespace Caf; + +/// A simple container for objects of type InstanceOperation +CInstanceOperationDoc::CInstanceOperationDoc() : + _isInitialized(false) {} +CInstanceOperationDoc::~CInstanceOperationDoc() {} + +/// Initializes the object with everything required by this +/// container. Once initialized, this object cannot +/// be changed (i.e. it is immutable). +void CInstanceOperationDoc::initialize( + const std::string operationName, + const std::string moniker) { + if (! _isInitialized) { + _operationName = operationName; + _moniker = moniker; + + _isInitialized = true; + } +} + +/// Accessor for the OperationName +std::string CInstanceOperationDoc::getOperationName() const { + return _operationName; +} + +/// Accessor for the Moniker +std::string CInstanceOperationDoc::getMoniker() const { + return _moniker; +} + + + + + + diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/SchemaTypesDoc/CInstanceParameterDoc.cpp b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/SchemaTypesDoc/CInstanceParameterDoc.cpp new file mode 100644 index 000000000..50cbae35f --- /dev/null +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/SchemaTypesDoc/CInstanceParameterDoc.cpp @@ -0,0 +1,92 @@ +/* + * Author: bwilliams + * Created: April 6, 2012 + * + * Copyright (c) 2012 Vmware, Inc. All rights reserved. + * -- VMware Confidential + * + * + */ + +#include "stdafx.h" +#include "Doc/SchemaTypesDoc/CInstanceParameterDoc.h" + +using namespace Caf; + +/// A parameter containing a data class instance used by a method to control the outcome +CInstanceParameterDoc::CInstanceParameterDoc() : + _isOptional(false), + _isList(false), + _isInitialized(false) {} +CInstanceParameterDoc::~CInstanceParameterDoc() {} + +/// Initializes the object with everything required by this +/// container. Once initialized, this object cannot +/// be changed (i.e. it is immutable). +void CInstanceParameterDoc::initialize( + const std::string name, + const std::string instanceNamespace, + const std::string instanceName, + const std::string instanceVersion, + const bool isOptional, + const bool isList, + const std::string displayName, + const std::string description) { + if (! _isInitialized) { + _name = name; + _instanceNamespace = instanceNamespace; + _instanceName = instanceName; + _instanceVersion = instanceVersion; + _isOptional = isOptional; + _isList = isList; + _displayName = displayName; + _description = description; + + _isInitialized = true; + } +} + +/// Name of parameter +std::string CInstanceParameterDoc::getName() const { + return _name; +} + +/// Namespace of instance object type +std::string CInstanceParameterDoc::getInstanceNamespace() const { + return _instanceNamespace; +} + +/// Name of instance object type +std::string CInstanceParameterDoc::getInstanceName() const { + return _instanceName; +} + +/// Version of instance object type +std::string CInstanceParameterDoc::getInstanceVersion() const { + return _instanceVersion; +} + +/// Indicates this parameter need not be passed +bool CInstanceParameterDoc::getIsOptional() const { + return _isOptional; +} + +/// Indicates whether to expect a list of values as opposed to a single value (the default if this attribute is not present) +bool CInstanceParameterDoc::getIsList() const { + return _isList; +} + +/// Human-readable version of the parameter name +std::string CInstanceParameterDoc::getDisplayName() const { + return _displayName; +} + +/// Short description of what the parameter is for +std::string CInstanceParameterDoc::getDescription() const { + return _description; +} + + + + + diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/SchemaTypesDoc/CJoinTypeDoc.cpp b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/SchemaTypesDoc/CJoinTypeDoc.cpp new file mode 100644 index 000000000..8950dae3b --- /dev/null +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/SchemaTypesDoc/CJoinTypeDoc.cpp @@ -0,0 +1,64 @@ +/* + * Author: bwilliams + * Created: April 6, 2012 + * + * Copyright (c) 2012 Vmware, Inc. All rights reserved. + * -- VMware Confidential + * + * + */ + +#include "stdafx.h" +#include "Doc/SchemaTypesDoc/CJoinTypeDoc.h" + +using namespace Caf; + +/// A simple container for objects of type JoinType +CJoinTypeDoc::CJoinTypeDoc() : + _operand(OPERATOR_NONE), + _isInitialized(false) {} +CJoinTypeDoc::~CJoinTypeDoc() {} + +/// Initializes the object with everything required by this +/// container. Once initialized, this object cannot +/// be changed (i.e. it is immutable). +void CJoinTypeDoc::initialize( + const OPERATOR_TYPE operand, + const SmartPtrCClassFieldDoc dataClassLeft, + const SmartPtrCClassFieldDoc dataClassRight, + const std::string description) { + if (! _isInitialized) { + _operand = operand; + _dataClassLeft = dataClassLeft; + _dataClassRight = dataClassRight; + _description = description; + + _isInitialized = true; + } +} + +/// Defines the operand used to join the class fields. Restricted to '=' for now +OPERATOR_TYPE CJoinTypeDoc::getOperand() const { + return _operand; +} + +/// Identifies the fields on classes that uniquely identify relationship +SmartPtrCClassFieldDoc CJoinTypeDoc::getDataClassLeft() const { + return _dataClassLeft; +} + +/// Identifies the fields on classes that uniquely identify relationship +SmartPtrCClassFieldDoc CJoinTypeDoc::getDataClassRight() const { + return _dataClassRight; +} + +/// A short human-readable description of the join +std::string CJoinTypeDoc::getDescription() const { + return _description; +} + +OPERATOR_TYPE _operand; + + + + diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/SchemaTypesDoc/CLogicalRelationshipDoc.cpp b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/SchemaTypesDoc/CLogicalRelationshipDoc.cpp new file mode 100644 index 000000000..0b1839dba --- /dev/null +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/SchemaTypesDoc/CLogicalRelationshipDoc.cpp @@ -0,0 +1,91 @@ +/* + * Author: bwilliams + * Created: April 6, 2012 + * + * Copyright (c) 2012 Vmware, Inc. All rights reserved. + * -- VMware Confidential + * + * + */ + +#include "stdafx.h" +#include "Doc/SchemaTypesDoc/CLogicalRelationshipDoc.h" + +using namespace Caf; + +/// Definition of a relationship between classes that can be described by identifying the fields on the classes that uniquely identify the relationship +CLogicalRelationshipDoc::CLogicalRelationshipDoc() : + _arity(ARITY_NONE), + _isInitialized(false) {} +CLogicalRelationshipDoc::~CLogicalRelationshipDoc() {} + +/// Initializes the object with everything required by this +/// container. Once initialized, this object cannot +/// be changed (i.e. it is immutable). +void CLogicalRelationshipDoc::initialize( + const std::string namespaceVal, + const std::string name, + const std::string version, + const ARITY_TYPE arity, + const SmartPtrCClassCardinalityDoc dataClassLeft, + const SmartPtrCClassCardinalityDoc dataClassRight, + const std::deque joinCollection, + const std::string description) { + if (! _isInitialized) { + _namespaceVal = namespaceVal; + _name = name; + _version = version; + _arity = arity; + _dataClassLeft = dataClassLeft; + _dataClassRight = dataClassRight; + _joinCollection = joinCollection; + _description = description; + + _isInitialized = true; + } +} + +/// Accessor for the NamespaceVal +std::string CLogicalRelationshipDoc::getNamespaceVal() const { + return _namespaceVal; +} + +/// Accessor for the Name +std::string CLogicalRelationshipDoc::getName() const { + return _name; +} + +/// Accessor for the Version +std::string CLogicalRelationshipDoc::getVersion() const { + return _version; +} + +/// Accessor for the Arity +ARITY_TYPE CLogicalRelationshipDoc::getArity() const { + return _arity; +} + +/// Accessor for the DataClassLeft +SmartPtrCClassCardinalityDoc CLogicalRelationshipDoc::getDataClassLeft() const { + return _dataClassLeft; +} + +/// Accessor for the DataClassRight +SmartPtrCClassCardinalityDoc CLogicalRelationshipDoc::getDataClassRight() const { + return _dataClassRight; +} + +/// Defines a join condition of the relationship +std::deque CLogicalRelationshipDoc::getJoinCollection() const { + return _joinCollection; +} + +/// Accessor for the Description +std::string CLogicalRelationshipDoc::getDescription() const { + return _description; +} + + + + + diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/SchemaTypesDoc/CMethodDoc.cpp b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/SchemaTypesDoc/CMethodDoc.cpp new file mode 100644 index 000000000..dd1e030f1 --- /dev/null +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/SchemaTypesDoc/CMethodDoc.cpp @@ -0,0 +1,91 @@ +/* + * Author: bwilliams + * Created: April 6, 2012 + * + * Copyright (c) 2012 Vmware, Inc. All rights reserved. + * -- VMware Confidential + * + * + */ + +#include "stdafx.h" +#include "Doc/SchemaTypesDoc/CMethodDoc.h" + +using namespace Caf; + +/// Definition of a method on a class +CMethodDoc::CMethodDoc() : + _isInitialized(false) {} +CMethodDoc::~CMethodDoc() {} + +/// Initializes the object with everything required by this +/// container. Once initialized, this object cannot +/// be changed (i.e. it is immutable). +void CMethodDoc::initialize( + const std::string name, + const std::deque parameterCollection, + const std::deque instanceParameterCollection, + const std::deque returnValCollection, + const std::deque eventValCollection, + const std::deque errorCollection, + const std::string displayName, + const std::string description) { + if (! _isInitialized) { + _name = name; + _parameterCollection = parameterCollection; + _instanceParameterCollection = instanceParameterCollection; + _returnValCollection = returnValCollection; + _eventValCollection = eventValCollection; + _errorCollection = errorCollection; + _displayName = displayName; + _description = description; + + _isInitialized = true; + } +} + +/// name of the method +std::string CMethodDoc::getName() const { + return _name; +} + +/// Definition of a parameter that passes simple types to the method +std::deque CMethodDoc::getParameterCollection() const { + return _parameterCollection; +} + +/// Definition of a parameter that passes data class instances to the method +std::deque CMethodDoc::getInstanceParameterCollection() const { + return _instanceParameterCollection; +} + +/// Accessor for the ReturnVal +std::deque CMethodDoc::getReturnValCollection() const { + return _returnValCollection; +} + +/// Accessor for the EventVal +std::deque CMethodDoc::getEventValCollection() const { + return _eventValCollection; +} + +/// A class that may be returned to indicate an error occurred during the processing of the collection method +std::deque CMethodDoc::getErrorCollection() const { + return _errorCollection; +} + +/// Human-readable version of the method name +std::string CMethodDoc::getDisplayName() const { + return _displayName; +} + +/// A short phrase describing the purpose of the method +std::string CMethodDoc::getDescription() const { + return _description; +} + + + + + + diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/SchemaTypesDoc/CMethodParameterDoc.cpp b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/SchemaTypesDoc/CMethodParameterDoc.cpp new file mode 100644 index 000000000..5a5a24a9a --- /dev/null +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/SchemaTypesDoc/CMethodParameterDoc.cpp @@ -0,0 +1,86 @@ +/* + * Author: bwilliams + * Created: April 6, 2012 + * + * Copyright (c) 2012 Vmware, Inc. All rights reserved. + * -- VMware Confidential + * + * + */ + +#include "stdafx.h" +#include "Doc/SchemaTypesDoc/CMethodParameterDoc.h" + +using namespace Caf; + +/// A parameter containing a simple type used by a method to control the outcome +CMethodParameterDoc::CMethodParameterDoc() : + _type(PARAMETER_NONE), + _isOptional(false), + _isList(false), + _isInitialized(false) {} +CMethodParameterDoc::~CMethodParameterDoc() {} + +/// Initializes the object with everything required by this +/// container. Once initialized, this object cannot +/// be changed (i.e. it is immutable). +void CMethodParameterDoc::initialize( + const std::string name, + const PARAMETER_TYPE type, + const bool isOptional, + const bool isList, + const std::string defaultVal, + const std::string displayName, + const std::string description) { + if (! _isInitialized) { + _name = name; + _type = type; + _isOptional = isOptional; + _isList = isList; + _defaultVal = defaultVal; + _displayName = displayName; + _description = description; + + _isInitialized = true; + } +} + +/// Name of parameter +std::string CMethodParameterDoc::getName() const { + return _name; +} + +/// Describes the data type of the property +PARAMETER_TYPE CMethodParameterDoc::getType() const { + return _type; +} + +/// Indicates this parameter need not be passed +bool CMethodParameterDoc::getIsOptional() const { + return _isOptional; +} + +/// Indicates whether to expect a list of values as opposed to a single value (the default if this attribute is not present) +bool CMethodParameterDoc::getIsList() const { + return _isList; +} + +/// Accessor for the DefaultVal +std::string CMethodParameterDoc::getDefaultVal() const { + return _defaultVal; +} + +/// Human-readable version of the parameter name +std::string CMethodParameterDoc::getDisplayName() const { + return _displayName; +} + +/// Short description of what the parameter is for +std::string CMethodParameterDoc::getDescription() const { + return _description; +} + + + + + diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/SchemaTypesDoc/CPhysicalRelationshipDoc.cpp b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/SchemaTypesDoc/CPhysicalRelationshipDoc.cpp new file mode 100644 index 000000000..a837b22c1 --- /dev/null +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/SchemaTypesDoc/CPhysicalRelationshipDoc.cpp @@ -0,0 +1,84 @@ +/* + * Author: bwilliams + * Created: April 6, 2012 + * + * Copyright (c) 2012 Vmware, Inc. All rights reserved. + * -- VMware Confidential + * + * + */ + +#include "stdafx.h" +#include "Doc/SchemaTypesDoc/CPhysicalRelationshipDoc.h" + +using namespace Caf; + +/// Describes a relationship between dataclass where the key information from data class instances comprising the relationship are listed in an instance of this class +CPhysicalRelationshipDoc::CPhysicalRelationshipDoc() : + _arity(ARITY_NONE), + _isInitialized(false) {} +CPhysicalRelationshipDoc::~CPhysicalRelationshipDoc() {} + +/// Initializes the object with everything required by this +/// container. Once initialized, this object cannot +/// be changed (i.e. it is immutable). +void CPhysicalRelationshipDoc::initialize( + const std::string namespaceVal, + const std::string name, + const std::string version, + const ARITY_TYPE arity, + const SmartPtrCClassCardinalityDoc dataClassLeft, + const SmartPtrCClassCardinalityDoc dataClassRight, + const std::string description) { + if (! _isInitialized) { + _namespaceVal = namespaceVal; + _name = name; + _version = version; + _arity = arity; + _dataClassLeft = dataClassLeft; + _dataClassRight = dataClassRight; + _description = description; + + _isInitialized = true; + } +} + +/// Accessor for the NamespaceVal +std::string CPhysicalRelationshipDoc::getNamespaceVal() const { + return _namespaceVal; +} + +/// Accessor for the Name +std::string CPhysicalRelationshipDoc::getName() const { + return _name; +} + +/// Accessor for the Version +std::string CPhysicalRelationshipDoc::getVersion() const { + return _version; +} + +/// Accessor for the Arity +ARITY_TYPE CPhysicalRelationshipDoc::getArity() const { + return _arity; +} + +/// Accessor for the DataClassLeft +SmartPtrCClassCardinalityDoc CPhysicalRelationshipDoc::getDataClassLeft() const { + return _dataClassLeft; +} + +/// Accessor for the DataClassRight +SmartPtrCClassCardinalityDoc CPhysicalRelationshipDoc::getDataClassRight() const { + return _dataClassRight; +} + +/// Accessor for the Description +std::string CPhysicalRelationshipDoc::getDescription() const { + return _description; +} + + + + + diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/SchemaTypesDoc/CRelationshipDoc.cpp b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/SchemaTypesDoc/CRelationshipDoc.cpp new file mode 100644 index 000000000..62c6e8db1 --- /dev/null +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/SchemaTypesDoc/CRelationshipDoc.cpp @@ -0,0 +1,85 @@ +/* + * Author: bwilliams + * Created: April 6, 2012 + * + * Copyright (c) 2012 Vmware, Inc. All rights reserved. + * -- VMware Confidential + * + * + */ + +#include "stdafx.h" +#include "Doc/SchemaTypesDoc/CRelationshipDoc.h" + +using namespace Caf; + +/// Definition of a relationship between data classes +CRelationshipDoc::CRelationshipDoc() : + _arity(ARITY_NONE), + _isInitialized(false) {} +CRelationshipDoc::~CRelationshipDoc() {} + +/// Initializes the object with everything required by this +/// container. Once initialized, this object cannot +/// be changed (i.e. it is immutable). +void CRelationshipDoc::initialize( + const std::string namespaceVal, + const std::string name, + const std::string version, + const ARITY_TYPE arity, + const SmartPtrCClassCardinalityDoc dataClassLeft, + const SmartPtrCClassCardinalityDoc dataClassRight, + const std::string description) { + if (! _isInitialized) { + _namespaceVal = namespaceVal; + _name = name; + _version = version; + _arity = arity; + _dataClassLeft = dataClassLeft; + _dataClassRight = dataClassRight; + _description = description; + + _isInitialized = true; + } +} + +/// Accessor for the NamespaceVal +std::string CRelationshipDoc::getNamespaceVal() const { + return _namespaceVal; +} + +/// Accessor for the Name +std::string CRelationshipDoc::getName() const { + return _name; +} + +/// Accessor for the Version +std::string CRelationshipDoc::getVersion() const { + return _version; +} + +/// Number of parts (sides) to relationship. Restricted to a two-sided relationship for now +ARITY_TYPE CRelationshipDoc::getArity() const { + return _arity; +} + +/// Identifies the two classes that make up the relationship +SmartPtrCClassCardinalityDoc CRelationshipDoc::getDataClassLeft() const { + return _dataClassLeft; +} + +/// Identifies the two classes that make up the relationship +SmartPtrCClassCardinalityDoc CRelationshipDoc::getDataClassRight() const { + return _dataClassRight; +} + +/// A short human-readable description of the relationship +std::string CRelationshipDoc::getDescription() const { + return _description; +} + + + + + + diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/SchemaTypesDoc/stdafx.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/SchemaTypesDoc/stdafx.h new file mode 100644 index 000000000..64caeaad4 --- /dev/null +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocDoc/SchemaTypesDoc/stdafx.h @@ -0,0 +1,22 @@ +/* + * Author: bwilliams + * Created: February 25, 2016 + * + * Copyright (c) 2016 Vmware, Inc. All rights reserved. + * -- VMware Confidential + * + */ + +#ifndef STDAFX_H_ +#define STDAFX_H_ + +#ifdef WIN32 + #define SCHEMATYPESDOC_LINKAGE __declspec(dllexport) +#else + #define SCHEMATYPESDOC_LINKAGE +#endif + +#include +#include "Doc/SchemaTypesDoc/SchemaTypesDocInc.h" + +#endif /* STDAFX_H_ */ diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Exception/StackWalker.cpp b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Exception/StackWalker.cpp index 289910fc8..c6b0390ae 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Exception/StackWalker.cpp +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Exception/StackWalker.cpp @@ -331,23 +331,25 @@ public: } #endif // If still not found, try the old directories... - if ( (m_hDbhHelp == NULL) && (GetEnvironmentVariable(_T("ProgramFiles"), dbghelpFile, 4096) > 0) ) + TCHAR dbghelpFile2[4096]; + if ( (m_hDbhHelp == NULL) && (GetEnvironmentVariable(_T("ProgramFiles"), dbghelpFile2, 4096) > 0) ) { - _tcscat_s(dbghelpFile, _T("\\Debugging Tools for Windows\\dbghelp.dll")); + _tcscat_s(dbghelpFile2, _T("\\Debugging Tools for Windows\\dbghelp.dll")); // now check if the file exists: - if (GetFileAttributes(dbghelpFile) != INVALID_FILE_ATTRIBUTES) + if (GetFileAttributes(dbghelpFile2) != INVALID_FILE_ATTRIBUTES) { - m_hDbhHelp = LoadLibrary(dbghelpFile); + m_hDbhHelp = LoadLibrary(dbghelpFile2); } } #if defined _M_X64 || defined _M_IA64 + TCHAR dbghelpFile3[4096]; // Still not found? Then try to load the (old) 64-Bit version: - if ( (m_hDbhHelp == NULL) && (GetEnvironmentVariable(_T("ProgramFiles"), dbghelpFile, 4096) > 0) ) + if ( (m_hDbhHelp == NULL) && (GetEnvironmentVariable(_T("ProgramFiles"), dbghelpFile3, 4096) > 0) ) { - _tcscat_s(dbghelpFile, _T("\\Debugging Tools for Windows 64-Bit\\dbghelp.dll")); - if (GetFileAttributes(dbghelpFile) != INVALID_FILE_ATTRIBUTES) + _tcscat_s(dbghelpFile3, _T("\\Debugging Tools for Windows 64-Bit\\dbghelp.dll")); + if (GetFileAttributes(dbghelpFile3) != INVALID_FILE_ATTRIBUTES) { - m_hDbhHelp = LoadLibrary(dbghelpFile); + m_hDbhHelp = LoadLibrary(dbghelpFile3); } } #endif diff --git a/open-vm-tools/common-agent/Cpp/ManagementAgent/ManagementAgent/src/ManagementAgentHostMain.cpp b/open-vm-tools/common-agent/Cpp/ManagementAgent/ManagementAgent/src/ManagementAgentHostMain.cpp index 06e855932..1075f6c0a 100644 --- a/open-vm-tools/common-agent/Cpp/ManagementAgent/ManagementAgent/src/ManagementAgentHostMain.cpp +++ b/open-vm-tools/common-agent/Cpp/ManagementAgent/ManagementAgent/src/ManagementAgentHostMain.cpp @@ -100,6 +100,11 @@ int32 main(int32 argc, char** argv) { _gManagementAgentHostWork.CreateInstance(); _gManagementAgentHostWork->initialize(); + const uint32 maxStrLen = 4096; + if ((argc < 1) || (NULL == argv) || (NULL == argv[0]) || (::strnlen(argv[0], maxStrLen) >= maxStrLen)) { + CAF_CM_EXCEPTION_VA0(E_INVALIDARG, "argc/argv are invalid"); + } + #ifdef WIN32 CWinService::initialize(_gManagementAgentHostWork); CWinService::execute(argc, argv); diff --git a/open-vm-tools/common-agent/Cpp/ManagementAgent/Subsystems/MaIntegration/src/CConfigEnv.cpp b/open-vm-tools/common-agent/Cpp/ManagementAgent/Subsystems/MaIntegration/src/CConfigEnv.cpp index 3981bdb27..12343123d 100644 --- a/open-vm-tools/common-agent/Cpp/ManagementAgent/Subsystems/MaIntegration/src/CConfigEnv.cpp +++ b/open-vm-tools/common-agent/Cpp/ManagementAgent/Subsystems/MaIntegration/src/CConfigEnv.cpp @@ -76,6 +76,9 @@ SmartPtrCPersistenceDoc CConfigEnv::getUpdated( if (FileSystemUtils::doesFileExist(_listenerConfiguredStage1Path)) { if (_persistence.IsNull()) { _persistence = CPersistenceUtils::loadPersistence(_persistenceDir); + if (FileSystemUtils::doesFileExist(_listenerConfiguredStage2Path)) { + _persistenceUpdated = _persistence; + } } const SmartPtrCPersistenceDoc persistenceTmp =