From: Oliver Kurth Date: Fri, 15 Sep 2017 18:22:40 +0000 (-0700) Subject: Update of the common-agent (CAF) service source from the development team. X-Git-Tag: stable-10.2.0~740 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=37ca884eaa72248dce6d20bbd960663a8c482d42;p=thirdparty%2Fopen-vm-tools.git Update of the common-agent (CAF) service source from the development team. --- diff --git a/open-vm-tools/common-agent/Cpp/Communication/Subsystems/amqpIntegration/src/CachingConnectionFactoryObj.cpp b/open-vm-tools/common-agent/Cpp/Communication/Subsystems/amqpIntegration/src/CachingConnectionFactoryObj.cpp index a58ca5734..75ad2d7b9 100644 --- a/open-vm-tools/common-agent/Cpp/Communication/Subsystems/amqpIntegration/src/CachingConnectionFactoryObj.cpp +++ b/open-vm-tools/common-agent/Cpp/Communication/Subsystems/amqpIntegration/src/CachingConnectionFactoryObj.cpp @@ -27,23 +27,26 @@ void CachingConnectionFactoryObj::initializeBean( const std::string persistenceDir = AppConfigUtils::getRequiredString( "persistence_dir"); - const SmartPtrCAmqpBrokerDoc amqpBroker = CPersistenceUtils::loadAmqpBroker( + const SmartPtrCPersistenceProtocolDoc persistenceProtocol = CPersistenceUtils::loadPersistenceProtocol( persistenceDir); UriUtils::SUriRecord uri; - UriUtils::parseUriString(amqpBroker->getUri(), uri); + UriUtils::parseUriString(persistenceProtocol->getUri(), uri); const std::string vhost = UriUtils::findOptParameter(uri, "vhost", - AppConfigUtils::getOptionalString("vhost")); - const std::string connectionTimeout = UriUtils::findOptParameter(uri, - "connection_timeout", AppConfigUtils::getOptionalString("connection_timeout")); - const std::string connectionRetries = UriUtils::findOptParameter(uri, - "connection_retries", AppConfigUtils::getOptionalString("connection_retries")); - const std::string connectionSecondsToWait = UriUtils::findOptParameter(uri, - "connection_seconds_to_wait", - AppConfigUtils::getOptionalString("connection_seconds_to_wait")); - const std::string channelCacheSize = UriUtils::findOptParameter(uri, - "channel_cache_size", AppConfigUtils::getOptionalString("channel_cache_size")); + AppConfigUtils::getRequiredString("communication_amqp", "vhost")); + const std::string connectionTimeout = UriUtils::findOptParameter(uri, "connection_timeout", + CStringConv::toString( + AppConfigUtils::getRequiredUint32("communication_amqp", "connection_timeout"))); + const std::string connectionRetries = UriUtils::findOptParameter(uri, "connection_retries", + CStringConv::toString( + AppConfigUtils::getRequiredUint32("communication_amqp", "connection_retries"))); + const std::string connectionSecondsToWait = UriUtils::findOptParameter(uri, "connection_seconds_to_wait", + CStringConv::toString( + AppConfigUtils::getRequiredUint32("communication_amqp", "connection_seconds_to_wait"))); + const std::string channelCacheSize = UriUtils::findOptParameter(uri, "channel_cache_size", + CStringConv::toString( + AppConfigUtils::getRequiredUint32("communication_amqp", "channel_cache_size"))); CAF_CM_VALIDATE_STRING(uri.protocol); CAF_CM_VALIDATE_STRING(uri.host); diff --git a/open-vm-tools/common-agent/Cpp/Communication/Subsystems/amqpIntegration/src/SecureCachingConnectionFactoryObj.cpp b/open-vm-tools/common-agent/Cpp/Communication/Subsystems/amqpIntegration/src/SecureCachingConnectionFactoryObj.cpp index 3ab94a0a1..c9128d519 100644 --- a/open-vm-tools/common-agent/Cpp/Communication/Subsystems/amqpIntegration/src/SecureCachingConnectionFactoryObj.cpp +++ b/open-vm-tools/common-agent/Cpp/Communication/Subsystems/amqpIntegration/src/SecureCachingConnectionFactoryObj.cpp @@ -32,8 +32,8 @@ void SecureCachingConnectionFactoryObj::initializeBean( CPersistenceUtils::loadPersistence(persistenceDir); CAF_CM_VALIDATE_SMARTPTR(persistence); - const SmartPtrCAmqpBrokerDoc amqpBroker = - CPersistenceUtils::loadAmqpBroker(persistence->getPersistenceProtocol()); + const SmartPtrCPersistenceProtocolDoc amqpBroker = + CPersistenceUtils::loadPersistenceProtocol(persistence->getPersistenceProtocolCollection()); CAF_CM_VALIDATE_SMARTPTR(amqpBroker); const SmartPtrCCertPathCollectionDoc tlsCertPathCollection = amqpBroker->getTlsCertPathCollection(); @@ -45,16 +45,20 @@ void SecureCachingConnectionFactoryObj::initializeBean( UriUtils::SUriRecord uri; UriUtils::parseUriString(amqpBroker->getUri(), uri); - const std::string vhost = UriUtils::findOptParameter( - uri, "vhost", AppConfigUtils::getOptionalString("vhost")); - const std::string connectionTimeout = UriUtils::findOptParameter( - uri, "connection_timeout", AppConfigUtils::getOptionalString("connection_timeout")); - const std::string connectionRetries = UriUtils::findOptParameter( - uri, "connection_retries", AppConfigUtils::getOptionalString("connection_retries")); - const std::string connectionSecondsToWait = UriUtils::findOptParameter( - uri, "connection_seconds_to_wait", AppConfigUtils::getOptionalString("connection_seconds_to_wait")); - const std::string channelCacheSize = UriUtils::findOptParameter( - uri, "channel_cache_size", AppConfigUtils::getOptionalString("channel_cache_size")); + const std::string vhost = UriUtils::findOptParameter(uri, "vhost", + AppConfigUtils::getRequiredString("communication_amqp", "vhost")); + const std::string connectionTimeout = UriUtils::findOptParameter(uri, "connection_timeout", + CStringConv::toString( + AppConfigUtils::getRequiredUint32("communication_amqp", "connection_timeout"))); + const std::string connectionRetries = UriUtils::findOptParameter(uri, "connection_retries", + CStringConv::toString( + AppConfigUtils::getRequiredUint32("communication_amqp", "connection_retries"))); + const std::string connectionSecondsToWait = UriUtils::findOptParameter(uri, "connection_seconds_to_wait", + CStringConv::toString( + AppConfigUtils::getRequiredUint32("communication_amqp", "connection_seconds_to_wait"))); + const std::string channelCacheSize = UriUtils::findOptParameter(uri, "channel_cache_size", + CStringConv::toString( + AppConfigUtils::getRequiredUint32("communication_amqp", "channel_cache_size"))); const std::deque tlsCertPathCollectionInner = tlsCertPathCollection->getCertPath(); CAF_CM_VALIDATE_STL(tlsCertPathCollectionInner); diff --git a/open-vm-tools/common-agent/Cpp/Communication/Subsystems/commIntegration/src/stdafx.h b/open-vm-tools/common-agent/Cpp/Communication/Subsystems/commIntegration/src/stdafx.h index 04748ecb4..ffc3d2863 100644 --- a/open-vm-tools/common-agent/Cpp/Communication/Subsystems/commIntegration/src/stdafx.h +++ b/open-vm-tools/common-agent/Cpp/Communication/Subsystems/commIntegration/src/stdafx.h @@ -14,7 +14,6 @@ #include "../../../amqpCore/src/amqpCore/amqpIntegrationCoreLink.h" #include "commIntegrationDefines.h" -#include #include #include #include "CMessagePartRecord.h" diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/CafCppUnitSupport.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/CafCppUnitSupport.h index 37f073baf..e69de29bb 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/CafCppUnitSupport.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/CafCppUnitSupport.h @@ -1,17 +0,0 @@ -/////////////////////////////////////////////////////////////////////////////////////////// -// -// Author: michael.donahue -// -// Created: 6/25/2008 -// -// Copyright (c) 2011 Vmware, Inc. All rights reserved. -// -- VMware Confidential -// -/////////////////////////////////////////////////////////////////////////////////////////// - -#ifndef CafCppUnitSupport_h_ -#define CafCppUnitSupport_h_ - -#include "../test/CafCppUnitSupport/CafCppUnitSupportLink.h" - -#endif // #ifndef CafCppUnitSupport_h_ diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/CafContracts.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/CafContracts.h index 143468dcc..e69de29bb 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/CafContracts.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/CafContracts.h @@ -1,74 +0,0 @@ -/* - * Author: bwilliams - * Created: April 6, 2012 - * - * Copyright (c) 2012 Vmware, Inc. All rights reserved. - * -- VMware Confidential - */ - -#ifndef Proxy_CafContracts_h_ -#define Proxy_CafContracts_h_ - -#include "../../src/Globals/CommonGlobalsLink.h" - -namespace Caf { - extern COMMONGLOBALS_LINKAGE const char* _sConfigTmpDir; - extern COMMONGLOBALS_LINKAGE const char* _sConfigInputDir; - extern COMMONGLOBALS_LINKAGE const char* _sConfigOutputDir; - extern COMMONGLOBALS_LINKAGE const char* _sConfigSchemaCacheDir; - extern COMMONGLOBALS_LINKAGE const char* _sConfigProviderRegDir; - extern COMMONGLOBALS_LINKAGE const char* _sConfigInstallDir; - extern COMMONGLOBALS_LINKAGE const char* _sConfigInvokersDir; - extern COMMONGLOBALS_LINKAGE const char* _sConfigProvidersDir; - extern COMMONGLOBALS_LINKAGE const char* _sConfigCommonPackagesDir; - extern COMMONGLOBALS_LINKAGE const char* _sConfigWorkingDir; - extern COMMONGLOBALS_LINKAGE const char* _sConfigPrivateKeyFile; - extern COMMONGLOBALS_LINKAGE const char* _sConfigCertFile; - - extern COMMONGLOBALS_LINKAGE const char* _sProviderHostArea; - extern COMMONGLOBALS_LINKAGE const char* _sManagementAgentArea; - - extern COMMONGLOBALS_LINKAGE const char* _sSchemaSummaryFilename; - extern COMMONGLOBALS_LINKAGE const char* _sProviderResponseFilename; - extern COMMONGLOBALS_LINKAGE const char* _sStdoutFilename; - extern COMMONGLOBALS_LINKAGE const char* _sStderrFilename; - - extern COMMONGLOBALS_LINKAGE const char* _sPayloadRequestFilename; - extern COMMONGLOBALS_LINKAGE const char* _sResponseFilename; - extern COMMONGLOBALS_LINKAGE const char* _sErrorResponseFilename; - extern COMMONGLOBALS_LINKAGE const char* _sProviderRequestFilename; - extern COMMONGLOBALS_LINKAGE const char* _sInfraErrFilename; - - // FxProviderFx related string constants - extern COMMONGLOBALS_LINKAGE const char* _sObjIdProviderDriver; - extern COMMONGLOBALS_LINKAGE const char* _sObjIdProviderCdifFormatter; - - // MA related string constants - extern COMMONGLOBALS_LINKAGE const char* _sObjIdCollectSchemaExecutor; - extern COMMONGLOBALS_LINKAGE const char* _sObjIdProviderCollectSchemaExecutor; - extern COMMONGLOBALS_LINKAGE const char* _sObjIdProviderExecutor; - extern COMMONGLOBALS_LINKAGE const char* _sObjIdSinglePmeRequestSplitterInstance; - extern COMMONGLOBALS_LINKAGE const char* _sObjIdSinglePmeRequestSplitter; - extern COMMONGLOBALS_LINKAGE const char* _sObjIdDiagToMgmtRequestTransformerInstance; - extern COMMONGLOBALS_LINKAGE const char* _sObjIdDiagToMgmtRequestTransformer; - extern COMMONGLOBALS_LINKAGE const char* _sObjIdInstallToMgmtRequestTransformerInstance; - extern COMMONGLOBALS_LINKAGE const char* _sObjIdInstallToMgmtRequestTransformer; - - extern COMMONGLOBALS_LINKAGE const char* _sObjIdAttachmentRequestTransformerInstance; - extern COMMONGLOBALS_LINKAGE const char* _sObjIdAttachmentRequestTransformer; - extern COMMONGLOBALS_LINKAGE const char* _sObjIdVersionTransformerInstance; - extern COMMONGLOBALS_LINKAGE const char* _sObjIdVersionTransformer; - - extern COMMONGLOBALS_LINKAGE const char* _sObjIdPersistenceNamespaceDb; - extern COMMONGLOBALS_LINKAGE const char* _sObjIdConfigEnv; - - // Framework related string constants - extern COMMONGLOBALS_LINKAGE const char* _sObjIdErrorToResponseTransformerInstance; - extern COMMONGLOBALS_LINKAGE const char* _sObjIdErrorToResponseTransformer; - extern COMMONGLOBALS_LINKAGE const char* _sObjIdPayloadHeaderEnricherInstance; - extern COMMONGLOBALS_LINKAGE const char* _sObjIdPayloadHeaderEnricher; - extern COMMONGLOBALS_LINKAGE const char* _sObjIdEnvelopeToPayloadTransformerInstance; - extern COMMONGLOBALS_LINKAGE const char* _sObjIdEnvelopeToPayloadTransformer; -} - -#endif diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/CafCoreTypesDoc/CAddInCollectionDoc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/CafCoreTypesDoc/CAddInCollectionDoc.h index 2c1b3875a..e69de29bb 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/CafCoreTypesDoc/CAddInCollectionDoc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/CafCoreTypesDoc/CAddInCollectionDoc.h @@ -1,57 +0,0 @@ -/* - * Author: bwilliams - * Created: April 6, 2012 - * - * 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. - * - */ - -#ifndef CAddInCollectionDoc_h_ -#define CAddInCollectionDoc_h_ - -namespace Caf { - -/// A simple container for objects of type AddInCollection -class CAddInCollectionDoc { -public: - CAddInCollectionDoc() : - _isInitialized(false) {} - 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; - } - } - -public: - /// Accessor for the AddIn - std::deque getAddInCollection() const { - return _addInCollection; - } - -private: - bool _isInitialized; - - std::deque _addInCollection; - -private: - CAF_CM_DECLARE_NOCOPY(CAddInCollectionDoc); -}; - -CAF_DECLARE_SMART_POINTER(CAddInCollectionDoc); - -} - -#endif diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/CafCoreTypesDoc/CAddInsDoc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/CafCoreTypesDoc/CAddInsDoc.h index bb03f6c46..e69de29bb 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/CafCoreTypesDoc/CAddInsDoc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/CafCoreTypesDoc/CAddInsDoc.h @@ -1,57 +0,0 @@ -/* - * Author: bwilliams - * Created: April 6, 2012 - * - * 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. - * - */ - -#ifndef CAddInsDoc_h_ -#define CAddInsDoc_h_ - -namespace Caf { - -/// A simple container for objects of type AddIns -class CAddInsDoc { -public: - CAddInsDoc() : - _isInitialized(false) {} - 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; - } - } - -public: - /// Accessor for the AddInCollection - std::deque getAddInCollection() const { - return _addInCollection; - } - -private: - bool _isInitialized; - - std::deque _addInCollection; - -private: - CAF_CM_DECLARE_NOCOPY(CAddInsDoc); -}; - -CAF_DECLARE_SMART_POINTER(CAddInsDoc); - -} - -#endif diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/CafCoreTypesDoc/CAttachmentCollectionDoc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/CafCoreTypesDoc/CAttachmentCollectionDoc.h index d12a71583..e69de29bb 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/CafCoreTypesDoc/CAttachmentCollectionDoc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/CafCoreTypesDoc/CAttachmentCollectionDoc.h @@ -1,65 +0,0 @@ -/* - * Author: bwilliams - * Created: April 6, 2012 - * - * 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. - * - */ - -#ifndef CAttachmentCollectionDoc_h_ -#define CAttachmentCollectionDoc_h_ - -namespace Caf { - -/// A simple container for objects of type AttachmentCollection -class CAttachmentCollectionDoc { -public: - CAttachmentCollectionDoc() : - _isInitialized(false) {} - virtual ~CAttachmentCollectionDoc() {} - -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(), - const std::deque inlineAttachment = std::deque()) { - if (! _isInitialized) { - _attachment = attachment; - _inlineAttachment = inlineAttachment; - - _isInitialized = true; - } - } - -public: - /// Accessor for the Attachment - std::deque getAttachment() const { - return _attachment; - } - - /// Accessor for the InlineAttachment - std::deque getInlineAttachment() const { - return _inlineAttachment; - } - -private: - bool _isInitialized; - - std::deque _attachment; - std::deque _inlineAttachment; - -private: - CAF_CM_DECLARE_NOCOPY(CAttachmentCollectionDoc); -}; - -CAF_DECLARE_SMART_POINTER(CAttachmentCollectionDoc); - -} - -#endif diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/CafCoreTypesDoc/CAttachmentDoc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/CafCoreTypesDoc/CAttachmentDoc.h index ddcf46ce2..e69de29bb 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/CafCoreTypesDoc/CAttachmentDoc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/CafCoreTypesDoc/CAttachmentDoc.h @@ -1,88 +0,0 @@ -/* - * Author: bwilliams - * Created: April 6, 2012 - * - * Copyright (c) 2012 Vmware, Inc. All rights reserved. - * -- VMware Confidential - * - */ - -#ifndef CAttachmentDoc_h_ -#define CAttachmentDoc_h_ - -namespace Caf { - -/// A simple container for objects of type Attachment -class CAttachmentDoc { -public: - CAttachmentDoc() : - _isInitialized(false), - _isReference(false), - _cmsPolicy(CMS_POLICY_CAF_ENCRYPTED_AND_SIGNED) {} - virtual ~CAttachmentDoc() {} - -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::string name, - 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; - } - } - -public: - /// Accessor for the Name - std::string getName() const { - return _name; - } - - /// Accessor for the Type - std::string getType() const { - return _type; - } - - /// Accessor for the Uri - std::string getUri() const { - return _uri; - } - - /// Accessor for the IsReference - bool getIsReference() const { - return _isReference; - } - - /// Accessor for the CMS Policy - CMS_POLICY getCmsPolicy() const { - return _cmsPolicy; - } - -private: - bool _isInitialized; - - std::string _name; - std::string _type; - std::string _uri; - bool _isReference; - CMS_POLICY _cmsPolicy; - -private: - CAF_CM_DECLARE_NOCOPY(CAttachmentDoc); -}; - -CAF_DECLARE_SMART_POINTER(CAttachmentDoc); - -} - -#endif diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/CafCoreTypesDoc/CAttachmentNameCollectionDoc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/CafCoreTypesDoc/CAttachmentNameCollectionDoc.h index 341696649..e69de29bb 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/CafCoreTypesDoc/CAttachmentNameCollectionDoc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/CafCoreTypesDoc/CAttachmentNameCollectionDoc.h @@ -1,57 +0,0 @@ -/* - * Author: bwilliams - * Created: April 6, 2012 - * - * 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. - * - */ - -#ifndef CAttachmentNameCollectionDoc_h_ -#define CAttachmentNameCollectionDoc_h_ - -namespace Caf { - -/// A simple container for objects of type AttachmentNameCollection -class CAttachmentNameCollectionDoc { -public: - CAttachmentNameCollectionDoc() : - _isInitialized(false) {} - 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; - } - } - -public: - /// Accessor for the Name - std::deque getName() const { - return _name; - } - -private: - bool _isInitialized; - - std::deque _name; - -private: - CAF_CM_DECLARE_NOCOPY(CAttachmentNameCollectionDoc); -}; - -CAF_DECLARE_SMART_POINTER(CAttachmentNameCollectionDoc); - -} - -#endif diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/CafCoreTypesDoc/CAuthnAuthzCollectionDoc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/CafCoreTypesDoc/CAuthnAuthzCollectionDoc.h index 4bd791434..e69de29bb 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/CafCoreTypesDoc/CAuthnAuthzCollectionDoc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/CafCoreTypesDoc/CAuthnAuthzCollectionDoc.h @@ -1,57 +0,0 @@ -/* - * Author: bwilliams - * Created: April 6, 2012 - * - * 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. - * - */ - -#ifndef CAuthnAuthzCollectionDoc_h_ -#define CAuthnAuthzCollectionDoc_h_ - -namespace Caf { - -/// Set of logging levels for different components -class CAuthnAuthzCollectionDoc { -public: - CAuthnAuthzCollectionDoc() : - _isInitialized(false) {} - 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; - } - } - -public: - /// Used to change the logging level for a specific component - std::deque getAuthnAuthz() const { - return _authnAuthz; - } - -private: - bool _isInitialized; - - std::deque _authnAuthz; - -private: - CAF_CM_DECLARE_NOCOPY(CAuthnAuthzCollectionDoc); -}; - -CAF_DECLARE_SMART_POINTER(CAuthnAuthzCollectionDoc); - -} - -#endif diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/CafCoreTypesDoc/CAuthnAuthzDoc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/CafCoreTypesDoc/CAuthnAuthzDoc.h index 39afc7e27..e69de29bb 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/CafCoreTypesDoc/CAuthnAuthzDoc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/CafCoreTypesDoc/CAuthnAuthzDoc.h @@ -1,79 +0,0 @@ -/* - * Author: bwilliams - * Created: May 24, 2015 - * - * Copyright (c) 2012 Vmware, Inc. All rights reserved. - * -- VMware Confidential - * - */ - -#ifndef CAuthnAuthzDoc_h_ -#define CAuthnAuthzDoc_h_ - -namespace Caf { - -/// A simple container for objects of type AuthnAuthz -class CAuthnAuthzDoc { -public: - CAuthnAuthzDoc() : - _isInitialized(false), - _sequenceNumber(0) {} - virtual ~CAuthnAuthzDoc() {} - -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::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; - } - } - -public: - /// Accessor for the Type - std::string getType() const { - return _type; - } - - /// Accessor for the Value - std::string getValue() const { - return _value; - } - - /// Accessor for the Name - std::string getName() const { - return _name; - } - - /// Accessor for the SequenceNumber - int32 getSequenceNumber() const { - return _sequenceNumber; - } - -private: - bool _isInitialized; - - std::string _type; - std::string _value; - std::string _name; - int32 _sequenceNumber; - -private: - CAF_CM_DECLARE_NOCOPY(CAuthnAuthzDoc); -}; - -CAF_DECLARE_SMART_POINTER(CAuthnAuthzDoc); - -} - -#endif diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/CafCoreTypesDoc/CClassFiltersDoc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/CafCoreTypesDoc/CClassFiltersDoc.h index 6599701fb..e69de29bb 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/CafCoreTypesDoc/CClassFiltersDoc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/CafCoreTypesDoc/CClassFiltersDoc.h @@ -1,65 +0,0 @@ -/* - * Author: bwilliams - * Created: April 6, 2012 - * - * 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. - * - */ - -#ifndef CClassFiltersDoc_h_ -#define CClassFiltersDoc_h_ - -namespace Caf { - -/// A simple container for objects of type ClassFilters -class CClassFiltersDoc { -public: - CClassFiltersDoc() : - _isInitialized(false) {} - virtual ~CClassFiltersDoc() {} - -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::string dialect = std::string(), - const std::deque classFilter = std::deque()) { - if (! _isInitialized) { - _dialect = dialect; - _classFilter = classFilter; - - _isInitialized = true; - } - } - -public: - /// Accessor for the Dialect - std::string getDialect() const { - return _dialect; - } - - /// Accessor for the ClassFilter - std::deque getClassFilter() const { - return _classFilter; - } - -private: - bool _isInitialized; - - std::string _dialect; - std::deque _classFilter; - -private: - CAF_CM_DECLARE_NOCOPY(CClassFiltersDoc); -}; - -CAF_DECLARE_SMART_POINTER(CClassFiltersDoc); - -} - -#endif diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/CafCoreTypesDoc/CClassSpecifierDoc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/CafCoreTypesDoc/CClassSpecifierDoc.h index 6672a9276..e69de29bb 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/CafCoreTypesDoc/CClassSpecifierDoc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/CafCoreTypesDoc/CClassSpecifierDoc.h @@ -1,65 +0,0 @@ -/* - * Author: bwilliams - * Created: April 6, 2012 - * - * 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. - * - */ - -#ifndef CClassSpecifierDoc_h_ -#define CClassSpecifierDoc_h_ - -namespace Caf { - -/// A simple container for objects of type ClassSpecifier -class CClassSpecifierDoc { -public: - CClassSpecifierDoc() : - _isInitialized(false) {} - virtual ~CClassSpecifierDoc() {} - -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 SmartPtrCFullyQualifiedClassGroupDoc fullyQualifiedClass = SmartPtrCFullyQualifiedClassGroupDoc(), - const SmartPtrCClassFiltersDoc classFilters = SmartPtrCClassFiltersDoc()) { - if (! _isInitialized) { - _fullyQualifiedClass = fullyQualifiedClass; - _classFilters = classFilters; - - _isInitialized = true; - } - } - -public: - /// Accessor for the FullyQualifiedClass - SmartPtrCFullyQualifiedClassGroupDoc getFullyQualifiedClass() const { - return _fullyQualifiedClass; - } - - /// Accessor for the ClassFilters - SmartPtrCClassFiltersDoc getClassFilters() const { - return _classFilters; - } - -private: - bool _isInitialized; - - SmartPtrCFullyQualifiedClassGroupDoc _fullyQualifiedClass; - SmartPtrCClassFiltersDoc _classFilters; - -private: - CAF_CM_DECLARE_NOCOPY(CClassSpecifierDoc); -}; - -CAF_DECLARE_SMART_POINTER(CClassSpecifierDoc); - -} - -#endif diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/CafCoreTypesDoc/CFullyQualifiedClassGroupDoc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/CafCoreTypesDoc/CFullyQualifiedClassGroupDoc.h index cd2d04db7..e69de29bb 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/CafCoreTypesDoc/CFullyQualifiedClassGroupDoc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/CafCoreTypesDoc/CFullyQualifiedClassGroupDoc.h @@ -1,73 +0,0 @@ -/* - * Author: bwilliams - * Created: April 6, 2012 - * - * 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. - * - */ - -#ifndef CFullyQualifiedClassGroupDoc_h_ -#define CFullyQualifiedClassGroupDoc_h_ - -namespace Caf { - -/// A simple container for objects of type FullyQualifiedClassGroup -class CFullyQualifiedClassGroupDoc { -public: - CFullyQualifiedClassGroupDoc() : - _isInitialized(false) {} - virtual ~CFullyQualifiedClassGroupDoc() {} - -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::string classNamespace, - const std::string className, - const std::string classVersion) { - if (! _isInitialized) { - _classNamespace = classNamespace; - _className = className; - _classVersion = classVersion; - - _isInitialized = true; - } - } - -public: - /// Accessor for the ClassNamespace - std::string getClassNamespace() const { - return _classNamespace; - } - - /// Accessor for the ClassName - std::string getClassName() const { - return _className; - } - - /// Accessor for the ClassVersion - std::string getClassVersion() const { - return _classVersion; - } - -private: - bool _isInitialized; - - std::string _classNamespace; - std::string _className; - std::string _classVersion; - -private: - CAF_CM_DECLARE_NOCOPY(CFullyQualifiedClassGroupDoc); -}; - -CAF_DECLARE_SMART_POINTER(CFullyQualifiedClassGroupDoc); - -} - -#endif diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/CafCoreTypesDoc/CInlineAttachmentCollectionDoc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/CafCoreTypesDoc/CInlineAttachmentCollectionDoc.h index 7c33ab046..e69de29bb 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/CafCoreTypesDoc/CInlineAttachmentCollectionDoc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/CafCoreTypesDoc/CInlineAttachmentCollectionDoc.h @@ -1,57 +0,0 @@ -/* - * Author: bwilliams - * Created: April 6, 2012 - * - * 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. - * - */ - -#ifndef CInlineAttachmentCollectionDoc_h_ -#define CInlineAttachmentCollectionDoc_h_ - -namespace Caf { - -/// A simple container for objects of type InlineAttachmentCollection -class CInlineAttachmentCollectionDoc { -public: - CInlineAttachmentCollectionDoc() : - _isInitialized(false) {} - 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; - } - } - -public: - /// Accessor for the InlineAttachment - std::deque getInlineAttachment() const { - return _attachment; - } - -private: - bool _isInitialized; - - std::deque _attachment; - -private: - CAF_CM_DECLARE_NOCOPY(CInlineAttachmentCollectionDoc); -}; - -CAF_DECLARE_SMART_POINTER(CInlineAttachmentCollectionDoc); - -} - -#endif diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/CafCoreTypesDoc/CInlineAttachmentDoc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/CafCoreTypesDoc/CInlineAttachmentDoc.h index 0bdf80350..e69de29bb 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/CafCoreTypesDoc/CInlineAttachmentDoc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/CafCoreTypesDoc/CInlineAttachmentDoc.h @@ -1,73 +0,0 @@ -/* - * Author: bwilliams - * Created: April 6, 2012 - * - * 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. - * - */ - -#ifndef CInlineAttachmentDoc_h_ -#define CInlineAttachmentDoc_h_ - -namespace Caf { - -/// A simple container for objects of type InlineAttachment -class CInlineAttachmentDoc { -public: - CInlineAttachmentDoc() : - _isInitialized(false) {} - virtual ~CInlineAttachmentDoc() {} - -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::string name, - const std::string type, - const std::string value) { - if (! _isInitialized) { - _name = name; - _type = type; - _value = value; - - _isInitialized = true; - } - } - -public: - /// Accessor for the Name - std::string getName() const { - return _name; - } - - /// Accessor for the Type - std::string getType() const { - return _type; - } - - /// Accessor for the Value - std::string getValue() const { - return _value; - } - -private: - bool _isInitialized; - - std::string _name; - std::string _type; - std::string _value; - -private: - CAF_CM_DECLARE_NOCOPY(CInlineAttachmentDoc); -}; - -CAF_DECLARE_SMART_POINTER(CInlineAttachmentDoc); - -} - -#endif diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/CafCoreTypesDoc/CLoggingLevelCollectionDoc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/CafCoreTypesDoc/CLoggingLevelCollectionDoc.h index 2f41493fe..e69de29bb 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/CafCoreTypesDoc/CLoggingLevelCollectionDoc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/CafCoreTypesDoc/CLoggingLevelCollectionDoc.h @@ -1,57 +0,0 @@ -/* - * Author: bwilliams - * Created: April 6, 2012 - * - * 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. - * - */ - -#ifndef CLoggingLevelCollectionDoc_h_ -#define CLoggingLevelCollectionDoc_h_ - -namespace Caf { - -/// Set of logging levels for different components -class CLoggingLevelCollectionDoc { -public: - CLoggingLevelCollectionDoc() : - _isInitialized(false) {} - 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; - } - } - -public: - /// Used to change the logging level for a specific component - std::deque getLoggingLevel() const { - return _loggingLevel; - } - -private: - bool _isInitialized; - - std::deque _loggingLevel; - -private: - CAF_CM_DECLARE_NOCOPY(CLoggingLevelCollectionDoc); -}; - -CAF_DECLARE_SMART_POINTER(CLoggingLevelCollectionDoc); - -} - -#endif diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/CafCoreTypesDoc/CLoggingLevelElemDoc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/CafCoreTypesDoc/CLoggingLevelElemDoc.h index 6791e8e25..e69de29bb 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/CafCoreTypesDoc/CLoggingLevelElemDoc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/CafCoreTypesDoc/CLoggingLevelElemDoc.h @@ -1,67 +0,0 @@ -/* - * Author: bwilliams - * Created: April 6, 2012 - * - * 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. - * - */ - -#ifndef CLoggingLevelElemDoc_h_ -#define CLoggingLevelElemDoc_h_ - -namespace Caf { - -/// Logging level for a component -class CLoggingLevelElemDoc { -public: - CLoggingLevelElemDoc() : - _component(LOGGINGCOMPONENT_NONE), - _level(LOGGINGLEVEL_NONE), - _isInitialized(false) {} - virtual ~CLoggingLevelElemDoc() {} - -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 LOGGINGCOMPONENT_TYPE component = LOGGINGCOMPONENT_NONE, - const LOGGINGLEVEL_TYPE level = LOGGINGLEVEL_NONE) { - if (! _isInitialized) { - _component = component; - _level = level; - - _isInitialized = true; - } - } - -public: - /// The logging level applies to this component - LOGGINGCOMPONENT_TYPE getComponent() const { - return _component; - } - - /// Set the logging level to this value - LOGGINGLEVEL_TYPE getLevel() const { - return _level; - } - -private: - LOGGINGCOMPONENT_TYPE _component; - LOGGINGLEVEL_TYPE _level; - - bool _isInitialized; - -private: - CAF_CM_DECLARE_NOCOPY(CLoggingLevelElemDoc); -}; - -CAF_DECLARE_SMART_POINTER(CLoggingLevelElemDoc); - -} - -#endif diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/CafCoreTypesDoc/COperationDoc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/CafCoreTypesDoc/COperationDoc.h index 3d2dbff2b..e69de29bb 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/CafCoreTypesDoc/COperationDoc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/CafCoreTypesDoc/COperationDoc.h @@ -1,65 +0,0 @@ -/* - * Author: bwilliams - * Created: April 6, 2012 - * - * 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. - * - */ - -#ifndef COperationDoc_h_ -#define COperationDoc_h_ - -namespace Caf { - -/// A simple container for objects of type Operation -class COperationDoc { -public: - COperationDoc() : - _isInitialized(false) {} - virtual ~COperationDoc() {} - -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::string name, - const SmartPtrCParameterCollectionDoc parameterCollection = SmartPtrCParameterCollectionDoc()) { - if (! _isInitialized) { - _name = name; - _parameterCollection = parameterCollection; - - _isInitialized = true; - } - } - -public: - /// Accessor for the Name - std::string getName() const { - return _name; - } - - /// Accessor for the ParameterCollection - SmartPtrCParameterCollectionDoc getParameterCollection() const { - return _parameterCollection; - } - -private: - bool _isInitialized; - - std::string _name; - SmartPtrCParameterCollectionDoc _parameterCollection; - -private: - CAF_CM_DECLARE_NOCOPY(COperationDoc); -}; - -CAF_DECLARE_SMART_POINTER(COperationDoc); - -} - -#endif diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/CafCoreTypesDoc/CParameterCollectionDoc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/CafCoreTypesDoc/CParameterCollectionDoc.h index e1c0ac533..e69de29bb 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/CafCoreTypesDoc/CParameterCollectionDoc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/CafCoreTypesDoc/CParameterCollectionDoc.h @@ -1,65 +0,0 @@ -/* - * Author: bwilliams - * Created: April 6, 2012 - * - * 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. - * - */ - -#ifndef CParameterCollectionDoc_h_ -#define CParameterCollectionDoc_h_ - -namespace Caf { - -/// A simple container for objects of type ParameterCollection -class CParameterCollectionDoc { -public: - CParameterCollectionDoc() : - _isInitialized(false) {} - virtual ~CParameterCollectionDoc() {} - -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 parameter = std::deque(), - const std::deque instanceParameter = std::deque()) { - if (! _isInitialized) { - _parameter = parameter; - _instanceParameter = instanceParameter; - - _isInitialized = true; - } - } - -public: - /// Accessor for the Parameter - std::deque getParameter() const { - return _parameter; - } - - /// Accessor for the InstanceParameter - std::deque getInstanceParameter() const { - return _instanceParameter; - } - -private: - bool _isInitialized; - - std::deque _parameter; - std::deque _instanceParameter; - -private: - CAF_CM_DECLARE_NOCOPY(CParameterCollectionDoc); -}; - -CAF_DECLARE_SMART_POINTER(CParameterCollectionDoc); - -} - -#endif diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/CafCoreTypesDoc/CPropertyCollectionDoc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/CafCoreTypesDoc/CPropertyCollectionDoc.h index 70b1785bb..e69de29bb 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/CafCoreTypesDoc/CPropertyCollectionDoc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/CafCoreTypesDoc/CPropertyCollectionDoc.h @@ -1,57 +0,0 @@ -/* - * Author: bwilliams - * Created: April 6, 2012 - * - * 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. - * - */ - -#ifndef CPropertyCollectionDoc_h_ -#define CPropertyCollectionDoc_h_ - -namespace Caf { - -/// A simple container for objects of type PropertyCollection -class CPropertyCollectionDoc { -public: - CPropertyCollectionDoc() : - _isInitialized(false) {} - 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; - } - } - -public: - /// Accessor for the Property - std::deque getProperty() const { - return _property; - } - -private: - bool _isInitialized; - - std::deque _property; - -private: - CAF_CM_DECLARE_NOCOPY(CPropertyCollectionDoc); -}; - -CAF_DECLARE_SMART_POINTER(CPropertyCollectionDoc); - -} - -#endif diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/CafCoreTypesDoc/CPropertyDoc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/CafCoreTypesDoc/CPropertyDoc.h index 3da307ebb..e69de29bb 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/CafCoreTypesDoc/CPropertyDoc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/CafCoreTypesDoc/CPropertyDoc.h @@ -1,74 +0,0 @@ -/* - * Author: bwilliams - * Created: April 6, 2012 - * - * 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. - * - */ - -#ifndef CPropertyDoc_h_ -#define CPropertyDoc_h_ - -namespace Caf { - -/// A simple container for objects of type Property -class CPropertyDoc { -public: - CPropertyDoc() : - _type(PROPERTY_NONE), - _isInitialized(false) {} - virtual ~CPropertyDoc() {} - -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::string name, - const PROPERTY_TYPE type, - const std::deque value = std::deque()) { - if (! _isInitialized) { - _name = name; - _type = type; - _value = value; - - _isInitialized = true; - } - } - -public: - /// Accessor for the Name - std::string getName() const { - return _name; - } - - /// Accessor for the Type - PROPERTY_TYPE getType() const { - return _type; - } - - /// Accessor for the Value - std::deque getValue() const { - return _value; - } - -private: - PROPERTY_TYPE _type; - - bool _isInitialized; - std::string _name; - std::deque _value; - -private: - CAF_CM_DECLARE_NOCOPY(CPropertyDoc); -}; - -CAF_DECLARE_SMART_POINTER(CPropertyDoc); - -} - -#endif diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/CafCoreTypesDoc/CProtocolCollectionDoc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/CafCoreTypesDoc/CProtocolCollectionDoc.h index 25a7ab7fe..e69de29bb 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/CafCoreTypesDoc/CProtocolCollectionDoc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/CafCoreTypesDoc/CProtocolCollectionDoc.h @@ -1,57 +0,0 @@ -/* - * Author: bwilliams - * Created: April 6, 2012 - * - * 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. - * - */ - -#ifndef CProtocolCollectionDoc_h_ -#define CProtocolCollectionDoc_h_ - -namespace Caf { - -/// Set of protocol -class CProtocolCollectionDoc { -public: - CProtocolCollectionDoc() : - _isInitialized(false) {} - 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; - } - } - -public: - /// Used to change the logging level for a specific component - std::deque getProtocol() const { - return _protocol; - } - -private: - bool _isInitialized; - - std::deque _protocol; - -private: - CAF_CM_DECLARE_NOCOPY(CProtocolCollectionDoc); -}; - -CAF_DECLARE_SMART_POINTER(CProtocolCollectionDoc); - -} - -#endif diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/CafCoreTypesDoc/CProtocolDoc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/CafCoreTypesDoc/CProtocolDoc.h index 8a7f1f1b1..e69de29bb 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/CafCoreTypesDoc/CProtocolDoc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/CafCoreTypesDoc/CProtocolDoc.h @@ -1,74 +0,0 @@ -/* - * Author: bwilliams - * Created: April 6, 2012 - * - * 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. - * - */ - -#ifndef CProtocolDoc_h_ -#define CProtocolDoc_h_ - -namespace Caf { - -/// A simple container for objects of Protocol -class CProtocolDoc { -public: - CProtocolDoc() : - _sequenceNumber(0), - _isInitialized(false) {} - virtual ~CProtocolDoc() {} - -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::string uri, - const std::string name = std::string(), - const int32 sequenceNumber = 0) { - if (! _isInitialized) { - _name = name; - _uri = uri; - _sequenceNumber = sequenceNumber; - - _isInitialized = true; - } - } - -public: - /// Accessor for the Uri - std::string getUri() const { - return _uri; - } - - /// Accessor for the Name - std::string getName() const { - return _name; - } - - /// Accessor for the Value - int32 getSequenceNumber() const { - return _sequenceNumber; - } - -private: - int32 _sequenceNumber; - bool _isInitialized; - - std::string _uri; - std::string _name; - -private: - CAF_CM_DECLARE_NOCOPY(CProtocolDoc); -}; - -CAF_DECLARE_SMART_POINTER(CProtocolDoc); - -} - -#endif diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/CafCoreTypesDoc/CRequestConfigDoc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/CafCoreTypesDoc/CRequestConfigDoc.h index b766dc5a6..e69de29bb 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/CafCoreTypesDoc/CRequestConfigDoc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/CafCoreTypesDoc/CRequestConfigDoc.h @@ -1,81 +0,0 @@ -/* - * Author: bwilliams - * Created: April 6, 2012 - * - * 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. - * - */ - -#ifndef CRequestConfigDoc_h_ -#define CRequestConfigDoc_h_ - -namespace Caf { - -/// A simple container for objects of type RequestConfig -class CRequestConfigDoc { -public: - CRequestConfigDoc() : - _isInitialized(false) {} - virtual ~CRequestConfigDoc() {} - -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::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; - } - } - -public: - /// Accessor for the ResponseFormatType - std::string getResponseFormatType() const { - return _responseFormatType; - } - - /// Accessor for the RequestProcessorAddIns - SmartPtrCAddInsDoc getRequestProcessorAddIns() const { - return _requestProcessorAddIns; - } - - /// Accessor for the ResponseProcessorAddIns - SmartPtrCAddInsDoc getResponseProcessorAddIns() const { - return _responseProcessorAddIns; - } - - /// Accessor for the LoggingLevelCollection - SmartPtrCLoggingLevelCollectionDoc getLoggingLevelCollection() const { - return _loggingLevelCollection; - } - -private: - bool _isInitialized; - - std::string _responseFormatType; - SmartPtrCAddInsDoc _requestProcessorAddIns; - SmartPtrCAddInsDoc _responseProcessorAddIns; - SmartPtrCLoggingLevelCollectionDoc _loggingLevelCollection; - -private: - CAF_CM_DECLARE_NOCOPY(CRequestConfigDoc); -}; - -CAF_DECLARE_SMART_POINTER(CRequestConfigDoc); - -} - -#endif diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/CafCoreTypesDoc/CRequestHeaderDoc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/CafCoreTypesDoc/CRequestHeaderDoc.h index 820509f78..e69de29bb 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/CafCoreTypesDoc/CRequestHeaderDoc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/CafCoreTypesDoc/CRequestHeaderDoc.h @@ -1,106 +0,0 @@ -/* - * Author: bwilliams - * Created: April 6, 2012 - * - * 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. - * - */ - -#ifndef CRequestHeaderDoc_h_ -#define CRequestHeaderDoc_h_ - -namespace Caf { - -/// A simple container for objects of type RequestHeader -class CRequestHeaderDoc { -public: - CRequestHeaderDoc() : - _isInitialized(false), - _sessionId(CAFCOMMON_GUID_NULL) {} - virtual ~CRequestHeaderDoc() {} - -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 SmartPtrCRequestConfigDoc requestConfig, - const SmartPtrCAuthnAuthzCollectionDoc authnAuthzCollection = SmartPtrCAuthnAuthzCollectionDoc(), - const SmartPtrCProtocolCollectionDoc protocolCollection = SmartPtrCProtocolCollectionDoc(), - 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; - } - } - -public: - /// Accessor for the RequestConfig - SmartPtrCRequestConfigDoc getRequestConfig() const { - return _requestConfig; - } - - /// Accessor for the Authentication / Authorization Collection - SmartPtrCAuthnAuthzCollectionDoc getAuthnAuthzCollection() const { - return _authnAuthzCollection; - } - - /// Accessor for the Protocol Collection - SmartPtrCProtocolCollectionDoc getProtocolCollection() const { - return _protocolCollection; - } - - /// Accessor for the EchoPropertyBag - SmartPtrCPropertyCollectionDoc getEchoPropertyBag() const { - return _echoPropertyBag; - } - - /// Accessor for the version - std::string getVersion() const { - return _version; - } - - /// Accessor for the date/time when the request was created - std::string getCreatedDateTime() const { - return _createdDateTime; - } - - /// Accessor for the session ID - UUID getSessionId() const { - return _sessionId; - } - -private: - bool _isInitialized; - - SmartPtrCRequestConfigDoc _requestConfig; - SmartPtrCAuthnAuthzCollectionDoc _authnAuthzCollection; - SmartPtrCProtocolCollectionDoc _protocolCollection; - SmartPtrCPropertyCollectionDoc _echoPropertyBag; - std::string _version; - std::string _createdDateTime; - UUID _sessionId; - -private: - CAF_CM_DECLARE_NOCOPY(CRequestHeaderDoc); -}; - -CAF_DECLARE_SMART_POINTER(CRequestHeaderDoc); - -} - -#endif diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/CafCoreTypesDoc/CRequestInstanceParameterDoc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/CafCoreTypesDoc/CRequestInstanceParameterDoc.h index 7e555c29c..e69de29bb 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/CafCoreTypesDoc/CRequestInstanceParameterDoc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/CafCoreTypesDoc/CRequestInstanceParameterDoc.h @@ -1,89 +0,0 @@ -/* - * Author: bwilliams - * Created: April 6, 2012 - * - * 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. - * - */ - -#ifndef CRequestInstanceParameterDoc_h_ -#define CRequestInstanceParameterDoc_h_ - -namespace Caf { - -/// A simple container for objects of type RequestInstanceParameter -class CRequestInstanceParameterDoc { -public: - CRequestInstanceParameterDoc() : - _isInitialized(false) {} - virtual ~CRequestInstanceParameterDoc() {} - -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::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; - } - } - -public: - /// Accessor for the Name - std::string getName() const { - return _name; - } - - /// Accessor for the ClassNamespace - std::string getClassNamespace() const { - return _classNamespace; - } - - /// Accessor for the ClassName - std::string getClassName() const { - return _className; - } - - /// Accessor for the ClassVersion - std::string getClassVersion() const { - return _classVersion; - } - - /// Accessor for the Value - std::deque getValue() const { - return _value; - } - -private: - bool _isInitialized; - - std::string _name; - std::string _classNamespace; - std::string _className; - std::string _classVersion; - std::deque _value; - -private: - CAF_CM_DECLARE_NOCOPY(CRequestInstanceParameterDoc); -}; - -CAF_DECLARE_SMART_POINTER(CRequestInstanceParameterDoc); - -} - -#endif diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/CafCoreTypesDoc/CRequestParameterDoc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/CafCoreTypesDoc/CRequestParameterDoc.h index 5513c170b..e69de29bb 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/CafCoreTypesDoc/CRequestParameterDoc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/CafCoreTypesDoc/CRequestParameterDoc.h @@ -1,74 +0,0 @@ -/* - * Author: bwilliams - * Created: April 6, 2012 - * - * 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. - * - */ - -#ifndef CRequestParameterDoc_h_ -#define CRequestParameterDoc_h_ - -namespace Caf { - -/// A simple container for objects of type RequestParameter -class CRequestParameterDoc { -public: - CRequestParameterDoc() : - _type(PARAMETER_NONE), - _isInitialized(false) {} - virtual ~CRequestParameterDoc() {} - -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::string name, - const PARAMETER_TYPE type, - const std::deque value) { - if (! _isInitialized) { - _name = name; - _type = type; - _value = value; - - _isInitialized = true; - } - } - -public: - /// Accessor for the Name - std::string getName() const { - return _name; - } - - /// Accessor for the Type - PARAMETER_TYPE getType() const { - return _type; - } - - /// Accessor for the Value - std::deque getValue() const { - return _value; - } - -private: - PARAMETER_TYPE _type; - - bool _isInitialized; - std::string _name; - std::deque _value; - -private: - CAF_CM_DECLARE_NOCOPY(CRequestParameterDoc); -}; - -CAF_DECLARE_SMART_POINTER(CRequestParameterDoc); - -} - -#endif diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/CafCoreTypesDoc/CStatisticsDoc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/CafCoreTypesDoc/CStatisticsDoc.h index 3a3175c84..e69de29bb 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/CafCoreTypesDoc/CStatisticsDoc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/CafCoreTypesDoc/CStatisticsDoc.h @@ -1,110 +0,0 @@ -/* - * Author: bwilliams - * Created: April 6, 2012 - * - * 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. - * - */ - -#ifndef CStatisticsDoc_h_ -#define CStatisticsDoc_h_ - -namespace Caf { - -/// A simple container for objects of type Statistics -class CStatisticsDoc { -public: - CStatisticsDoc() : - _providerJobNum(0), - _providerJobTotal(0), - _providerJobDurationSecs(0), - _pmeNum(0), - _pmeTotal(0), - _pmeDurationSecs(0), - _isInitialized(false) {} - virtual ~CStatisticsDoc() {} - -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 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; - } - } - -public: - /// Accessor for the PropertyCollection - SmartPtrCPropertyCollectionDoc getPropertyCollection() const { - return _propertyCollection; - } - - /// Accessor for the ProviderJobNum - int32 getProviderJobNum() const { - return _providerJobNum; - } - - /// Accessor for the ProviderJobTotal - int32 getProviderJobTotal() const { - return _providerJobTotal; - } - - /// Accessor for the ProviderJobDurationSecs - int32 getProviderJobDurationSecs() const { - return _providerJobDurationSecs; - } - - /// Accessor for the PmeNum - int32 getPmeNum() const { - return _pmeNum; - } - - /// Accessor for the PmeTotal - int32 getPmeTotal() const { - return _pmeTotal; - } - - /// Accessor for the PmeDurationSecs - int32 getPmeDurationSecs() const { - return _pmeDurationSecs; - } - -private: - SmartPtrCPropertyCollectionDoc _propertyCollection; - int32 _providerJobNum; - int32 _providerJobTotal; - int32 _providerJobDurationSecs; - int32 _pmeNum; - int32 _pmeTotal; - int32 _pmeDurationSecs; - bool _isInitialized; - -private: - CAF_CM_DECLARE_NOCOPY(CStatisticsDoc); -}; - -CAF_DECLARE_SMART_POINTER(CStatisticsDoc); - -} - -#endif diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/CafCoreTypesDoc/CafCoreTypesDocInc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/CafCoreTypesDoc/CafCoreTypesDocInc.h index 809e9bb7f..e69de29bb 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/CafCoreTypesDoc/CafCoreTypesDocInc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/CafCoreTypesDoc/CafCoreTypesDocInc.h @@ -1,105 +0,0 @@ -/* - * Author: bwilliams - * Created: April 6, 2012 - * - * Copyright (c) 2012 Vmware, Inc. All rights reserved. - * -- VMware Confidential - */ - -#ifndef CAFCORETYPESDOCINC_H_ -#define CAFCORETYPESDOCINC_H_ - -namespace Caf { - typedef enum { - PROPERTY_NONE, - PROPERTY_STRING, - PROPERTY_SINT32, - PROPERTY_UINT32, - PROPERTY_SINT64, - PROPERTY_UINT64, - PROPERTY_DECIMAL, - PROPERTY_DOUBLE, - PROPERTY_BOOLEAN, - PROPERTY_DATETIME - } PROPERTY_TYPE; - - typedef enum { - PARAMETER_NONE, - PARAMETER_STRING, - PARAMETER_SINT32, - PARAMETER_UINT32, - PARAMETER_SINT64, - PARAMETER_UINT64, - PARAMETER_DECIMAL, - PARAMETER_DOUBLE, - PARAMETER_BOOLEAN, - PARAMETER_DATETIME - } PARAMETER_TYPE; - - typedef enum { - LOGGINGLEVEL_NONE, - LOGGINGLEVEL_DEBUG, - LOGGINGLEVEL_INFO, - LOGGINGLEVEL_WARN, - LOGGINGLEVEL_ERROR, - LOGGINGLEVEL_CRITICAL - } LOGGINGLEVEL_TYPE; - - typedef enum { - LOGGINGCOMPONENT_NONE, - LOGGINGCOMPONENT_COMMUNICATIONS, - LOGGINGCOMPONENT_MANAGEMENTAGENT, - LOGGINGCOMPONENT_UINT32, - LOGGINGCOMPONENT_PROVIDERFRAMEWORK, - LOGGINGCOMPONENT_PROVIDER - } LOGGINGCOMPONENT_TYPE; - - typedef enum { - CMS_POLICY_NONE, - CMS_POLICY_CAF_ENCRYPTED, - CMS_POLICY_CAF_SIGNED, - CMS_POLICY_CAF_ENCRYPTED_AND_SIGNED, - CMS_POLICY_APP_SIGNED, - CMS_POLICY_APP_ENCRYPTED, - CMS_POLICY_APP_ENCRYPTED_AND_SIGNED - } CMS_POLICY; -} - -#include "CFullyQualifiedClassGroupDoc.h" -#include "CAttachmentNameCollectionDoc.h" - -#include "CLoggingLevelElemDoc.h" -#include "CLoggingLevelCollectionDoc.h" - -#include "CRequestInstanceParameterDoc.h" -#include "CRequestParameterDoc.h" - -#include "CInlineAttachmentDoc.h" -#include "CInlineAttachmentCollectionDoc.h" - -#include "CAttachmentDoc.h" -#include "CAttachmentCollectionDoc.h" - -#include "CParameterCollectionDoc.h" -#include "COperationDoc.h" - -#include "CPropertyDoc.h" -#include "CPropertyCollectionDoc.h" - -#include "CAddInCollectionDoc.h" -#include "CAddInsDoc.h" - -#include "CAuthnAuthzDoc.h" -#include "CAuthnAuthzCollectionDoc.h" - -#include "CProtocolDoc.h" -#include "CProtocolCollectionDoc.h" - -#include "CRequestConfigDoc.h" -#include "CRequestHeaderDoc.h" - -#include "CClassFiltersDoc.h" -#include "CClassSpecifierDoc.h" -#include "CStatisticsDoc.h" - -#endif /* CAFCORETYPESDOCINC_H_ */ diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/CafInstallRequestDoc/CFullPackageElemDoc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/CafInstallRequestDoc/CFullPackageElemDoc.h index 5b00823d1..e69de29bb 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/CafInstallRequestDoc/CFullPackageElemDoc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/CafInstallRequestDoc/CFullPackageElemDoc.h @@ -1,97 +0,0 @@ -/* - * Author: bwilliams - * Created: April 6, 2012 - * - * 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. - * - */ - -#ifndef CFullPackageElemDoc_h_ -#define CFullPackageElemDoc_h_ - -namespace Caf { - -/// A simple container for objects of type FullPackageElem -class CFullPackageElemDoc { -public: - CFullPackageElemDoc() : - _index(0), - _isInitialized(false) {} - virtual ~CFullPackageElemDoc() {} - -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 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; - } - } - -public: - /// Accessor for the Index - int32 getIndex() const { - return _index; - } - - /// Accessor for the PackageNamespace - std::string getPackageNamespace() const { - return _packageNamespace; - } - - /// Accessor for the PackageName - std::string getPackageName() const { - return _packageName; - } - - /// Accessor for the PackageVersion - std::string getPackageVersion() const { - return _packageVersion; - } - - /// Accessor for the InstallPackage - SmartPtrCPackageDefnDoc getInstallPackage() const { - return _installPackage; - } - - /// Accessor for the UninstallPackage - SmartPtrCPackageDefnDoc getUninstallPackage() const { - return _uninstallPackage; - } - -private: - int32 _index; - std::string _packageNamespace; - std::string _packageName; - std::string _packageVersion; - SmartPtrCPackageDefnDoc _installPackage; - SmartPtrCPackageDefnDoc _uninstallPackage; - bool _isInitialized; - -private: - CAF_CM_DECLARE_NOCOPY(CFullPackageElemDoc); -}; - -CAF_DECLARE_SMART_POINTER(CFullPackageElemDoc); - -} - -#endif diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/CafInstallRequestDoc/CGetInventoryJobDoc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/CafInstallRequestDoc/CGetInventoryJobDoc.h index a6df7a782..e69de29bb 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/CafInstallRequestDoc/CGetInventoryJobDoc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/CafInstallRequestDoc/CGetInventoryJobDoc.h @@ -1,57 +0,0 @@ -/* - * Author: bwilliams - * Created: April 6, 2012 - * - * 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. - * - */ - -#ifndef CGetInventoryJobDoc_h_ -#define CGetInventoryJobDoc_h_ - -namespace Caf { - -/// A simple container for objects of type GetInventoryJob -class CGetInventoryJobDoc { -public: - CGetInventoryJobDoc() : - _jobId(CAFCOMMON_GUID_NULL), - _isInitialized(false) {} - 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; - } - } - -public: - /// Accessor for the JobId - UUID getJobId() const { - return _jobId; - } - -private: - UUID _jobId; - bool _isInitialized; - -private: - CAF_CM_DECLARE_NOCOPY(CGetInventoryJobDoc); -}; - -CAF_DECLARE_SMART_POINTER(CGetInventoryJobDoc); - -} - -#endif diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/CafInstallRequestDoc/CInstallBatchDoc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/CafInstallRequestDoc/CInstallBatchDoc.h index 4abfae57e..e69de29bb 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/CafInstallRequestDoc/CInstallBatchDoc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/CafInstallRequestDoc/CInstallBatchDoc.h @@ -1,73 +0,0 @@ -/* - * Author: bwilliams - * Created: April 6, 2012 - * - * 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. - * - */ - -#ifndef CInstallBatchDoc_h_ -#define CInstallBatchDoc_h_ - -namespace Caf { - -/// A simple container for objects of type InstallBatch -class CInstallBatchDoc { -public: - CInstallBatchDoc() : - _isInitialized(false) {} - virtual ~CInstallBatchDoc() {} - -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 SmartPtrCGetInventoryJobDoc getInventory, - const SmartPtrCInstallProviderJobDoc installProvider, - const SmartPtrCUninstallProviderJobDoc uninstallProvider) { - if (! _isInitialized) { - _getInventory = getInventory; - _installProvider = installProvider; - _uninstallProvider = uninstallProvider; - - _isInitialized = true; - } - } - -public: - /// Accessor for the GetInventory - SmartPtrCGetInventoryJobDoc getGetInventory() const { - return _getInventory; - } - - /// Accessor for the InstallProvider - SmartPtrCInstallProviderJobDoc getInstallProvider() const { - return _installProvider; - } - - /// Accessor for the UninstallProvider - SmartPtrCUninstallProviderJobDoc getUninstallProvider() const { - return _uninstallProvider; - } - -private: - bool _isInitialized; - - SmartPtrCGetInventoryJobDoc _getInventory; - SmartPtrCInstallProviderJobDoc _installProvider; - SmartPtrCUninstallProviderJobDoc _uninstallProvider; - -private: - CAF_CM_DECLARE_NOCOPY(CInstallBatchDoc); -}; - -CAF_DECLARE_SMART_POINTER(CInstallBatchDoc); - -} - -#endif diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/CafInstallRequestDoc/CInstallPackageSpecDoc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/CafInstallRequestDoc/CInstallPackageSpecDoc.h index 005b03b2f..e69de29bb 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/CafInstallRequestDoc/CInstallPackageSpecDoc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/CafInstallRequestDoc/CInstallPackageSpecDoc.h @@ -1,113 +0,0 @@ -/* - * Author: bwilliams - * Created: April 6, 2012 - * - * 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. - * - */ - -#ifndef CInstallPackageSpecDoc_h_ -#define CInstallPackageSpecDoc_h_ - -namespace Caf { - -/// A simple container for objects of type InstallPackageSpec -class CInstallPackageSpecDoc { -public: - CInstallPackageSpecDoc() : - _isInitialized(false) {} - virtual ~CInstallPackageSpecDoc() {} - -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::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; - } - } - -public: - /// Accessor for the PackageNamespace - std::string getPackageNamespace() const { - return _packageNamespace; - } - - /// Accessor for the PackageName - std::string getPackageName() const { - return _packageName; - } - - /// Accessor for the PackageVersion - std::string getPackageVersion() const { - return _packageVersion; - } - - /// Accessor for the StartupAttachmentName - std::string getStartupAttachmentName() const { - return _startupAttachmentName; - } - - /// Accessor for the PackageAttachmentName - std::string getPackageAttachmentName() const { - return _packageAttachmentName; - } - - /// Accessor for the AttachmentNameCollection - SmartPtrCAttachmentNameCollectionDoc getSupportingAttachmentNameCollection() const { - return _attachmentNameCollection; - } - - /// Accessor for the AttachmentCollection - SmartPtrCAttachmentCollectionDoc getAttachmentCollection() const { - return _attachmentCollection; - } - - /// Accessor for the Arguments - std::string getArguments() const { - return _arguments; - } - -private: - bool _isInitialized; - - std::string _packageNamespace; - std::string _packageName; - std::string _packageVersion; - std::string _startupAttachmentName; - std::string _packageAttachmentName; - SmartPtrCAttachmentNameCollectionDoc _attachmentNameCollection; - SmartPtrCAttachmentCollectionDoc _attachmentCollection; - std::string _arguments; - -private: - CAF_CM_DECLARE_NOCOPY(CInstallPackageSpecDoc); -}; - -CAF_DECLARE_SMART_POINTER(CInstallPackageSpecDoc); - -} - -#endif diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/CafInstallRequestDoc/CInstallProviderJobDoc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/CafInstallRequestDoc/CInstallProviderJobDoc.h index 93e988e12..e69de29bb 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/CafInstallRequestDoc/CInstallProviderJobDoc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/CafInstallRequestDoc/CInstallProviderJobDoc.h @@ -1,107 +0,0 @@ -/* - * Author: bwilliams - * Created: April 6, 2012 - * - * 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. - * - */ - -#ifndef CInstallProviderJobDoc_h_ -#define CInstallProviderJobDoc_h_ - -namespace Caf { - -/// A simple container for objects of type InstallProviderJob -class CInstallProviderJobDoc { -public: - CInstallProviderJobDoc() : - _clientId(CAFCOMMON_GUID_NULL), - _jobId(CAFCOMMON_GUID_NULL), - _packageOSType(PACKAGE_OS_NONE), - _isInitialized(false) {} - virtual ~CInstallProviderJobDoc() {} - -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 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; - } - } - -public: - /// Accessor for the ClientId - UUID getClientId() const { - return _clientId; - } - - /// Accessor for the JobId - UUID getJobId() const { - return _jobId; - } - - /// Accessor for the ProviderNamespace - std::string getProviderNamespace() const { - return _providerNamespace; - } - - /// Accessor for the ProviderName - std::string getProviderName() const { - return _providerName; - } - - /// Accessor for the ProviderVersion - std::string getProviderVersion() const { - return _providerVersion; - } - - /// Accessor for the PackageOSType - PACKAGE_OS_TYPE getPackageOSType() const { - return _packageOSType; - } - - /// Accessor for the PackageVal - std::deque getPackageCollection() const { - return _packageCollection; - } - -private: - UUID _clientId; - UUID _jobId; - std::string _providerNamespace; - std::string _providerName; - std::string _providerVersion; - PACKAGE_OS_TYPE _packageOSType; - std::deque _packageCollection; - bool _isInitialized; - -private: - CAF_CM_DECLARE_NOCOPY(CInstallProviderJobDoc); -}; - -CAF_DECLARE_SMART_POINTER(CInstallProviderJobDoc); - -} - -#endif diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/CafInstallRequestDoc/CInstallProviderSpecDoc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/CafInstallRequestDoc/CInstallProviderSpecDoc.h index ee8846bbe..e69de29bb 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/CafInstallRequestDoc/CInstallProviderSpecDoc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/CafInstallRequestDoc/CInstallProviderSpecDoc.h @@ -1,89 +0,0 @@ -/* - * Author: bwilliams - * Created: April 6, 2012 - * - * 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. - * - */ - -#ifndef CInstallProviderSpecDoc_h_ -#define CInstallProviderSpecDoc_h_ - -namespace Caf { - -/// A simple container for objects of type InstallProviderSpec -class CInstallProviderSpecDoc { -public: - CInstallProviderSpecDoc() : - _clientId(CAFCOMMON_GUID_NULL), - _isInitialized(false) {} - virtual ~CInstallProviderSpecDoc() {} - -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 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; - } - } - -public: - /// Accessor for the ClientId - UUID getClientId() const { - return _clientId; - } - - /// Accessor for the ProviderNamespace - std::string getProviderNamespace() const { - return _providerNamespace; - } - - /// Accessor for the ProviderName - std::string getProviderName() const { - return _providerName; - } - - /// Accessor for the ProviderVersion - std::string getProviderVersion() const { - return _providerVersion; - } - - /// Accessor for the PackageVal - std::deque getPackageCollection() const { - return _packageCollection; - } - -private: - UUID _clientId; - std::string _providerNamespace; - std::string _providerName; - std::string _providerVersion; - std::deque _packageCollection; - bool _isInitialized; - -private: - CAF_CM_DECLARE_NOCOPY(CInstallProviderSpecDoc); -}; - -CAF_DECLARE_SMART_POINTER(CInstallProviderSpecDoc); - -} - -#endif diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/CafInstallRequestDoc/CInstallRequestDoc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/CafInstallRequestDoc/CInstallRequestDoc.h index 44d9f7470..e69de29bb 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/CafInstallRequestDoc/CInstallRequestDoc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/CafInstallRequestDoc/CInstallRequestDoc.h @@ -1,98 +0,0 @@ -/* - * Author: bwilliams - * Created: April 6, 2012 - * - * 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. - * - */ - -#ifndef CInstallRequestDoc_h_ -#define CInstallRequestDoc_h_ - -namespace Caf { - -/// A simple container for objects of type InstallRequest -class CInstallRequestDoc { -public: - CInstallRequestDoc() : - _clientId(CAFCOMMON_GUID_NULL), - _requestId(CAFCOMMON_GUID_NULL), - _isInitialized(false) {} - virtual ~CInstallRequestDoc() {} - -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 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; - } - } - -public: - /// Accessor for the ClientId - UUID getClientId() const { - return _clientId; - } - - /// Accessor for the RequestId - UUID getRequestId() const { - return _requestId; - } - - /// Accessor for the PmeId - std::string getPmeId() const { - return _pmeId; - } - - /// Accessor for the RequestHeader - SmartPtrCRequestHeaderDoc getRequestHeader() const { - return _requestHeader; - } - - /// Accessor for the Batch - SmartPtrCInstallBatchDoc getBatch() const { - return _batch; - } - - /// Accessor for the AttachmentCollection - SmartPtrCAttachmentCollectionDoc getAttachmentCollection() const { - return _attachmentCollection; - } - -private: - UUID _clientId; - UUID _requestId; - std::string _pmeId; - SmartPtrCRequestHeaderDoc _requestHeader; - SmartPtrCInstallBatchDoc _batch; - SmartPtrCAttachmentCollectionDoc _attachmentCollection; - bool _isInitialized; - -private: - CAF_CM_DECLARE_NOCOPY(CInstallRequestDoc); -}; - -CAF_DECLARE_SMART_POINTER(CInstallRequestDoc); - -} - -#endif diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/CafInstallRequestDoc/CMinPackageElemDoc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/CafInstallRequestDoc/CMinPackageElemDoc.h index d9505ca79..e69de29bb 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/CafInstallRequestDoc/CMinPackageElemDoc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/CafInstallRequestDoc/CMinPackageElemDoc.h @@ -1,81 +0,0 @@ -/* - * Author: bwilliams - * Created: April 6, 2012 - * - * 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. - * - */ - -#ifndef CMinPackageElemDoc_h_ -#define CMinPackageElemDoc_h_ - -namespace Caf { - -/// A simple container for objects of type MinPackageElem -class CMinPackageElemDoc { -public: - CMinPackageElemDoc() : - _index(0), - _isInitialized(false) {} - virtual ~CMinPackageElemDoc() {} - -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 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; - } - } - -public: - /// Accessor for the Index - int32 getIndex() const { - return _index; - } - - /// Accessor for the PackageNamespace - std::string getPackageNamespace() const { - return _packageNamespace; - } - - /// Accessor for the PackageName - std::string getPackageName() const { - return _packageName; - } - - /// Accessor for the PackageVersion - std::string getPackageVersion() const { - return _packageVersion; - } - -private: - int32 _index; - std::string _packageNamespace; - std::string _packageName; - std::string _packageVersion; - bool _isInitialized; - -private: - CAF_CM_DECLARE_NOCOPY(CMinPackageElemDoc); -}; - -CAF_DECLARE_SMART_POINTER(CMinPackageElemDoc); - -} - -#endif diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/CafInstallRequestDoc/CPackageDefnDoc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/CafInstallRequestDoc/CPackageDefnDoc.h index 60bdd2b19..e69de29bb 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/CafInstallRequestDoc/CPackageDefnDoc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/CafInstallRequestDoc/CPackageDefnDoc.h @@ -1,81 +0,0 @@ -/* - * Author: bwilliams - * Created: April 6, 2012 - * - * 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. - * - */ - -#ifndef CPackageDefnDoc_h_ -#define CPackageDefnDoc_h_ - -namespace Caf { - -/// A simple container for objects of type PackageDefn -class CPackageDefnDoc { -public: - CPackageDefnDoc() : - _isInitialized(false) {} - virtual ~CPackageDefnDoc() {} - -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::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; - } - } - -public: - /// Accessor for the StartupAttachmentName - std::string getStartupAttachmentName() const { - return _startupAttachmentName; - } - - /// Accessor for the PackageAttachmentName - std::string getPackageAttachmentName() const { - return _packageAttachmentName; - } - - /// Accessor for the AttachmentNameCollection - SmartPtrCAttachmentNameCollectionDoc getSupportingAttachmentNameCollection() const { - return _attachmentNameCollection; - } - - /// Accessor for the Arguments - std::string getArguments() const { - return _arguments; - } - -private: - bool _isInitialized; - - std::string _startupAttachmentName; - std::string _packageAttachmentName; - SmartPtrCAttachmentNameCollectionDoc _attachmentNameCollection; - std::string _arguments; - -private: - CAF_CM_DECLARE_NOCOPY(CPackageDefnDoc); -}; - -CAF_DECLARE_SMART_POINTER(CPackageDefnDoc); - -} - -#endif diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/CafInstallRequestDoc/CUninstallProviderJobDoc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/CafInstallRequestDoc/CUninstallProviderJobDoc.h index 5a60daee4..e69de29bb 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/CafInstallRequestDoc/CUninstallProviderJobDoc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/CafInstallRequestDoc/CUninstallProviderJobDoc.h @@ -1,99 +0,0 @@ -/* - * Author: bwilliams - * Created: April 6, 2012 - * - * 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. - * - */ - -#ifndef CUninstallProviderJobDoc_h_ -#define CUninstallProviderJobDoc_h_ - -namespace Caf { - -/// A simple container for objects of type UninstallProviderJob -class CUninstallProviderJobDoc { -public: - CUninstallProviderJobDoc() : - _clientId(CAFCOMMON_GUID_NULL), - _jobId(CAFCOMMON_GUID_NULL), - _packageOSType(PACKAGE_OS_NONE), - _isInitialized(false) {} - virtual ~CUninstallProviderJobDoc() {} - -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 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; - } - } - -public: - /// Accessor for the ClientId - UUID getClientId() const { - return _clientId; - } - - /// Accessor for the JobId - UUID getJobId() const { - return _jobId; - } - - /// Accessor for the ProviderNamespace - std::string getProviderNamespace() const { - return _providerNamespace; - } - - /// Accessor for the ProviderName - std::string getProviderName() const { - return _providerName; - } - - /// Accessor for the ProviderVersion - std::string getProviderVersion() const { - return _providerVersion; - } - - /// Accessor for the PackageOSType - PACKAGE_OS_TYPE getPackageOSType() const { - return _packageOSType; - } - -private: - UUID _clientId; - UUID _jobId; - std::string _providerNamespace; - std::string _providerName; - std::string _providerVersion; - PACKAGE_OS_TYPE _packageOSType; - bool _isInitialized; - -private: - CAF_CM_DECLARE_NOCOPY(CUninstallProviderJobDoc); -}; - -CAF_DECLARE_SMART_POINTER(CUninstallProviderJobDoc); - -} - -#endif diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/CafInstallRequestDoc/CafInstallRequestDocInc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/CafInstallRequestDoc/CafInstallRequestDocInc.h index b6a91c5bd..e69de29bb 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/CafInstallRequestDoc/CafInstallRequestDocInc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/CafInstallRequestDoc/CafInstallRequestDocInc.h @@ -1,35 +0,0 @@ -/* - * Author: bwilliams - * Created: April 6, 2012 - * - * Copyright (c) 2012 Vmware, Inc. All rights reserved. - * -- VMware Confidential - */ - -#ifndef CAFINSTALLREQUESTDOCINC_H_ -#define CAFINSTALLREQUESTDOCINC_H_ - -namespace Caf { - typedef enum { - PACKAGE_OS_NONE, - PACKAGE_OS_ALL, - PACKAGE_OS_NIX, - PACKAGE_OS_WIN - } PACKAGE_OS_TYPE; -} - -#include "CPackageDefnDoc.h" -#include "CMinPackageElemDoc.h" -#include "CFullPackageElemDoc.h" - -#include "CInstallPackageSpecDoc.h" -#include "CInstallProviderSpecDoc.h" - -#include "CGetInventoryJobDoc.h" -#include "CUninstallProviderJobDoc.h" -#include "CInstallProviderJobDoc.h" - -#include "CInstallBatchDoc.h" -#include "CInstallRequestDoc.h" - -#endif /* CAFINSTALLREQUESTINC_H_ */ diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/DiagRequestDoc/CDiagRequestDoc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/DiagRequestDoc/CDiagRequestDoc.h index 5ba7a422d..e69de29bb 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/DiagRequestDoc/CDiagRequestDoc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/DiagRequestDoc/CDiagRequestDoc.h @@ -1,90 +0,0 @@ -/* - * Author: bwilliams - * Created: April 6, 2012 - * - * 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. - * - */ - -#ifndef CDiagRequestDoc_h_ -#define CDiagRequestDoc_h_ - -namespace Caf { - -/// A simple container for objects of type DiagRequest -class CDiagRequestDoc { -public: - CDiagRequestDoc() : - _clientId(CAFCOMMON_GUID_NULL), - _requestId(CAFCOMMON_GUID_NULL), - _isInitialized(false) {} - virtual ~CDiagRequestDoc() {} - -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 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; - } - } - -public: - /// Accessor for the ClientId - UUID getClientId() const { - return _clientId; - } - - /// Accessor for the RequestId - UUID getRequestId() const { - return _requestId; - } - - /// Accessor for the PmeId - std::string getPmeId() const { - return _pmeId; - } - - /// Accessor for the RequestHeader - SmartPtrCRequestHeaderDoc getRequestHeader() const { - return _requestHeader; - } - - /// Accessor for the Batch - SmartPtrCDiagBatchDoc getBatch() const { - return _batch; - } - -private: - UUID _clientId; - UUID _requestId; - std::string _pmeId; - SmartPtrCRequestHeaderDoc _requestHeader; - SmartPtrCDiagBatchDoc _batch; - bool _isInitialized; - -private: - CAF_CM_DECLARE_NOCOPY(CDiagRequestDoc); -}; - -CAF_DECLARE_SMART_POINTER(CDiagRequestDoc); - -} - -#endif diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/DiagRequestDoc/DiagRequestDocInc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/DiagRequestDoc/DiagRequestDocInc.h index a4cd9fa13..e69de29bb 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/DiagRequestDoc/DiagRequestDocInc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/DiagRequestDoc/DiagRequestDocInc.h @@ -1,14 +0,0 @@ -/* - * Author: bwilliams - * Created: April 6, 2012 - * - * Copyright (c) 2012 Vmware, Inc. All rights reserved. - * -- VMware Confidential - */ - -#ifndef DIAGREQUESTDOCINC_H_ -#define DIAGREQUESTDOCINC_H_ - -#include "CDiagRequestDoc.h" - -#endif /* DIAGREQUESTDOCINC_H_ */ diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/DiagTypesDoc/CDiagBatchDoc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/DiagTypesDoc/CDiagBatchDoc.h index af42ced5f..e69de29bb 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/DiagTypesDoc/CDiagBatchDoc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/DiagTypesDoc/CDiagBatchDoc.h @@ -1,73 +0,0 @@ -/* - * Author: bwilliams - * Created: April 6, 2012 - * - * 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. - * - */ - -#ifndef CDiagBatchDoc_h_ -#define CDiagBatchDoc_h_ - -namespace Caf { - -/// A simple container for objects of type DiagBatch -class CDiagBatchDoc { -public: - CDiagBatchDoc() : - _isInitialized(false) {} - virtual ~CDiagBatchDoc() {} - -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 SmartPtrCDiagCollectInstancesDoc collectInstances, - const SmartPtrCDiagSetValueCollectionDoc setValueCollection, - const SmartPtrCDiagDeleteValueCollectionDoc deleteValueCollection) { - if (! _isInitialized) { - _collectInstances = collectInstances; - _setValueCollection = setValueCollection; - _deleteValueCollection = deleteValueCollection; - - _isInitialized = true; - } - } - -public: - /// Accessor for the CollectInstances - SmartPtrCDiagCollectInstancesDoc getCollectInstances() const { - return _collectInstances; - } - - /// Accessor for the SetValueCollection - SmartPtrCDiagSetValueCollectionDoc getSetValueCollection() const { - return _setValueCollection; - } - - /// Accessor for the DeleteValueCollection - SmartPtrCDiagDeleteValueCollectionDoc getDeleteValueCollection() const { - return _deleteValueCollection; - } - -private: - bool _isInitialized; - - SmartPtrCDiagCollectInstancesDoc _collectInstances; - SmartPtrCDiagSetValueCollectionDoc _setValueCollection; - SmartPtrCDiagDeleteValueCollectionDoc _deleteValueCollection; - -private: - CAF_CM_DECLARE_NOCOPY(CDiagBatchDoc); -}; - -CAF_DECLARE_SMART_POINTER(CDiagBatchDoc); - -} - -#endif diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/DiagTypesDoc/CDiagCollectInstancesDoc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/DiagTypesDoc/CDiagCollectInstancesDoc.h index f41e858c3..e69de29bb 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/DiagTypesDoc/CDiagCollectInstancesDoc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/DiagTypesDoc/CDiagCollectInstancesDoc.h @@ -1,57 +0,0 @@ -/* - * Author: bwilliams - * Created: April 6, 2012 - * - * 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. - * - */ - -#ifndef CDiagCollectInstancesDoc_h_ -#define CDiagCollectInstancesDoc_h_ - -namespace Caf { - -/// A simple container for objects of type DiagCollectInstances -class CDiagCollectInstancesDoc { -public: - CDiagCollectInstancesDoc() : - _jobId(CAFCOMMON_GUID_NULL), - _isInitialized(false) {} - 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; - } - } - -public: - /// Accessor for the JobId - UUID getJobId() const { - return _jobId; - } - -private: - UUID _jobId; - bool _isInitialized; - -private: - CAF_CM_DECLARE_NOCOPY(CDiagCollectInstancesDoc); -}; - -CAF_DECLARE_SMART_POINTER(CDiagCollectInstancesDoc); - -} - -#endif diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/DiagTypesDoc/CDiagDeleteValueCollectionDoc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/DiagTypesDoc/CDiagDeleteValueCollectionDoc.h index c634e5760..e69de29bb 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/DiagTypesDoc/CDiagDeleteValueCollectionDoc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/DiagTypesDoc/CDiagDeleteValueCollectionDoc.h @@ -1,57 +0,0 @@ -/* - * Author: bwilliams - * Created: April 6, 2012 - * - * 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. - * - */ - -#ifndef CDiagDeleteValueCollectionDoc_h_ -#define CDiagDeleteValueCollectionDoc_h_ - -namespace Caf { - -/// A simple container for objects of type DiagDeleteValueCollection -class CDiagDeleteValueCollectionDoc { -public: - CDiagDeleteValueCollectionDoc() : - _isInitialized(false) {} - 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; - } - } - -public: - /// Accessor for the DeleteValue - std::deque getDeleteValueCollection() const { - return _deleteValueCollection; - } - -private: - bool _isInitialized; - - std::deque _deleteValueCollection; - -private: - CAF_CM_DECLARE_NOCOPY(CDiagDeleteValueCollectionDoc); -}; - -CAF_DECLARE_SMART_POINTER(CDiagDeleteValueCollectionDoc); - -} - -#endif diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/DiagTypesDoc/CDiagDeleteValueDoc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/DiagTypesDoc/CDiagDeleteValueDoc.h index b4808f7e5..e69de29bb 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/DiagTypesDoc/CDiagDeleteValueDoc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/DiagTypesDoc/CDiagDeleteValueDoc.h @@ -1,73 +0,0 @@ -/* - * Author: bwilliams - * Created: April 6, 2012 - * - * 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. - * - */ - -#ifndef CDiagDeleteValueDoc_h_ -#define CDiagDeleteValueDoc_h_ - -namespace Caf { - -/// A simple container for objects of type DiagDeleteValue -class CDiagDeleteValueDoc { -public: - CDiagDeleteValueDoc() : - _jobId(CAFCOMMON_GUID_NULL), - _isInitialized(false) {} - virtual ~CDiagDeleteValueDoc() {} - -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, - const std::string fileAlias, - const std::string valueName) { - if (! _isInitialized) { - _jobId = jobId; - _fileAlias = fileAlias; - _valueName = valueName; - - _isInitialized = true; - } - } - -public: - /// Accessor for the JobId - UUID getJobId() const { - return _jobId; - } - - /// Accessor for the FileAlias - std::string getFileAlias() const { - return _fileAlias; - } - - /// Accessor for the ValueName - std::string getValueName() const { - return _valueName; - } - -private: - UUID _jobId; - std::string _fileAlias; - std::string _valueName; - bool _isInitialized; - -private: - CAF_CM_DECLARE_NOCOPY(CDiagDeleteValueDoc); -}; - -CAF_DECLARE_SMART_POINTER(CDiagDeleteValueDoc); - -} - -#endif diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/DiagTypesDoc/CDiagSetValueCollectionDoc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/DiagTypesDoc/CDiagSetValueCollectionDoc.h index 5b75cf5e8..e69de29bb 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/DiagTypesDoc/CDiagSetValueCollectionDoc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/DiagTypesDoc/CDiagSetValueCollectionDoc.h @@ -1,57 +0,0 @@ -/* - * Author: bwilliams - * Created: April 6, 2012 - * - * 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. - * - */ - -#ifndef CDiagSetValueCollectionDoc_h_ -#define CDiagSetValueCollectionDoc_h_ - -namespace Caf { - -/// A simple container for objects of type DiagSetValueCollection -class CDiagSetValueCollectionDoc { -public: - CDiagSetValueCollectionDoc() : - _isInitialized(false) {} - 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; - } - } - -public: - /// Accessor for the SetValue - std::deque getSetValueCollection() const { - return _setValueCollection; - } - -private: - bool _isInitialized; - - std::deque _setValueCollection; - -private: - CAF_CM_DECLARE_NOCOPY(CDiagSetValueCollectionDoc); -}; - -CAF_DECLARE_SMART_POINTER(CDiagSetValueCollectionDoc); - -} - -#endif diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/DiagTypesDoc/CDiagSetValueDoc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/DiagTypesDoc/CDiagSetValueDoc.h index 9f641f389..e69de29bb 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/DiagTypesDoc/CDiagSetValueDoc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/DiagTypesDoc/CDiagSetValueDoc.h @@ -1,73 +0,0 @@ -/* - * Author: bwilliams - * Created: April 6, 2012 - * - * 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. - * - */ - -#ifndef CDiagSetValueDoc_h_ -#define CDiagSetValueDoc_h_ - -namespace Caf { - -/// A simple container for objects of type DiagSetValue -class CDiagSetValueDoc { -public: - CDiagSetValueDoc() : - _jobId(CAFCOMMON_GUID_NULL), - _isInitialized(false) {} - virtual ~CDiagSetValueDoc() {} - -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, - const std::string fileAlias, - const SmartPtrCPropertyDoc value) { - if (! _isInitialized) { - _jobId = jobId; - _fileAlias = fileAlias; - _value = value; - - _isInitialized = true; - } - } - -public: - /// Accessor for the JobId - UUID getJobId() const { - return _jobId; - } - - /// Accessor for the FileAlias - std::string getFileAlias() const { - return _fileAlias; - } - - /// Accessor for the Value - SmartPtrCPropertyDoc getValue() const { - return _value; - } - -private: - UUID _jobId; - std::string _fileAlias; - SmartPtrCPropertyDoc _value; - bool _isInitialized; - -private: - CAF_CM_DECLARE_NOCOPY(CDiagSetValueDoc); -}; - -CAF_DECLARE_SMART_POINTER(CDiagSetValueDoc); - -} - -#endif diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/DiagTypesDoc/DiagTypesDocInc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/DiagTypesDoc/DiagTypesDocInc.h index b9e82a664..e69de29bb 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/DiagTypesDoc/DiagTypesDocInc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/DiagTypesDoc/DiagTypesDocInc.h @@ -1,25 +0,0 @@ -/* - * Author: bwilliams - * Created: April 6, 2012 - * - * Copyright (c) 2012 Vmware, Inc. All rights reserved. - * -- VMware Confidential - */ - -#ifndef DIAGTYPESDOCINC_H_ -#define DIAGTYPESDOCINC_H_ - -namespace Caf { -} - -#include "CDiagDeleteValueDoc.h" -#include "CDiagDeleteValueCollectionDoc.h" - -#include "CDiagSetValueDoc.h" -#include "CDiagSetValueCollectionDoc.h" - -#include "CDiagCollectInstancesDoc.h" - -#include "CDiagBatchDoc.h" - -#endif /* DIAGTYPESDOCINC_H_ */ diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/MgmtRequestDoc/CMgmtRequestDoc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/MgmtRequestDoc/CMgmtRequestDoc.h index 9f146d0aa..e69de29bb 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/MgmtRequestDoc/CMgmtRequestDoc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/MgmtRequestDoc/CMgmtRequestDoc.h @@ -1,98 +0,0 @@ -/* - * Author: bwilliams - * Created: April 6, 2012 - * - * 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. - * - */ - -#ifndef CMgmtRequestDoc_h_ -#define CMgmtRequestDoc_h_ - -namespace Caf { - -/// A simple container for objects of type MgmtRequest -class CMgmtRequestDoc { -public: - CMgmtRequestDoc() : - _clientId(CAFCOMMON_GUID_NULL), - _requestId(CAFCOMMON_GUID_NULL), - _isInitialized(false) {} - virtual ~CMgmtRequestDoc() {} - -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 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; - } - } - -public: - /// Accessor for the ClientId - UUID getClientId() const { - return _clientId; - } - - /// Accessor for the RequestId - UUID getRequestId() const { - return _requestId; - } - - /// Accessor for the PmeId - std::string getPmeId() const { - return _pmeId; - } - - /// Accessor for the RequestHeader - SmartPtrCRequestHeaderDoc getRequestHeader() const { - return _requestHeader; - } - - /// Accessor for the Batch - SmartPtrCMgmtBatchDoc getBatch() const { - return _batch; - } - - /// Accessor for the AttachmentCollection - SmartPtrCAttachmentCollectionDoc getAttachmentCollection() const { - return _attachmentCollection; - } - -private: - UUID _clientId; - UUID _requestId; - std::string _pmeId; - SmartPtrCRequestHeaderDoc _requestHeader; - SmartPtrCMgmtBatchDoc _batch; - SmartPtrCAttachmentCollectionDoc _attachmentCollection; - bool _isInitialized; - -private: - CAF_CM_DECLARE_NOCOPY(CMgmtRequestDoc); -}; - -CAF_DECLARE_SMART_POINTER(CMgmtRequestDoc); - -} - -#endif diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/MgmtRequestDoc/MgmtRequestDocInc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/MgmtRequestDoc/MgmtRequestDocInc.h index 91bd3b737..e69de29bb 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/MgmtRequestDoc/MgmtRequestDocInc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/MgmtRequestDoc/MgmtRequestDocInc.h @@ -1,17 +0,0 @@ -/* - * Author: bwilliams - * Created: April 6, 2012 - * - * Copyright (c) 2012 Vmware, Inc. All rights reserved. - * -- VMware Confidential - */ - -#ifndef MTMTREQUESTDOCINC_H_ -#define MTMTREQUESTDOCINC_H_ - -namespace Caf { -} - -#include "CMgmtRequestDoc.h" - -#endif /* MTMTREQUESTDOCINC_H_ */ diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/MgmtTypesDoc/CMgmtBatchDoc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/MgmtTypesDoc/CMgmtBatchDoc.h index d5c47d347..e69de29bb 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/MgmtTypesDoc/CMgmtBatchDoc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/MgmtTypesDoc/CMgmtBatchDoc.h @@ -1,73 +0,0 @@ -/* - * Author: bwilliams - * Created: April 6, 2012 - * - * 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. - * - */ - -#ifndef CMgmtBatchDoc_h_ -#define CMgmtBatchDoc_h_ - -namespace Caf { - -/// A simple container for objects of type MgmtBatch -class CMgmtBatchDoc { -public: - CMgmtBatchDoc() : - _isInitialized(false) {} - virtual ~CMgmtBatchDoc() {} - -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 SmartPtrCMgmtCollectSchemaDoc collectSchema, - const SmartPtrCMgmtCollectInstancesCollectionDoc collectInstancesCollection, - const SmartPtrCMgmtInvokeOperationCollectionDoc invokeOperationCollection) { - if (! _isInitialized) { - _collectSchema = collectSchema; - _collectInstancesCollection = collectInstancesCollection; - _invokeOperationCollection = invokeOperationCollection; - - _isInitialized = true; - } - } - -public: - /// Accessor for the CollectSchema - SmartPtrCMgmtCollectSchemaDoc getCollectSchema() const { - return _collectSchema; - } - - /// Accessor for the CollectInstancesCollection - SmartPtrCMgmtCollectInstancesCollectionDoc getCollectInstancesCollection() const { - return _collectInstancesCollection; - } - - /// Accessor for the InvokeOperationCollection - SmartPtrCMgmtInvokeOperationCollectionDoc getInvokeOperationCollection() const { - return _invokeOperationCollection; - } - -private: - bool _isInitialized; - - SmartPtrCMgmtCollectSchemaDoc _collectSchema; - SmartPtrCMgmtCollectInstancesCollectionDoc _collectInstancesCollection; - SmartPtrCMgmtInvokeOperationCollectionDoc _invokeOperationCollection; - -private: - CAF_CM_DECLARE_NOCOPY(CMgmtBatchDoc); -}; - -CAF_DECLARE_SMART_POINTER(CMgmtBatchDoc); - -} - -#endif diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/MgmtTypesDoc/CMgmtCollectInstancesCollectionDoc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/MgmtTypesDoc/CMgmtCollectInstancesCollectionDoc.h index 397cc1de3..e69de29bb 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/MgmtTypesDoc/CMgmtCollectInstancesCollectionDoc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/MgmtTypesDoc/CMgmtCollectInstancesCollectionDoc.h @@ -1,57 +0,0 @@ -/* - * Author: bwilliams - * Created: April 6, 2012 - * - * 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. - * - */ - -#ifndef CMgmtCollectInstancesCollectionDoc_h_ -#define CMgmtCollectInstancesCollectionDoc_h_ - -namespace Caf { - -/// A simple container for objects of type MgmtCollectInstancesCollection -class CMgmtCollectInstancesCollectionDoc { -public: - CMgmtCollectInstancesCollectionDoc() : - _isInitialized(false) {} - 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; - } - } - -public: - /// Accessor for the CollectInstances - std::deque getCollectInstancesCollection() const { - return _collectInstancesCollection; - } - -private: - bool _isInitialized; - - std::deque _collectInstancesCollection; - -private: - CAF_CM_DECLARE_NOCOPY(CMgmtCollectInstancesCollectionDoc); -}; - -CAF_DECLARE_SMART_POINTER(CMgmtCollectInstancesCollectionDoc); - -} - -#endif diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/MgmtTypesDoc/CMgmtCollectInstancesDoc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/MgmtTypesDoc/CMgmtCollectInstancesDoc.h index c15627e1e..e69de29bb 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/MgmtTypesDoc/CMgmtCollectInstancesDoc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/MgmtTypesDoc/CMgmtCollectInstancesDoc.h @@ -1,73 +0,0 @@ -/* - * Author: bwilliams - * Created: April 6, 2012 - * - * 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. - * - */ - -#ifndef CMgmtCollectInstancesDoc_h_ -#define CMgmtCollectInstancesDoc_h_ - -namespace Caf { - -/// A simple container for objects of type MgmtCollectInstances -class CMgmtCollectInstancesDoc { -public: - CMgmtCollectInstancesDoc() : - _jobId(CAFCOMMON_GUID_NULL), - _isInitialized(false) {} - virtual ~CMgmtCollectInstancesDoc() {} - -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, - const SmartPtrCClassSpecifierDoc classSpecifier, - const SmartPtrCParameterCollectionDoc parameterCollection) { - if (! _isInitialized) { - _jobId = jobId; - _classSpecifier = classSpecifier; - _parameterCollection = parameterCollection; - - _isInitialized = true; - } - } - -public: - /// Accessor for the JobId - UUID getJobId() const { - return _jobId; - } - - /// Accessor for the ClassSpecifier - SmartPtrCClassSpecifierDoc getClassSpecifier() const { - return _classSpecifier; - } - - /// Accessor for the ParameterCollection - SmartPtrCParameterCollectionDoc getParameterCollection() const { - return _parameterCollection; - } - -private: - UUID _jobId; - SmartPtrCClassSpecifierDoc _classSpecifier; - SmartPtrCParameterCollectionDoc _parameterCollection; - bool _isInitialized; - -private: - CAF_CM_DECLARE_NOCOPY(CMgmtCollectInstancesDoc); -}; - -CAF_DECLARE_SMART_POINTER(CMgmtCollectInstancesDoc); - -} - -#endif diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/MgmtTypesDoc/CMgmtCollectSchemaDoc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/MgmtTypesDoc/CMgmtCollectSchemaDoc.h index 4d6713f30..e69de29bb 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/MgmtTypesDoc/CMgmtCollectSchemaDoc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/MgmtTypesDoc/CMgmtCollectSchemaDoc.h @@ -1,57 +0,0 @@ -/* - * Author: bwilliams - * Created: April 6, 2012 - * - * 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. - * - */ - -#ifndef CMgmtCollectSchemaDoc_h_ -#define CMgmtCollectSchemaDoc_h_ - -namespace Caf { - -/// A simple container for objects of type MgmtCollectSchema -class CMgmtCollectSchemaDoc { -public: - CMgmtCollectSchemaDoc() : - _jobId(CAFCOMMON_GUID_NULL), - _isInitialized(false) {} - 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; - } - } - -public: - /// Accessor for the JobId - UUID getJobId() const { - return _jobId; - } - -private: - UUID _jobId; - bool _isInitialized; - -private: - CAF_CM_DECLARE_NOCOPY(CMgmtCollectSchemaDoc); -}; - -CAF_DECLARE_SMART_POINTER(CMgmtCollectSchemaDoc); - -} - -#endif diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/MgmtTypesDoc/CMgmtInvokeOperationCollectionDoc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/MgmtTypesDoc/CMgmtInvokeOperationCollectionDoc.h index aa4b83ea8..e69de29bb 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/MgmtTypesDoc/CMgmtInvokeOperationCollectionDoc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/MgmtTypesDoc/CMgmtInvokeOperationCollectionDoc.h @@ -1,57 +0,0 @@ -/* - * Author: bwilliams - * Created: April 6, 2012 - * - * 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. - * - */ - -#ifndef CMgmtInvokeOperationCollectionDoc_h_ -#define CMgmtInvokeOperationCollectionDoc_h_ - -namespace Caf { - -/// A simple container for objects of type MgmtInvokeOperationCollection -class CMgmtInvokeOperationCollectionDoc { -public: - CMgmtInvokeOperationCollectionDoc() : - _isInitialized(false) {} - 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; - } - } - -public: - /// Accessor for the InvokeOperation - std::deque getInvokeOperationCollection() const { - return _invokeOperationCollection; - } - -private: - bool _isInitialized; - - std::deque _invokeOperationCollection; - -private: - CAF_CM_DECLARE_NOCOPY(CMgmtInvokeOperationCollectionDoc); -}; - -CAF_DECLARE_SMART_POINTER(CMgmtInvokeOperationCollectionDoc); - -} - -#endif diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/MgmtTypesDoc/CMgmtInvokeOperationDoc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/MgmtTypesDoc/CMgmtInvokeOperationDoc.h index bc4748df6..e69de29bb 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/MgmtTypesDoc/CMgmtInvokeOperationDoc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/MgmtTypesDoc/CMgmtInvokeOperationDoc.h @@ -1,73 +0,0 @@ -/* - * Author: bwilliams - * Created: April 6, 2012 - * - * 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. - * - */ - -#ifndef CMgmtInvokeOperationDoc_h_ -#define CMgmtInvokeOperationDoc_h_ - -namespace Caf { - -/// A simple container for objects of type MgmtInvokeOperation -class CMgmtInvokeOperationDoc { -public: - CMgmtInvokeOperationDoc() : - _jobId(CAFCOMMON_GUID_NULL), - _isInitialized(false) {} - virtual ~CMgmtInvokeOperationDoc() {} - -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, - const SmartPtrCClassSpecifierDoc classSpecifier, - const SmartPtrCOperationDoc operation) { - if (! _isInitialized) { - _jobId = jobId; - _classSpecifier = classSpecifier; - _operation = operation; - - _isInitialized = true; - } - } - -public: - /// Accessor for the JobId - UUID getJobId() const { - return _jobId; - } - - /// Accessor for the ClassSpecifier - SmartPtrCClassSpecifierDoc getClassSpecifier() const { - return _classSpecifier; - } - - /// Accessor for the Operation - SmartPtrCOperationDoc getOperation() const { - return _operation; - } - -private: - UUID _jobId; - SmartPtrCClassSpecifierDoc _classSpecifier; - SmartPtrCOperationDoc _operation; - bool _isInitialized; - -private: - CAF_CM_DECLARE_NOCOPY(CMgmtInvokeOperationDoc); -}; - -CAF_DECLARE_SMART_POINTER(CMgmtInvokeOperationDoc); - -} - -#endif diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/MgmtTypesDoc/MgmtTypesDocInc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/MgmtTypesDoc/MgmtTypesDocInc.h index 06f4f8c17..e69de29bb 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/MgmtTypesDoc/MgmtTypesDocInc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/MgmtTypesDoc/MgmtTypesDocInc.h @@ -1,25 +0,0 @@ -/* - * Author: bwilliams - * Created: April 6, 2012 - * - * Copyright (c) 2012 Vmware, Inc. All rights reserved. - * -- VMware Confidential - */ - -#ifndef MGMTTYPESDOCINC_H_ -#define MGMTTYPESDOCINC_H_ - -namespace Caf { -} - -#include "CMgmtCollectSchemaDoc.h" - -#include "CMgmtCollectInstancesDoc.h" -#include "CMgmtCollectInstancesCollectionDoc.h" - -#include "CMgmtInvokeOperationDoc.h" -#include "CMgmtInvokeOperationCollectionDoc.h" - -#include "CMgmtBatchDoc.h" - -#endif /* MGMTTYPESDOCINC_H_ */ diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/MultiPmeMgmtRequestDoc/CMultiPmeMgmtBatchCollectionDoc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/MultiPmeMgmtRequestDoc/CMultiPmeMgmtBatchCollectionDoc.h index 9d57e6ecd..e69de29bb 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/MultiPmeMgmtRequestDoc/CMultiPmeMgmtBatchCollectionDoc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/MultiPmeMgmtRequestDoc/CMultiPmeMgmtBatchCollectionDoc.h @@ -1,57 +0,0 @@ -/* - * Author: bwilliams - * Created: April 6, 2012 - * - * 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. - * - */ - -#ifndef CMultiPmeMgmtBatchCollectionDoc_h_ -#define CMultiPmeMgmtBatchCollectionDoc_h_ - -namespace Caf { - -/// A simple container for objects of type MultiPmeMgmtBatchCollection -class CMultiPmeMgmtBatchCollectionDoc { -public: - CMultiPmeMgmtBatchCollectionDoc() : - _isInitialized(false) {} - 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; - } - } - -public: - /// Accessor for the MultiPmeBatch - std::deque getMultiPmeBatch() const { - return _multiPmeBatch; - } - -private: - bool _isInitialized; - - std::deque _multiPmeBatch; - -private: - CAF_CM_DECLARE_NOCOPY(CMultiPmeMgmtBatchCollectionDoc); -}; - -CAF_DECLARE_SMART_POINTER(CMultiPmeMgmtBatchCollectionDoc); - -} - -#endif diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/MultiPmeMgmtRequestDoc/CMultiPmeMgmtBatchDoc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/MultiPmeMgmtRequestDoc/CMultiPmeMgmtBatchDoc.h index 0af331d90..e69de29bb 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/MultiPmeMgmtRequestDoc/CMultiPmeMgmtBatchDoc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/MultiPmeMgmtRequestDoc/CMultiPmeMgmtBatchDoc.h @@ -1,65 +0,0 @@ -/* - * Author: bwilliams - * Created: April 6, 2012 - * - * 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. - * - */ - -#ifndef CMultiPmeMgmtBatchDoc_h_ -#define CMultiPmeMgmtBatchDoc_h_ - -namespace Caf { - -/// A simple container for objects of type MultiPmeMgmtBatch -class CMultiPmeMgmtBatchDoc { -public: - CMultiPmeMgmtBatchDoc() : - _isInitialized(false) {} - virtual ~CMultiPmeMgmtBatchDoc() {} - -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 SmartPtrCPmeIdCollectionDoc pmeIdCollection, - const SmartPtrCMgmtBatchDoc batch) { - if (! _isInitialized) { - _pmeIdCollection = pmeIdCollection; - _batch = batch; - - _isInitialized = true; - } - } - -public: - /// Accessor for the PmeIdCollection - SmartPtrCPmeIdCollectionDoc getPmeIdCollection() const { - return _pmeIdCollection; - } - - /// Accessor for the Batch - SmartPtrCMgmtBatchDoc getBatch() const { - return _batch; - } - -private: - bool _isInitialized; - - SmartPtrCPmeIdCollectionDoc _pmeIdCollection; - SmartPtrCMgmtBatchDoc _batch; - -private: - CAF_CM_DECLARE_NOCOPY(CMultiPmeMgmtBatchDoc); -}; - -CAF_DECLARE_SMART_POINTER(CMultiPmeMgmtBatchDoc); - -} - -#endif diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/MultiPmeMgmtRequestDoc/CMultiPmeMgmtRequestDoc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/MultiPmeMgmtRequestDoc/CMultiPmeMgmtRequestDoc.h index 6c04429da..e69de29bb 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/MultiPmeMgmtRequestDoc/CMultiPmeMgmtRequestDoc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/MultiPmeMgmtRequestDoc/CMultiPmeMgmtRequestDoc.h @@ -1,82 +0,0 @@ -/* - * Author: bwilliams - * Created: April 6, 2012 - * - * 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. - * - */ - -#ifndef CMultiPmeMgmtRequestDoc_h_ -#define CMultiPmeMgmtRequestDoc_h_ - -namespace Caf { - -/// A simple container for objects of type MultiPmeMgmtRequest -class CMultiPmeMgmtRequestDoc { -public: - CMultiPmeMgmtRequestDoc() : - _clientId(CAFCOMMON_GUID_NULL), - _requestId(CAFCOMMON_GUID_NULL), - _isInitialized(false) {} - virtual ~CMultiPmeMgmtRequestDoc() {} - -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 clientId, - const UUID requestId, - const SmartPtrCRequestHeaderDoc requestHeader, - const SmartPtrCMultiPmeMgmtBatchCollectionDoc multiPmeBatchCollection) { - if (! _isInitialized) { - _clientId = clientId; - _requestId = requestId; - _requestHeader = requestHeader; - _multiPmeBatchCollection = multiPmeBatchCollection; - - _isInitialized = true; - } - } - -public: - /// Accessor for the ClientId - UUID getClientId() const { - return _clientId; - } - - /// Accessor for the RequestId - UUID getRequestId() const { - return _requestId; - } - - /// Accessor for the RequestHeader - SmartPtrCRequestHeaderDoc getRequestHeader() const { - return _requestHeader; - } - - /// Accessor for the MultiPmeBatchCollection - SmartPtrCMultiPmeMgmtBatchCollectionDoc getMultiPmeBatchCollection() const { - return _multiPmeBatchCollection; - } - -private: - UUID _clientId; - UUID _requestId; - SmartPtrCRequestHeaderDoc _requestHeader; - SmartPtrCMultiPmeMgmtBatchCollectionDoc _multiPmeBatchCollection; - bool _isInitialized; - -private: - CAF_CM_DECLARE_NOCOPY(CMultiPmeMgmtRequestDoc); -}; - -CAF_DECLARE_SMART_POINTER(CMultiPmeMgmtRequestDoc); - -} - -#endif diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/MultiPmeMgmtRequestDoc/CPmeIdCollectionDoc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/MultiPmeMgmtRequestDoc/CPmeIdCollectionDoc.h index e560c463c..e69de29bb 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/MultiPmeMgmtRequestDoc/CPmeIdCollectionDoc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/MultiPmeMgmtRequestDoc/CPmeIdCollectionDoc.h @@ -1,57 +0,0 @@ -/* - * Author: bwilliams - * Created: April 6, 2012 - * - * 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. - * - */ - -#ifndef CPmeIdCollectionDoc_h_ -#define CPmeIdCollectionDoc_h_ - -namespace Caf { - -/// A simple container for objects of type PmeIdCollection -class CPmeIdCollectionDoc { -public: - CPmeIdCollectionDoc() : - _isInitialized(false) {} - 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; - } - } - -public: - /// Accessor for the PmeId - std::deque getPmeIdCollection() const { - return _pmeIdCollection; - } - -private: - bool _isInitialized; - - std::deque _pmeIdCollection; - -private: - CAF_CM_DECLARE_NOCOPY(CPmeIdCollectionDoc); -}; - -CAF_DECLARE_SMART_POINTER(CPmeIdCollectionDoc); - -} - -#endif diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/MultiPmeMgmtRequestDoc/MultiPmeMgmtRequestDocInc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/MultiPmeMgmtRequestDoc/MultiPmeMgmtRequestDocInc.h index e8fd153f6..e69de29bb 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/MultiPmeMgmtRequestDoc/MultiPmeMgmtRequestDocInc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/MultiPmeMgmtRequestDoc/MultiPmeMgmtRequestDocInc.h @@ -1,17 +0,0 @@ -/* - * Author: bwilliams - * Created: April 6, 2012 - * - * Copyright (c) 2012 Vmware, Inc. All rights reserved. - * -- VMware Confidential - */ - -#ifndef MULTIPMEMGMTREQUESTDOCINC_H_ -#define MULTIPMEMGMTREQUESTDOCINC_H_ - -#include "CPmeIdCollectionDoc.h" -#include "CMultiPmeMgmtBatchDoc.h" -#include "CMultiPmeMgmtBatchCollectionDoc.h" -#include "CMultiPmeMgmtRequestDoc.h" - -#endif /* MULTIPMEMGMTREQUESTDOCINC_H_ */ diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/PayloadEnvelopeDoc/CPayloadEnvelopeDoc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/PayloadEnvelopeDoc/CPayloadEnvelopeDoc.h index b77dd62cd..e69de29bb 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/PayloadEnvelopeDoc/CPayloadEnvelopeDoc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/PayloadEnvelopeDoc/CPayloadEnvelopeDoc.h @@ -1,119 +0,0 @@ -/* - * Author: bwilliams - * Created: July 3, 2015 - * - * Copyright (c) 2012 Vmware, Inc. All rights reserved. - * -- VMware Confidential - * - */ - -#ifndef CPayloadEnvelopeDoc_h_ -#define CPayloadEnvelopeDoc_h_ - -namespace Caf { - -/// A simple container for objects of type PayloadEnvelope -class CPayloadEnvelopeDoc { -public: - CPayloadEnvelopeDoc() : - _clientId(CAFCOMMON_GUID_NULL), - _requestId(CAFCOMMON_GUID_NULL), - _isInitialized(false) {} - virtual ~CPayloadEnvelopeDoc() {} - -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& clientId, - const UUID& requestId, - const std::string& pmeId, - const std::string& payloadType, - const std::string& payloadVersion, - 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; - } - } - -public: - /// Accessor for the ClientId - UUID getClientId() const { - return _clientId; - } - - /// Accessor for the RequestId - UUID getRequestId() const { - return _requestId; - } - - /// Accessor for the PmeId - std::string getPmeId() const { - return _pmeId; - } - - /// Accessor for the PayloadType - std::string getPayloadType() const { - return _payloadType; - } - - /// Accessor for the PayloadVersion - std::string getPayloadVersion() const { - return _payloadVersion; - } - - /// Accessor for the Protocol Collection - SmartPtrCProtocolCollectionDoc getProtocolCollection() const { - return _protocolCollection; - } - - /// Accessor for the AttachmentCollection - SmartPtrCAttachmentCollectionDoc getAttachmentCollection() const { - return _attachmentCollection; - } - - /// Accessor for the Headers - SmartPtrCPropertyCollectionDoc getHeaderCollection() const { - return _headerCollection; - } - - /// Accessor for the version - std::string getVersion() const { - return _version; - } - -private: - UUID _clientId; - UUID _requestId; - std::string _pmeId; - std::string _payloadType; - std::string _payloadVersion; - SmartPtrCAttachmentCollectionDoc _attachmentCollection; - SmartPtrCProtocolCollectionDoc _protocolCollection; - SmartPtrCPropertyCollectionDoc _headerCollection; - std::string _version; - bool _isInitialized; - -private: - CAF_CM_DECLARE_NOCOPY(CPayloadEnvelopeDoc); -}; - -CAF_DECLARE_SMART_POINTER(CPayloadEnvelopeDoc); - -} - -#endif diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/PayloadEnvelopeDoc/PayloadEnvelopeDocInc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/PayloadEnvelopeDoc/PayloadEnvelopeDocInc.h index 076ee6d6e..e69de29bb 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/PayloadEnvelopeDoc/PayloadEnvelopeDocInc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/PayloadEnvelopeDoc/PayloadEnvelopeDocInc.h @@ -1,14 +0,0 @@ -/* - * Author: bwilliams - * Created: April 6, 2012 - * - * Copyright (c) 2012 Vmware, Inc. All rights reserved. - * -- VMware Confidential - */ - -#ifndef PayloadEnvelopeDocInc_H_ -#define PayloadEnvelopeDocInc_H_ - -#include "CPayloadEnvelopeDoc.h" - -#endif /* PayloadEnvelopeDocInc_H_ */ diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/PersistenceDoc/CAmqpBrokerCollectionDoc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/PersistenceDoc/CAmqpBrokerCollectionDoc.h index 96e2103d3..e69de29bb 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/PersistenceDoc/CAmqpBrokerCollectionDoc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/PersistenceDoc/CAmqpBrokerCollectionDoc.h @@ -1,57 +0,0 @@ -/* - * Author: bwilliams - * Created: April 6, 2012 - * - * 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. - * - */ - -#ifndef CAmqpBrokerCollectionDoc_h_ -#define CAmqpBrokerCollectionDoc_h_ - -namespace Caf { - -/// A simple container for objects of type AmqpBrokerCollection -class CAmqpBrokerCollectionDoc { -public: - CAmqpBrokerCollectionDoc() : - _isInitialized(false) {} - virtual ~CAmqpBrokerCollectionDoc() {} - -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 amqpBroker = std::deque()) { - if (! _isInitialized) { - _amqpBroker = amqpBroker; - - _isInitialized = true; - } - } - -public: - /// Accessor for the AmqpBroker - std::deque getAmqpBroker() const { - return _amqpBroker; - } - -private: - bool _isInitialized; - - std::deque _amqpBroker; - -private: - CAF_CM_DECLARE_NOCOPY(CAmqpBrokerCollectionDoc); -}; - -CAF_DECLARE_SMART_POINTER(CAmqpBrokerCollectionDoc); - -} - -#endif diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/PersistenceDoc/CAmqpBrokerDoc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/PersistenceDoc/CAmqpBrokerDoc.h index 696219964..e69de29bb 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/PersistenceDoc/CAmqpBrokerDoc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/PersistenceDoc/CAmqpBrokerDoc.h @@ -1,112 +0,0 @@ -/* - * Author: bwilliams - * Created: Nov 16, 2015 - * - * Copyright (c) 2015 Vmware, Inc. All rights reserved. - * -- VMware Confidential - * - */ - -#ifndef CAmqpBrokerDoc_h_ -#define CAmqpBrokerDoc_h_ - -namespace Caf { - -/// A simple container for objects of type CAmqpBrokerDoc -class CAmqpBrokerDoc { -public: - CAmqpBrokerDoc() : - _isInitialized(false) {} - virtual ~CAmqpBrokerDoc() {} - -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::string& amqpBrokerId = std::string(), - const std::string& uri = std::string(), - const std::string& tlsCert = std::string(), - const std::string& tlsProtocol = std::string(), - const Cdeqstr& tlsCipherCollection = Cdeqstr(), - const SmartPtrCCertCollectionDoc& tlsCertCollection = SmartPtrCCertCollectionDoc(), - const std::string& tlsCertPath = std::string(), - const SmartPtrCCertPathCollectionDoc& tlsCertPathCollection = SmartPtrCCertPathCollectionDoc()) { - if (! _isInitialized) { - _amqpBrokerId = amqpBrokerId; - _uri = uri; - _tlsCert = tlsCert; - _tlsProtocol = tlsProtocol; - _tlsCipherCollection = tlsCipherCollection; - _tlsCertCollection = tlsCertCollection; - - _tlsCertPath = tlsCertPath; - _tlsCertPathCollection = tlsCertPathCollection; - - _isInitialized = true; - } - } - -public: - /// Accessor for the AmqpBrokerId - std::string getAmqpBrokerId() const { - return _amqpBrokerId; - } - - /// Accessor for the Uri - std::string getUri() const { - return _uri; - } - - /// Accessor for the TlsCert - std::string getTlsCert() const { - return _tlsCert; - } - - /// Accessor for the TlsProtocol - std::string getTlsProtocol() const { - return _tlsProtocol; - } - - /// Accessor for the tlsCipherCollection - Cdeqstr getTlsCipherCollection() const { - return _tlsCipherCollection; - } - - /// Accessor for the TlsCertCollection - SmartPtrCCertCollectionDoc getTlsCertCollection() const { - return _tlsCertCollection; - } - - /// Accessor for the TlsCertPath - std::string getTlsCertPath() const { - return _tlsCertPath; - } - - /// Accessor for the TlsCertPathCollection - SmartPtrCCertPathCollectionDoc getTlsCertPathCollection() const { - return _tlsCertPathCollection; - } - -private: - std::string _amqpBrokerId; - std::string _uri; - std::string _tlsCert; - std::string _tlsProtocol; - Cdeqstr _tlsCipherCollection; - SmartPtrCCertCollectionDoc _tlsCertCollection; - - std::string _tlsCertPath; - SmartPtrCCertPathCollectionDoc _tlsCertPathCollection; - - bool _isInitialized; - -private: - CAF_CM_DECLARE_NOCOPY(CAmqpBrokerDoc); -}; - -CAF_DECLARE_SMART_POINTER(CAmqpBrokerDoc); - -} - -#endif diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/PersistenceDoc/CCertCollectionDoc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/PersistenceDoc/CCertCollectionDoc.h index 505967b0b..e69de29bb 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/PersistenceDoc/CCertCollectionDoc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/PersistenceDoc/CCertCollectionDoc.h @@ -1,57 +0,0 @@ -/* - * Author: bwilliams - * Created: April 6, 2012 - * - * 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. - * - */ - -#ifndef CCertCollectionDoc_h_ -#define CCertCollectionDoc_h_ - -namespace Caf { - -/// A simple container for objects of type CertCollection -class CCertCollectionDoc { -public: - CCertCollectionDoc() : - _isInitialized(false) {} - 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; - } - } - -public: - /// Accessor for the Cert - std::deque getCert() const { - return _certCollection; - } - -private: - bool _isInitialized; - - std::deque _certCollection; - -private: - CAF_CM_DECLARE_NOCOPY(CCertCollectionDoc); -}; - -CAF_DECLARE_SMART_POINTER(CCertCollectionDoc); - -} - -#endif diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/PersistenceDoc/CCertPathCollectionDoc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/PersistenceDoc/CCertPathCollectionDoc.h index 871c11677..e69de29bb 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/PersistenceDoc/CCertPathCollectionDoc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/PersistenceDoc/CCertPathCollectionDoc.h @@ -1,57 +0,0 @@ -/* - * Author: bwilliams - * Created: April 6, 2012 - * - * 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. - * - */ - -#ifndef CCertPathCollectionDoc_h_ -#define CCertPathCollectionDoc_h_ - -namespace Caf { - -/// A simple container for objects of type CertPathCollection -class CCertPathCollectionDoc { -public: - CCertPathCollectionDoc() : - _isInitialized(false) {} - 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; - } - } - -public: - /// Accessor for the Cert - std::deque getCertPath() const { - return _certPathCollection; - } - -private: - bool _isInitialized; - - std::deque _certPathCollection; - -private: - CAF_CM_DECLARE_NOCOPY(CCertPathCollectionDoc); -}; - -CAF_DECLARE_SMART_POINTER(CCertPathCollectionDoc); - -} - -#endif diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/PersistenceDoc/CLocalSecurityDoc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/PersistenceDoc/CLocalSecurityDoc.h index fd99ab2d8..e69de29bb 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/PersistenceDoc/CLocalSecurityDoc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/PersistenceDoc/CLocalSecurityDoc.h @@ -1,88 +0,0 @@ -/* - * Author: bwilliams - * Created: Nov 16, 2015 - * - * Copyright (c) 2015 Vmware, Inc. All rights reserved. - * -- VMware Confidential - * - */ - -#ifndef CLocalSecurityDoc_h_ -#define CLocalSecurityDoc_h_ - -namespace Caf { - -/// A simple container for objects of type CLocalSecurityDoc -class CLocalSecurityDoc { -public: - CLocalSecurityDoc() : - _isInitialized(false) {} - virtual ~CLocalSecurityDoc() {} - -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::string& localId = std::string(), - 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; - } - } - -public: - /// Accessor for the LocalId - std::string getLocalId() const { - return _localId; - } - - /// Accessor for the PrivateKey - std::string getPrivateKey() const { - return _privateKey; - } - - /// Accessor for the Cert - std::string getCert() const { - return _cert; - } - - /// Accessor for the PrivateKeyPath - std::string getPrivateKeyPath() const { - return _privateKeyPath; - } - - /// Accessor for the CertPath - std::string getCertPath() const { - return _certPath; - } - -private: - std::string _localId; - std::string _privateKey; - std::string _cert; - - std::string _privateKeyPath; - std::string _certPath; - - bool _isInitialized; - -private: - CAF_CM_DECLARE_NOCOPY(CLocalSecurityDoc); -}; - -CAF_DECLARE_SMART_POINTER(CLocalSecurityDoc); - -} - -#endif diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/PersistenceDoc/CPersistenceDoc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/PersistenceDoc/CPersistenceDoc.h index 0504ee6b9..e69de29bb 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/PersistenceDoc/CPersistenceDoc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/PersistenceDoc/CPersistenceDoc.h @@ -1,78 +0,0 @@ -/* - * Author: bwilliams - * Created: Nov 16, 2015 - * - * Copyright (c) 2015 Vmware, Inc. All rights reserved. - * -- VMware Confidential - * - */ - -#ifndef CPersistenceDoc_h_ -#define CPersistenceDoc_h_ - -namespace Caf { - -/// A simple container for objects of type PersistenceEnvelope -class CPersistenceDoc { -public: - CPersistenceDoc() : - _isInitialized(false) {} - virtual ~CPersistenceDoc() {} - -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 SmartPtrCLocalSecurityDoc& localSecurity = SmartPtrCLocalSecurityDoc(), - const SmartPtrCRemoteSecurityCollectionDoc& remoteSecurityCollection = SmartPtrCRemoteSecurityCollectionDoc(), - const SmartPtrCPersistenceProtocolDoc& persistenceProtocol = SmartPtrCPersistenceProtocolDoc(), - const std::string version = "1.0") { - if (! _isInitialized) { - _localSecurity = localSecurity; - _remoteSecurityCollection = remoteSecurityCollection; - _persistenceProtocol = persistenceProtocol; - _version = version; - - _isInitialized = true; - } - } - -public: - /// Accessor for the LocalSecurity - SmartPtrCLocalSecurityDoc getLocalSecurity() const { - return _localSecurity; - } - - /// Accessor for the Protocol Collection - SmartPtrCRemoteSecurityCollectionDoc getRemoteSecurityCollection() const { - return _remoteSecurityCollection; - } - - /// Accessor for the PersistenceProtocol - SmartPtrCPersistenceProtocolDoc getPersistenceProtocol() const { - return _persistenceProtocol; - } - - /// Accessor for the version - std::string getVersion() const { - return _version; - } - -private: - SmartPtrCLocalSecurityDoc _localSecurity; - SmartPtrCRemoteSecurityCollectionDoc _remoteSecurityCollection; - SmartPtrCPersistenceProtocolDoc _persistenceProtocol; - std::string _version; - - bool _isInitialized; - -private: - CAF_CM_DECLARE_NOCOPY(CPersistenceDoc); -}; - -CAF_DECLARE_SMART_POINTER(CPersistenceDoc); - -} - -#endif diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/PersistenceDoc/CPersistenceProtocolDoc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/PersistenceDoc/CPersistenceProtocolDoc.h index 72af9a42b..e69de29bb 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/PersistenceDoc/CPersistenceProtocolDoc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/PersistenceDoc/CPersistenceProtocolDoc.h @@ -1,54 +0,0 @@ -/* - * Author: bwilliams - * Created: Nov 16, 2015 - * - * Copyright (c) 2015 Vmware, Inc. All rights reserved. - * -- VMware Confidential - * - */ - -#ifndef CPersistenceProtocolDoc_h_ -#define CPersistenceProtocolDoc_h_ - -namespace Caf { - -/// A simple container for objects of type CPersistenceProtocolDoc -class CPersistenceProtocolDoc { -public: - CPersistenceProtocolDoc() : - _isInitialized(false) {} - virtual ~CPersistenceProtocolDoc() {} - -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 SmartPtrCAmqpBrokerCollectionDoc& amqpBrokerCollection = SmartPtrCAmqpBrokerCollectionDoc()) { - if (! _isInitialized) { - _amqpBrokerCollection = amqpBrokerCollection; - - _isInitialized = true; - } - } - -public: - /// Accessor for the AmqpBrokerCollection - SmartPtrCAmqpBrokerCollectionDoc getAmqpBrokerCollection() const { - return _amqpBrokerCollection; - } - -private: - SmartPtrCAmqpBrokerCollectionDoc _amqpBrokerCollection; - - bool _isInitialized; - -private: - CAF_CM_DECLARE_NOCOPY(CPersistenceProtocolDoc); -}; - -CAF_DECLARE_SMART_POINTER(CPersistenceProtocolDoc); - -} - -#endif diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/PersistenceDoc/CRemoteSecurityCollectionDoc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/PersistenceDoc/CRemoteSecurityCollectionDoc.h index 978b59fb1..e69de29bb 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/PersistenceDoc/CRemoteSecurityCollectionDoc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/PersistenceDoc/CRemoteSecurityCollectionDoc.h @@ -1,57 +0,0 @@ -/* - * Author: bwilliams - * Created: April 6, 2012 - * - * 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. - * - */ - -#ifndef CRemoteSecurityCollectionDoc_h_ -#define CRemoteSecurityCollectionDoc_h_ - -namespace Caf { - -/// A simple container for objects of type RemoteSecurityCollection -class CRemoteSecurityCollectionDoc { -public: - CRemoteSecurityCollectionDoc() : - _isInitialized(false) {} - 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; - } - } - -public: - /// Accessor for the RemoteSecurity - std::deque getRemoteSecurity() const { - return _remoteSecurity; - } - -private: - bool _isInitialized; - - std::deque _remoteSecurity; - -private: - CAF_CM_DECLARE_NOCOPY(CRemoteSecurityCollectionDoc); -}; - -CAF_DECLARE_SMART_POINTER(CRemoteSecurityCollectionDoc); - -} - -#endif diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/PersistenceDoc/CRemoteSecurityDoc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/PersistenceDoc/CRemoteSecurityDoc.h index 9411fc565..e69de29bb 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/PersistenceDoc/CRemoteSecurityDoc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/PersistenceDoc/CRemoteSecurityDoc.h @@ -1,104 +0,0 @@ -/* - * Author: bwilliams - * Created: Nov 16, 2015 - * - * Copyright (c) 2015 Vmware, Inc. All rights reserved. - * -- VMware Confidential - * - */ - -#ifndef CRemoteSecurityDoc_h_ -#define CRemoteSecurityDoc_h_ - -namespace Caf { - -/// A simple container for objects of type CRemoteSecurityDoc -class CRemoteSecurityDoc { -public: - CRemoteSecurityDoc() : - _isInitialized(false) {} - virtual ~CRemoteSecurityDoc() {} - -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::string& remoteId = std::string(), - const std::string& protocolName = std::string(), - const std::string& cmsCert = std::string(), - 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; - } - } - -public: - /// Accessor for the RemoteId - std::string getRemoteId() const { - return _remoteId; - } - - /// Accessor for the ProtocolName - std::string getProtocolName() const { - return _protocolName; - } - - /// Accessor for the cmsCert - std::string getCmsCert() const { - return _cmsCert; - } - - /// Accessor for the CmsCipher - std::string getCmsCipherName() const { - return _cmsCipherName; - } - - /// Accessor for the CertCollection - SmartPtrCCertCollectionDoc getCmsCertCollection() const { - return _cmsCertCollection; - } - - /// Accessor for the cmsCertPath - std::string getCmsCertPath() const { - return _cmsCertPath; - } - - /// Accessor for the CertPathCollection - SmartPtrCCertPathCollectionDoc getCmsCertPathCollection() const { - return _cmsCertPathCollection; - } - -private: - std::string _remoteId; - std::string _protocolName; - std::string _cmsCert; - std::string _cmsCipherName; - SmartPtrCCertCollectionDoc _cmsCertCollection; - - std::string _cmsCertPath; - SmartPtrCCertPathCollectionDoc _cmsCertPathCollection; - - bool _isInitialized; - -private: - CAF_CM_DECLARE_NOCOPY(CRemoteSecurityDoc); -}; - -CAF_DECLARE_SMART_POINTER(CRemoteSecurityDoc); - -} - -#endif diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/PersistenceDoc/PersistenceDocInc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/PersistenceDoc/PersistenceDocInc.h index 96bc18782..e69de29bb 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/PersistenceDoc/PersistenceDocInc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/PersistenceDoc/PersistenceDocInc.h @@ -1,22 +0,0 @@ -/* - * Author: bwilliams - * Created: April 6, 2012 - * - * Copyright (c) 2012 Vmware, Inc. All rights reserved. - * -- VMware Confidential - */ - -#ifndef PersistenceDocInc_H_ -#define PersistenceDocInc_H_ - -#include "CCertCollectionDoc.h" -#include "CCertPathCollectionDoc.h" -#include "CAmqpBrokerDoc.h" -#include "CAmqpBrokerCollectionDoc.h" -#include "CRemoteSecurityDoc.h" -#include "CRemoteSecurityCollectionDoc.h" -#include "CLocalSecurityDoc.h" -#include "CPersistenceProtocolDoc.h" -#include "CPersistenceDoc.h" - -#endif /* PersistenceDocInc_H_ */ diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/ProviderInfraDoc/CClassCollectionDoc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/ProviderInfraDoc/CClassCollectionDoc.h index 5a5ffbab1..e69de29bb 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/ProviderInfraDoc/CClassCollectionDoc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/ProviderInfraDoc/CClassCollectionDoc.h @@ -1,57 +0,0 @@ -/* - * Author: bwilliams - * Created: April 6, 2012 - * - * 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. - * - */ - -#ifndef CClassCollectionDoc_h_ -#define CClassCollectionDoc_h_ - -namespace Caf { - -/// A simple container for objects of type ClassCollection -class CClassCollectionDoc { -public: - CClassCollectionDoc() : - _isInitialized(false) {} - 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; - } - } - -public: - /// Accessor for the FullyQualifiedClass - std::deque getFullyQualifiedClass() const { - return _fullyQualifiedClass; - } - -private: - bool _isInitialized; - - std::deque _fullyQualifiedClass; - -private: - CAF_CM_DECLARE_NOCOPY(CClassCollectionDoc); -}; - -CAF_DECLARE_SMART_POINTER(CClassCollectionDoc); - -} - -#endif diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/ProviderInfraDoc/CProviderRegDoc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/ProviderInfraDoc/CProviderRegDoc.h index bf8a632f5..e69de29bb 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/ProviderInfraDoc/CProviderRegDoc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/ProviderInfraDoc/CProviderRegDoc.h @@ -1,98 +0,0 @@ -/* - * Author: bwilliams - * Created: April 6, 2012 - * - * 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. - * - */ - -#ifndef CProviderRegDoc_h_ -#define CProviderRegDoc_h_ - -namespace Caf { - -/// A simple container for objects of type ProviderReg -class CProviderRegDoc { -public: - CProviderRegDoc() : - _staleSec(0), - _isSchemaVisible(false), - _isInitialized(false) {} - virtual ~CProviderRegDoc() {} - -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::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; - } - } - -public: - /// Accessor for the ProviderNamespace - std::string getProviderNamespace() const { - return _providerNamespace; - } - - /// Accessor for the ProviderName - std::string getProviderName() const { - return _providerName; - } - - /// Accessor for the ProviderVersion - std::string getProviderVersion() const { - return _providerVersion; - } - - /// Accessor for the StaleSec - int32 getStaleSec() const { - return _staleSec; - } - - /// Accessor for the IsSchemaVisible - bool getIsSchemaVisible() const { - return _isSchemaVisible; - } - - /// Accessor for the InvokerRelPath - std::string getInvokerRelPath() const { - return _invokerRelPath; - } - -private: - std::string _providerNamespace; - std::string _providerName; - std::string _providerVersion; - int32 _staleSec; - bool _isSchemaVisible; - std::string _invokerRelPath; - bool _isInitialized; - -private: - CAF_CM_DECLARE_NOCOPY(CProviderRegDoc); -}; - -CAF_DECLARE_SMART_POINTER(CProviderRegDoc); - -} - -#endif diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/ProviderInfraDoc/CSchemaSummaryDoc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/ProviderInfraDoc/CSchemaSummaryDoc.h index 08d3e33c3..e69de29bb 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/ProviderInfraDoc/CSchemaSummaryDoc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/ProviderInfraDoc/CSchemaSummaryDoc.h @@ -1,89 +0,0 @@ -/* - * Author: bwilliams - * Created: April 6, 2012 - * - * 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. - * - */ - -#ifndef CSchemaSummaryDoc_h_ -#define CSchemaSummaryDoc_h_ - -namespace Caf { - -/// A simple container for objects of type SchemaSummary -class CSchemaSummaryDoc { -public: - CSchemaSummaryDoc() : - _isInitialized(false) {} - virtual ~CSchemaSummaryDoc() {} - -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::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; - } - } - -public: - /// Accessor for the ProviderNamespace - std::string getProviderNamespace() const { - return _providerNamespace; - } - - /// Accessor for the ProviderName - std::string getProviderName() const { - return _providerName; - } - - /// Accessor for the ProviderVersion - std::string getProviderVersion() const { - return _providerVersion; - } - - /// Accessor for the ClassCollection - SmartPtrCClassCollectionDoc getClassCollection() const { - return _classCollection; - } - - /// Accessor for the InvokerPath - std::string getInvokerPath() const { - return _invokerPath; - } - -private: - bool _isInitialized; - - std::string _providerNamespace; - std::string _providerName; - std::string _providerVersion; - SmartPtrCClassCollectionDoc _classCollection; - std::string _invokerPath; - -private: - CAF_CM_DECLARE_NOCOPY(CSchemaSummaryDoc); -}; - -CAF_DECLARE_SMART_POINTER(CSchemaSummaryDoc); - -} - -#endif diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/ProviderInfraDoc/ProviderInfraDocInc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/ProviderInfraDoc/ProviderInfraDocInc.h index 7854841ed..e69de29bb 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/ProviderInfraDoc/ProviderInfraDocInc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/ProviderInfraDoc/ProviderInfraDocInc.h @@ -1,16 +0,0 @@ -/* - * Author: bwilliams - * Created: April 6, 2012 - * - * Copyright (c) 2012 Vmware, Inc. All rights reserved. - * -- VMware Confidential - */ - -#ifndef PROVIDERINFRADOCINC_H_ -#define PROVIDERINFRADOCINC_H_ - -#include "CClassCollectionDoc.h" -#include "CProviderRegDoc.h" -#include "CSchemaSummaryDoc.h" - -#endif /* PROVIDERINFRADOCINC_H_ */ diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/ProviderRequestDoc/CProviderBatchDoc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/ProviderRequestDoc/CProviderBatchDoc.h index 595230323..e69de29bb 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/ProviderRequestDoc/CProviderBatchDoc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/ProviderRequestDoc/CProviderBatchDoc.h @@ -1,73 +0,0 @@ -/* - * Author: bwilliams - * Created: April 6, 2012 - * - * 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. - * - */ - -#ifndef CProviderBatchDoc_h_ -#define CProviderBatchDoc_h_ - -namespace Caf { - -/// A simple container for objects of type ProviderBatch -class CProviderBatchDoc { -public: - CProviderBatchDoc() : - _isInitialized(false) {} - virtual ~CProviderBatchDoc() {} - -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::string outputDir, - const SmartPtrCProviderCollectInstancesCollectionDoc collectInstancesCollection, - const SmartPtrCProviderInvokeOperationCollectionDoc invokeOperationCollection) { - if (! _isInitialized) { - _outputDir = outputDir; - _collectInstancesCollection = collectInstancesCollection; - _invokeOperationCollection = invokeOperationCollection; - - _isInitialized = true; - } - } - -public: - /// Accessor for the OutputDir - std::string getOutputDir() const { - return _outputDir; - } - - /// Accessor for the CollectInstancesCollection - SmartPtrCProviderCollectInstancesCollectionDoc getCollectInstancesCollection() const { - return _collectInstancesCollection; - } - - /// Accessor for the InvokeOperationCollection - SmartPtrCProviderInvokeOperationCollectionDoc getInvokeOperationCollection() const { - return _invokeOperationCollection; - } - -private: - bool _isInitialized; - - std::string _outputDir; - SmartPtrCProviderCollectInstancesCollectionDoc _collectInstancesCollection; - SmartPtrCProviderInvokeOperationCollectionDoc _invokeOperationCollection; - -private: - CAF_CM_DECLARE_NOCOPY(CProviderBatchDoc); -}; - -CAF_DECLARE_SMART_POINTER(CProviderBatchDoc); - -} - -#endif diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/ProviderRequestDoc/CProviderCollectInstancesCollectionDoc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/ProviderRequestDoc/CProviderCollectInstancesCollectionDoc.h index f2702147d..e69de29bb 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/ProviderRequestDoc/CProviderCollectInstancesCollectionDoc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/ProviderRequestDoc/CProviderCollectInstancesCollectionDoc.h @@ -1,57 +0,0 @@ -/* - * Author: bwilliams - * Created: April 6, 2012 - * - * 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. - * - */ - -#ifndef CProviderCollectInstancesCollectionDoc_h_ -#define CProviderCollectInstancesCollectionDoc_h_ - -namespace Caf { - -/// A simple container for objects of type ProviderCollectInstancesCollection -class CProviderCollectInstancesCollectionDoc { -public: - CProviderCollectInstancesCollectionDoc() : - _isInitialized(false) {} - 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; - } - } - -public: - /// Accessor for the CollectInstances - std::deque getCollectInstances() const { - return _collectInstances; - } - -private: - bool _isInitialized; - - std::deque _collectInstances; - -private: - CAF_CM_DECLARE_NOCOPY(CProviderCollectInstancesCollectionDoc); -}; - -CAF_DECLARE_SMART_POINTER(CProviderCollectInstancesCollectionDoc); - -} - -#endif diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/ProviderRequestDoc/CProviderCollectInstancesDoc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/ProviderRequestDoc/CProviderCollectInstancesDoc.h index 768ba550d..e69de29bb 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/ProviderRequestDoc/CProviderCollectInstancesDoc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/ProviderRequestDoc/CProviderCollectInstancesDoc.h @@ -1,97 +0,0 @@ -/* - * Author: bwilliams - * Created: April 6, 2012 - * - * 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. - * - */ - -#ifndef CProviderCollectInstancesDoc_h_ -#define CProviderCollectInstancesDoc_h_ - -namespace Caf { - -/// A simple container for objects of type ProviderCollectInstances -class CProviderCollectInstancesDoc { -public: - CProviderCollectInstancesDoc() : - _jobId(CAFCOMMON_GUID_NULL), - _isInitialized(false) {} - virtual ~CProviderCollectInstancesDoc() {} - -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::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; - } - } - -public: - /// Accessor for the ClassNamespace - std::string getClassNamespace() const { - return _classNamespace; - } - - /// Accessor for the ClassName - std::string getClassName() const { - return _className; - } - - /// Accessor for the ClassVersion - std::string getClassVersion() const { - return _classVersion; - } - - /// Accessor for the JobId - UUID getJobId() const { - return _jobId; - } - - /// Accessor for the OutputDir - std::string getOutputDir() const { - return _outputDir; - } - - /// Accessor for the ParameterCollection - SmartPtrCParameterCollectionDoc getParameterCollection() const { - return _parameterCollection; - } - -private: - std::string _classNamespace; - std::string _className; - std::string _classVersion; - UUID _jobId; - std::string _outputDir; - SmartPtrCParameterCollectionDoc _parameterCollection; - bool _isInitialized; - -private: - CAF_CM_DECLARE_NOCOPY(CProviderCollectInstancesDoc); -}; - -CAF_DECLARE_SMART_POINTER(CProviderCollectInstancesDoc); - -} - -#endif diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/ProviderRequestDoc/CProviderCollectSchemaRequestDoc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/ProviderRequestDoc/CProviderCollectSchemaRequestDoc.h index 26d5c5d78..e69de29bb 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/ProviderRequestDoc/CProviderCollectSchemaRequestDoc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/ProviderRequestDoc/CProviderCollectSchemaRequestDoc.h @@ -1,99 +0,0 @@ -/* - * Author: bwilliams - * Created: April 6, 2012 - * - * 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. - * - */ - -#ifndef CProviderCollectSchemaRequestDoc_h_ -#define CProviderCollectSchemaRequestDoc_h_ - -namespace Caf { - -/// A simple container for objects of type ProviderCollectSchemaRequest -class CProviderCollectSchemaRequestDoc { -public: - CProviderCollectSchemaRequestDoc() : - _clientId(CAFCOMMON_GUID_NULL), - _requestId(CAFCOMMON_GUID_NULL), - _jobId(CAFCOMMON_GUID_NULL), - _isInitialized(false) {} - virtual ~CProviderCollectSchemaRequestDoc() {} - -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 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; - } - } - -public: - /// Accessor for the ClientId - UUID getClientId() const { - return _clientId; - } - - /// Accessor for the RequestId - UUID getRequestId() const { - return _requestId; - } - - /// Accessor for the PmeId - std::string getPmeId() const { - return _pmeId; - } - - /// Accessor for the JobId - UUID getJobId() const { - return _jobId; - } - - /// Accessor for the OutputDir - std::string getOutputDir() const { - return _outputDir; - } - - /// Accessor for the RequestHeader - SmartPtrCProviderRequestHeaderDoc getRequestHeader() const { - return _requestHeader; - } - -private: - UUID _clientId; - UUID _requestId; - std::string _pmeId; - UUID _jobId; - std::string _outputDir; - SmartPtrCProviderRequestHeaderDoc _requestHeader; - bool _isInitialized; - -private: - CAF_CM_DECLARE_NOCOPY(CProviderCollectSchemaRequestDoc); -}; - -CAF_DECLARE_SMART_POINTER(CProviderCollectSchemaRequestDoc); - -} - -#endif diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/ProviderRequestDoc/CProviderInvokeOperationCollectionDoc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/ProviderRequestDoc/CProviderInvokeOperationCollectionDoc.h index 903efcd07..e69de29bb 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/ProviderRequestDoc/CProviderInvokeOperationCollectionDoc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/ProviderRequestDoc/CProviderInvokeOperationCollectionDoc.h @@ -1,57 +0,0 @@ -/* - * Author: bwilliams - * Created: April 6, 2012 - * - * 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. - * - */ - -#ifndef CProviderInvokeOperationCollectionDoc_h_ -#define CProviderInvokeOperationCollectionDoc_h_ - -namespace Caf { - -/// A simple container for objects of type ProviderInvokeOperationCollection -class CProviderInvokeOperationCollectionDoc { -public: - CProviderInvokeOperationCollectionDoc() : - _isInitialized(false) {} - 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; - } - } - -public: - /// Accessor for the InvokeOperation - std::deque getInvokeOperation() const { - return _invokeOperation; - } - -private: - bool _isInitialized; - - std::deque _invokeOperation; - -private: - CAF_CM_DECLARE_NOCOPY(CProviderInvokeOperationCollectionDoc); -}; - -CAF_DECLARE_SMART_POINTER(CProviderInvokeOperationCollectionDoc); - -} - -#endif diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/ProviderRequestDoc/CProviderInvokeOperationDoc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/ProviderRequestDoc/CProviderInvokeOperationDoc.h index 1bff3328a..e69de29bb 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/ProviderRequestDoc/CProviderInvokeOperationDoc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/ProviderRequestDoc/CProviderInvokeOperationDoc.h @@ -1,97 +0,0 @@ -/* - * Author: bwilliams - * Created: April 6, 2012 - * - * 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. - * - */ - -#ifndef CProviderInvokeOperationDoc_h_ -#define CProviderInvokeOperationDoc_h_ - -namespace Caf { - -/// A simple container for objects of type ProviderInvokeOperation -class CProviderInvokeOperationDoc { -public: - CProviderInvokeOperationDoc() : - _jobId(CAFCOMMON_GUID_NULL), - _isInitialized(false) {} - virtual ~CProviderInvokeOperationDoc() {} - -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::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; - } - } - -public: - /// Accessor for the ClassNamespace - std::string getClassNamespace() const { - return _classNamespace; - } - - /// Accessor for the ClassName - std::string getClassName() const { - return _className; - } - - /// Accessor for the ClassVersion - std::string getClassVersion() const { - return _classVersion; - } - - /// Accessor for the JobId - UUID getJobId() const { - return _jobId; - } - - /// Accessor for the OutputDir - std::string getOutputDir() const { - return _outputDir; - } - - /// Accessor for the Operation - SmartPtrCOperationDoc getOperation() const { - return _operation; - } - -private: - std::string _classNamespace; - std::string _className; - std::string _classVersion; - UUID _jobId; - std::string _outputDir; - SmartPtrCOperationDoc _operation; - bool _isInitialized; - -private: - CAF_CM_DECLARE_NOCOPY(CProviderInvokeOperationDoc); -}; - -CAF_DECLARE_SMART_POINTER(CProviderInvokeOperationDoc); - -} - -#endif diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/ProviderRequestDoc/CProviderRequestConfigDoc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/ProviderRequestDoc/CProviderRequestConfigDoc.h index ab3b11dce..e69de29bb 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/ProviderRequestDoc/CProviderRequestConfigDoc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/ProviderRequestDoc/CProviderRequestConfigDoc.h @@ -1,65 +0,0 @@ -/* - * Author: bwilliams - * Created: April 6, 2012 - * - * 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. - * - */ - -#ifndef CProviderRequestConfigDoc_h_ -#define CProviderRequestConfigDoc_h_ - -namespace Caf { - -/// A simple container for objects of type ProviderRequestConfig -class CProviderRequestConfigDoc { -public: - CProviderRequestConfigDoc() : - _isInitialized(false) {} - virtual ~CProviderRequestConfigDoc() {} - -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::string responseFormatType, - const SmartPtrCLoggingLevelCollectionDoc loggingLevelCollection) { - if (! _isInitialized) { - _responseFormatType = responseFormatType; - _loggingLevelCollection = loggingLevelCollection; - - _isInitialized = true; - } - } - -public: - /// Accessor for the ResponseFormatType - std::string getResponseFormatType() const { - return _responseFormatType; - } - - /// Accessor for the LoggingLevelCollection - SmartPtrCLoggingLevelCollectionDoc getLoggingLevelCollection() const { - return _loggingLevelCollection; - } - -private: - bool _isInitialized; - - std::string _responseFormatType; - SmartPtrCLoggingLevelCollectionDoc _loggingLevelCollection; - -private: - CAF_CM_DECLARE_NOCOPY(CProviderRequestConfigDoc); -}; - -CAF_DECLARE_SMART_POINTER(CProviderRequestConfigDoc); - -} - -#endif diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/ProviderRequestDoc/CProviderRequestDoc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/ProviderRequestDoc/CProviderRequestDoc.h index d82777a6f..e69de29bb 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/ProviderRequestDoc/CProviderRequestDoc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/ProviderRequestDoc/CProviderRequestDoc.h @@ -1,98 +0,0 @@ -/* - * Author: bwilliams - * Created: April 6, 2012 - * - * 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. - * - */ - -#ifndef CProviderRequestDoc_h_ -#define CProviderRequestDoc_h_ - -namespace Caf { - -/// A simple container for objects of type ProviderRequest -class CProviderRequestDoc { -public: - CProviderRequestDoc() : - _clientId(CAFCOMMON_GUID_NULL), - _requestId(CAFCOMMON_GUID_NULL), - _isInitialized(false) {} - virtual ~CProviderRequestDoc() {} - -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 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; - } - } - -public: - /// Accessor for the ClientId - UUID getClientId() const { - return _clientId; - } - - /// Accessor for the RequestId - UUID getRequestId() const { - return _requestId; - } - - /// Accessor for the PmeId - std::string getPmeId() const { - return _pmeId; - } - - /// Accessor for the RequestHeader - SmartPtrCProviderRequestHeaderDoc getRequestHeader() const { - return _requestHeader; - } - - /// Accessor for the Batch - SmartPtrCProviderBatchDoc getBatch() const { - return _batch; - } - - /// Accessor for the AttachmentCollection - SmartPtrCAttachmentCollectionDoc getAttachmentCollection() const { - return _attachmentCollection; - } - -private: - UUID _clientId; - UUID _requestId; - std::string _pmeId; - SmartPtrCProviderRequestHeaderDoc _requestHeader; - SmartPtrCProviderBatchDoc _batch; - SmartPtrCAttachmentCollectionDoc _attachmentCollection; - bool _isInitialized; - -private: - CAF_CM_DECLARE_NOCOPY(CProviderRequestDoc); -}; - -CAF_DECLARE_SMART_POINTER(CProviderRequestDoc); - -} - -#endif diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/ProviderRequestDoc/CProviderRequestHeaderDoc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/ProviderRequestDoc/CProviderRequestHeaderDoc.h index e7f2d7d99..e69de29bb 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/ProviderRequestDoc/CProviderRequestHeaderDoc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/ProviderRequestDoc/CProviderRequestHeaderDoc.h @@ -1,65 +0,0 @@ -/* - * Author: bwilliams - * Created: April 6, 2012 - * - * 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. - * - */ - -#ifndef CProviderRequestHeaderDoc_h_ -#define CProviderRequestHeaderDoc_h_ - -namespace Caf { - -/// A simple container for objects of type ProviderRequestHeader -class CProviderRequestHeaderDoc { -public: - CProviderRequestHeaderDoc() : - _isInitialized(false) {} - virtual ~CProviderRequestHeaderDoc() {} - -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 SmartPtrCProviderRequestConfigDoc requestConfig, - const SmartPtrCPropertyCollectionDoc echoPropertyBag) { - if (! _isInitialized) { - _requestConfig = requestConfig; - _echoPropertyBag = echoPropertyBag; - - _isInitialized = true; - } - } - -public: - /// Accessor for the RequestConfig - SmartPtrCProviderRequestConfigDoc getRequestConfig() const { - return _requestConfig; - } - - /// Accessor for the EchoPropertyBag - SmartPtrCPropertyCollectionDoc getEchoPropertyBag() const { - return _echoPropertyBag; - } - -private: - bool _isInitialized; - - SmartPtrCProviderRequestConfigDoc _requestConfig; - SmartPtrCPropertyCollectionDoc _echoPropertyBag; - -private: - CAF_CM_DECLARE_NOCOPY(CProviderRequestHeaderDoc); -}; - -CAF_DECLARE_SMART_POINTER(CProviderRequestHeaderDoc); - -} - -#endif diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/ProviderRequestDoc/ProviderRequestDocInc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/ProviderRequestDoc/ProviderRequestDocInc.h index 9cbda8397..e69de29bb 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/ProviderRequestDoc/ProviderRequestDocInc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/ProviderRequestDoc/ProviderRequestDocInc.h @@ -1,26 +0,0 @@ -/* - * Author: bwilliams - * Created: April 6, 2012 - * - * Copyright (c) 2012 Vmware, Inc. All rights reserved. - * -- VMware Confidential - */ - -#ifndef PROVIDERREQUESTDOCINC_H_ -#define PROVIDERREQUESTDOCINC_H_ - -#include "CProviderCollectInstancesDoc.h" -#include "CProviderCollectInstancesCollectionDoc.h" - -#include "CProviderInvokeOperationDoc.h" -#include "CProviderInvokeOperationCollectionDoc.h" - -#include "CProviderRequestConfigDoc.h" -#include "CProviderRequestHeaderDoc.h" - -#include "CProviderBatchDoc.h" - -#include "CProviderRequestDoc.h" -#include "CProviderCollectSchemaRequestDoc.h" - -#endif /* PROVIDERREQUESTDOCINC_H_ */ diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/ProviderResultsDoc/CCdifDoc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/ProviderResultsDoc/CCdifDoc.h index aaf397342..e69de29bb 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/ProviderResultsDoc/CCdifDoc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/ProviderResultsDoc/CCdifDoc.h @@ -1,73 +0,0 @@ -/* - * Author: bwilliams - * Created: April 6, 2012 - * - * 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. - * - */ - -#ifndef CCdifDoc_h_ -#define CCdifDoc_h_ - -namespace Caf { - -/// A simple container for objects of type Cdif -class CCdifDoc { -public: - CCdifDoc() : - _isInitialized(false) {} - virtual ~CCdifDoc() {} - -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 SmartPtrCRequestIdentifierDoc requestIdentifier, - const SmartPtrCDefinitionObjectCollectionDoc definitionObjectCollection, - const SmartPtrCSchemaDoc schema) { - if (! _isInitialized) { - _requestIdentifier = requestIdentifier; - _definitionObjectCollection = definitionObjectCollection; - _schema = schema; - - _isInitialized = true; - } - } - -public: - /// Accessor for the RequestIdentifier - SmartPtrCRequestIdentifierDoc getRequestIdentifier() const { - return _requestIdentifier; - } - - /// Accessor for the DefinitionObjectCollection - SmartPtrCDefinitionObjectCollectionDoc getDefinitionObjectCollection() const { - return _definitionObjectCollection; - } - - /// Accessor for the Schema - SmartPtrCSchemaDoc getSchema() const { - return _schema; - } - -private: - bool _isInitialized; - - SmartPtrCRequestIdentifierDoc _requestIdentifier; - SmartPtrCDefinitionObjectCollectionDoc _definitionObjectCollection; - SmartPtrCSchemaDoc _schema; - -private: - CAF_CM_DECLARE_NOCOPY(CCdifDoc); -}; - -CAF_DECLARE_SMART_POINTER(CCdifDoc); - -} - -#endif diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/ProviderResultsDoc/CDefinitionObjectCollectionDoc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/ProviderResultsDoc/CDefinitionObjectCollectionDoc.h index b56dcc55b..e69de29bb 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/ProviderResultsDoc/CDefinitionObjectCollectionDoc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/ProviderResultsDoc/CDefinitionObjectCollectionDoc.h @@ -1,57 +0,0 @@ -/* - * Author: bwilliams - * Created: April 6, 2012 - * - * 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. - * - */ - -#ifndef CDefinitionObjectCollectionDoc_h_ -#define CDefinitionObjectCollectionDoc_h_ - -namespace Caf { - -/// Set of elements containing data returned as a result of a provider collection or action -class CDefinitionObjectCollectionDoc { -public: - CDefinitionObjectCollectionDoc() : - _isInitialized(false) {} - 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; - } - } - -public: - /// Accessor for the Value - std::deque getValue() const { - return _value; - } - -private: - bool _isInitialized; - - std::deque _value; - -private: - CAF_CM_DECLARE_NOCOPY(CDefinitionObjectCollectionDoc); -}; - -CAF_DECLARE_SMART_POINTER(CDefinitionObjectCollectionDoc); - -} - -#endif diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/ProviderResultsDoc/CRequestIdentifierDoc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/ProviderResultsDoc/CRequestIdentifierDoc.h index 673fbfb21..e69de29bb 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/ProviderResultsDoc/CRequestIdentifierDoc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/ProviderResultsDoc/CRequestIdentifierDoc.h @@ -1,100 +0,0 @@ -/* - * Author: bwilliams - * Created: April 6, 2012 - * - * 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. - * - */ - -#ifndef CRequestIdentifierDoc_h_ -#define CRequestIdentifierDoc_h_ - -namespace Caf { - -/// Fields that allow client to determine which request resulted in this response document -class CRequestIdentifierDoc { -public: - CRequestIdentifierDoc() : - _clientId(CAFCOMMON_GUID_NULL), - _requestId(CAFCOMMON_GUID_NULL), - _jobId(CAFCOMMON_GUID_NULL), - _sessionId(CAFCOMMON_GUID_NULL), - _isInitialized(false) {} - virtual ~CRequestIdentifierDoc() {} - -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 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; - } - } - -public: - /// Accessor for the ClientId - UUID getClientId() const { - return _clientId; - } - - /// Accessor for the RequestId - UUID getRequestId() const { - return _requestId; - } - - /// Accessor for the PmeId - std::string getPmeId() const { - return _pmeId; - } - - /// Identifier of the specific job within the request - UUID getJobId() const { - return _jobId; - } - - /// Accessor for the ActionClass - SmartPtrCActionClassDoc getActionClass() const { - return _actionClass; - } - - /// Client-configurable identifier that is opaque (not used) by the Common Agent Framework - UUID getSessionId() const { - return _sessionId; - } - -private: - UUID _clientId; - UUID _requestId; - std::string _pmeId; - UUID _jobId; - SmartPtrCActionClassDoc _actionClass; - UUID _sessionId; - bool _isInitialized; - -private: - CAF_CM_DECLARE_NOCOPY(CRequestIdentifierDoc); -}; - -CAF_DECLARE_SMART_POINTER(CRequestIdentifierDoc); - -} - -#endif diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/ProviderResultsDoc/CSchemaDoc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/ProviderResultsDoc/CSchemaDoc.h index 77058e3ec..e69de29bb 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/ProviderResultsDoc/CSchemaDoc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/ProviderResultsDoc/CSchemaDoc.h @@ -1,81 +0,0 @@ -/* - * Author: bwilliams - * Created: April 6, 2012 - * - * 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. - * - */ - -#ifndef CSchemaDoc_h_ -#define CSchemaDoc_h_ - -namespace Caf { - -/// Set of elements describing the objects that can be generated by the provider -class CSchemaDoc { -public: - CSchemaDoc() : - _isInitialized(false) {} - virtual ~CSchemaDoc() {} - -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 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; - } - } - -public: - /// Accessor for the DataClassCollection - std::deque getDataClassCollection() const { - return _dataClassCollection; - } - - /// Accessor for the ActionClassCollection - std::deque getActionClassCollection() const { - return _actionClassCollection; - } - - /// Accessor for the LogicalRelationshipCollection - std::deque getLogicalRelationshipCollection() const { - return _logicalRelationshipCollection; - } - - /// Accessor for the PhysicalRelationshipCollection - std::deque getPhysicalRelationshipCollection() const { - return _physicalRelationshipCollection; - } - -private: - bool _isInitialized; - - std::deque _dataClassCollection; - std::deque _actionClassCollection; - std::deque _logicalRelationshipCollection; - std::deque _physicalRelationshipCollection; - -private: - CAF_CM_DECLARE_NOCOPY(CSchemaDoc); -}; - -CAF_DECLARE_SMART_POINTER(CSchemaDoc); - -} - -#endif diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/ProviderResultsDoc/ProviderResultsDocInc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/ProviderResultsDoc/ProviderResultsDocInc.h index 867cd7a61..e69de29bb 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/ProviderResultsDoc/ProviderResultsDocInc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/ProviderResultsDoc/ProviderResultsDocInc.h @@ -1,17 +0,0 @@ -/* - * Author: bwilliams - * Created: April 6, 2012 - * - * Copyright (c) 2012 Vmware, Inc. All rights reserved. - * -- VMware Confidential - */ - -#ifndef PROVIDERRESULTSDOCINC_H_ -#define PROVIDERRESULTSDOCINC_H_ - -#include "CDefinitionObjectCollectionDoc.h" -#include "CRequestIdentifierDoc.h" -#include "CSchemaDoc.h" -#include "CCdifDoc.h" - -#endif /* PROVIDERRESULTSDOCINC_H_ */ diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/ResponseDoc/CErrorResponseDoc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/ResponseDoc/CErrorResponseDoc.h index 6422f24b4..e69de29bb 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/ResponseDoc/CErrorResponseDoc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/ResponseDoc/CErrorResponseDoc.h @@ -1,90 +0,0 @@ -/* - * Author: bwilliams - * Created: April 6, 2012 - * - * 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. - * - */ - -#ifndef CErrorResponseDoc_h_ -#define CErrorResponseDoc_h_ - -namespace Caf { - -/// A simple container for objects of type ErrorResponse -class CErrorResponseDoc { -public: - CErrorResponseDoc() : - _clientId(CAFCOMMON_GUID_NULL), - _requestId(CAFCOMMON_GUID_NULL), - _isInitialized(false) {} - virtual ~CErrorResponseDoc() {} - -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 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; - } - } - -public: - /// Accessor for the ClientId - UUID getClientId() const { - return _clientId; - } - - /// Accessor for the RequestId - UUID getRequestId() const { - return _requestId; - } - - /// Accessor for the PmeId - std::string getPmeId() const { - return _pmeId; - } - - /// Accessor for the Response Header - SmartPtrCResponseHeaderDoc getResponseHeader() const { - return _responseHeader; - } - - /// Accessor for the ErrorMessage - std::string getErrorMessage() const { - return _errorMessage; - } - -private: - UUID _clientId; - UUID _requestId; - std::string _pmeId; - SmartPtrCResponseHeaderDoc _responseHeader; - std::string _errorMessage; - bool _isInitialized; - -private: - CAF_CM_DECLARE_NOCOPY(CErrorResponseDoc); -}; - -CAF_DECLARE_SMART_POINTER(CErrorResponseDoc); - -} - -#endif diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/ResponseDoc/CEventKeyCollectionDoc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/ResponseDoc/CEventKeyCollectionDoc.h index 81408cfe9..e69de29bb 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/ResponseDoc/CEventKeyCollectionDoc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/ResponseDoc/CEventKeyCollectionDoc.h @@ -1,57 +0,0 @@ -/* - * Author: bwilliams - * Created: April 6, 2012 - * - * 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. - * - */ - -#ifndef CEventKeyCollectionDoc_h_ -#define CEventKeyCollectionDoc_h_ - -namespace Caf { - -/// A simple container for objects of type EventKeyCollection -class CEventKeyCollectionDoc { -public: - CEventKeyCollectionDoc() : - _isInitialized(false) {} - 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; - } - } - -public: - /// Accessor for the EventKey - std::deque getEventKey() const { - return _eventKey; - } - -private: - bool _isInitialized; - - std::deque _eventKey; - -private: - CAF_CM_DECLARE_NOCOPY(CEventKeyCollectionDoc); -}; - -CAF_DECLARE_SMART_POINTER(CEventKeyCollectionDoc); - -} - -#endif diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/ResponseDoc/CEventKeyDoc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/ResponseDoc/CEventKeyDoc.h index 663d278ce..e69de29bb 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/ResponseDoc/CEventKeyDoc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/ResponseDoc/CEventKeyDoc.h @@ -1,65 +0,0 @@ -/* - * Author: bwilliams - * Created: April 6, 2012 - * - * 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. - * - */ - -#ifndef CEventKeyDoc_h_ -#define CEventKeyDoc_h_ - -namespace Caf { - -/// A simple container for objects of type EventKey -class CEventKeyDoc { -public: - CEventKeyDoc() : - _isInitialized(false) {} - virtual ~CEventKeyDoc() {} - -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::string name, - const std::string value) { - if (! _isInitialized) { - _name = name; - _value = value; - - _isInitialized = true; - } - } - -public: - /// Accessor for the Name - std::string getName() const { - return _name; - } - - /// Accessor for the Value - std::string getValue() const { - return _value; - } - -private: - bool _isInitialized; - - std::string _name; - std::string _value; - -private: - CAF_CM_DECLARE_NOCOPY(CEventKeyDoc); -}; - -CAF_DECLARE_SMART_POINTER(CEventKeyDoc); - -} - -#endif diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/ResponseDoc/CEventManifestDoc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/ResponseDoc/CEventManifestDoc.h index a9a1ea6dd..e69de29bb 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/ResponseDoc/CEventManifestDoc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/ResponseDoc/CEventManifestDoc.h @@ -1,89 +0,0 @@ -/* - * Author: bwilliams - * Created: April 6, 2012 - * - * 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. - * - */ - -#ifndef CEventManifestDoc_h_ -#define CEventManifestDoc_h_ - -namespace Caf { - -/// A simple container for objects of type EventManifest -class CEventManifestDoc { -public: - CEventManifestDoc() : - _isInitialized(false) {} - virtual ~CEventManifestDoc() {} - -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::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; - } - } - -public: - /// Accessor for the ClassNamespace - std::string getClassNamespace() const { - return _classNamespace; - } - - /// Accessor for the ClassName - std::string getClassName() const { - return _className; - } - - /// Accessor for the ClassVersion - std::string getClassVersion() const { - return _classVersion; - } - - /// Accessor for the OperationName - std::string getOperationName() const { - return _operationName; - } - - /// Accessor for the AttachmentCollection - SmartPtrCAttachmentCollectionDoc getAttachmentCollection() const { - return _attachmentCollection; - } - -private: - bool _isInitialized; - - std::string _classNamespace; - std::string _className; - std::string _classVersion; - std::string _operationName; - SmartPtrCAttachmentCollectionDoc _attachmentCollection; - -private: - CAF_CM_DECLARE_NOCOPY(CEventManifestDoc); -}; - -CAF_DECLARE_SMART_POINTER(CEventManifestDoc); - -} - -#endif diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/ResponseDoc/CManifestCollectionDoc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/ResponseDoc/CManifestCollectionDoc.h index 005c3ad12..e69de29bb 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/ResponseDoc/CManifestCollectionDoc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/ResponseDoc/CManifestCollectionDoc.h @@ -1,57 +0,0 @@ -/* - * Author: bwilliams - * Created: April 6, 2012 - * - * 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. - * - */ - -#ifndef CManifestCollectionDoc_h_ -#define CManifestCollectionDoc_h_ - -namespace Caf { - -/// A simple container for objects of type ManifestCollection -class CManifestCollectionDoc { -public: - CManifestCollectionDoc() : - _isInitialized(false) {} - 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; - } - } - -public: - /// Accessor for the Manifest - std::deque getManifest() const { - return _manifest; - } - -private: - bool _isInitialized; - - std::deque _manifest; - -private: - CAF_CM_DECLARE_NOCOPY(CManifestCollectionDoc); -}; - -CAF_DECLARE_SMART_POINTER(CManifestCollectionDoc); - -} - -#endif diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/ResponseDoc/CManifestDoc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/ResponseDoc/CManifestDoc.h index 767c6383d..e69de29bb 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/ResponseDoc/CManifestDoc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/ResponseDoc/CManifestDoc.h @@ -1,97 +0,0 @@ -/* - * Author: bwilliams - * Created: April 6, 2012 - * - * 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. - * - */ - -#ifndef CManifestDoc_h_ -#define CManifestDoc_h_ - -namespace Caf { - -/// A simple container for objects of type Manifest -class CManifestDoc { -public: - CManifestDoc() : - _jobId(CAFCOMMON_GUID_NULL), - _isInitialized(false) {} - virtual ~CManifestDoc() {} - -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::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; - } - } - -public: - /// Accessor for the ClassNamespace - std::string getClassNamespace() const { - return _classNamespace; - } - - /// Accessor for the ClassName - std::string getClassName() const { - return _className; - } - - /// Accessor for the ClassVersion - std::string getClassVersion() const { - return _classVersion; - } - - /// Accessor for the JobId - UUID getJobId() const { - return _jobId; - } - - /// Accessor for the OperationName - std::string getOperationName() const { - return _operationName; - } - - /// Accessor for the AttachmentNameCollection - SmartPtrCAttachmentNameCollectionDoc getAttachmentNameCollection() const { - return _attachmentNameCollection; - } - -private: - std::string _classNamespace; - std::string _className; - std::string _classVersion; - UUID _jobId; - std::string _operationName; - SmartPtrCAttachmentNameCollectionDoc _attachmentNameCollection; - bool _isInitialized; - -private: - CAF_CM_DECLARE_NOCOPY(CManifestDoc); -}; - -CAF_DECLARE_SMART_POINTER(CManifestDoc); - -} - -#endif diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/ResponseDoc/CProviderEventResponseDoc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/ResponseDoc/CProviderEventResponseDoc.h index 90ed428f8..e69de29bb 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/ResponseDoc/CProviderEventResponseDoc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/ResponseDoc/CProviderEventResponseDoc.h @@ -1,89 +0,0 @@ -/* - * Author: bwilliams - * Created: April 6, 2012 - * - * 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. - * - */ - -#ifndef CProviderEventResponseDoc_h_ -#define CProviderEventResponseDoc_h_ - -namespace Caf { - -/// A simple container for objects of type ProviderEventResponse -class CProviderEventResponseDoc { -public: - CProviderEventResponseDoc() : - _isInitialized(false) {} - virtual ~CProviderEventResponseDoc() {} - -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::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; - } - } - -public: - /// Accessor for the PmeId - std::string getPmeId() const { - return _pmeId; - } - - /// Accessor for the ResponseHeader - SmartPtrCResponseHeaderDoc getResponseHeader() const { - return _responseHeader; - } - - /// Accessor for the Manifest - SmartPtrCEventManifestDoc getManifest() const { - return _manifest; - } - - /// Accessor for the EventKeyCollection - SmartPtrCEventKeyCollectionDoc getEventKeyCollection() const { - return _eventKeyCollection; - } - - /// Accessor for the Statistics - SmartPtrCStatisticsDoc getStatistics() const { - return _statistics; - } - -private: - bool _isInitialized; - - std::string _pmeId; - SmartPtrCResponseHeaderDoc _responseHeader; - SmartPtrCEventManifestDoc _manifest; - SmartPtrCEventKeyCollectionDoc _eventKeyCollection; - SmartPtrCStatisticsDoc _statistics; - -private: - CAF_CM_DECLARE_NOCOPY(CProviderEventResponseDoc); -}; - -CAF_DECLARE_SMART_POINTER(CProviderEventResponseDoc); - -} - -#endif diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/ResponseDoc/CProviderResponseDoc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/ResponseDoc/CProviderResponseDoc.h index 84b8b5b76..e69de29bb 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/ResponseDoc/CProviderResponseDoc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/ResponseDoc/CProviderResponseDoc.h @@ -1,106 +0,0 @@ -/* - * Author: bwilliams - * Created: April 6, 2012 - * - * 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. - * - */ - -#ifndef CProviderResponseDoc_h_ -#define CProviderResponseDoc_h_ - -namespace Caf { - -/// A simple container for objects of type ProviderResponse -class CProviderResponseDoc { -public: - CProviderResponseDoc() : - _clientId(CAFCOMMON_GUID_NULL), - _requestId(CAFCOMMON_GUID_NULL), - _isInitialized(false) {} - virtual ~CProviderResponseDoc() {} - -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 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; - } - } - -public: - /// Accessor for the ClientId - UUID getClientId() const { - return _clientId; - } - - /// Accessor for the RequestId - UUID getRequestId() const { - return _requestId; - } - - /// Accessor for the PmeId - std::string getPmeId() const { - return _pmeId; - } - - /// Accessor for the ResponseHeader - SmartPtrCResponseHeaderDoc getResponseHeader() const { - return _responseHeader; - } - - /// Accessor for the Manifest - SmartPtrCManifestDoc getManifest() const { - return _manifest; - } - - /// Accessor for the AttachmentCollection - SmartPtrCAttachmentCollectionDoc getAttachmentCollection() const { - return _attachmentCollection; - } - - /// Accessor for the Statistics - SmartPtrCStatisticsDoc getStatistics() const { - return _statistics; - } - -private: - UUID _clientId; - UUID _requestId; - std::string _pmeId; - SmartPtrCResponseHeaderDoc _responseHeader; - SmartPtrCManifestDoc _manifest; - SmartPtrCAttachmentCollectionDoc _attachmentCollection; - SmartPtrCStatisticsDoc _statistics; - bool _isInitialized; - -private: - CAF_CM_DECLARE_NOCOPY(CProviderResponseDoc); -}; - -CAF_DECLARE_SMART_POINTER(CProviderResponseDoc); - -} - -#endif diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/ResponseDoc/CResponseDoc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/ResponseDoc/CResponseDoc.h index 79df7f1cc..e69de29bb 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/ResponseDoc/CResponseDoc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/ResponseDoc/CResponseDoc.h @@ -1,106 +0,0 @@ -/* - * Author: bwilliams - * Created: April 6, 2012 - * - * 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. - * - */ - -#ifndef CResponseDoc_h_ -#define CResponseDoc_h_ - -namespace Caf { - -/// A simple container for objects of type Response -class CResponseDoc { -public: - CResponseDoc() : - _clientId(CAFCOMMON_GUID_NULL), - _requestId(CAFCOMMON_GUID_NULL), - _isInitialized(false) {} - virtual ~CResponseDoc() {} - -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 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; - } - } - -public: - /// Accessor for the ClientId - UUID getClientId() const { - return _clientId; - } - - /// Accessor for the RequestId - UUID getRequestId() const { - return _requestId; - } - - /// Accessor for the PmeId - std::string getPmeId() const { - return _pmeId; - } - - /// Accessor for the ManifestCollection - SmartPtrCResponseHeaderDoc getResponseHeader() const { - return _responseHeader; - } - - /// Accessor for the ManifestCollection - SmartPtrCManifestCollectionDoc getManifestCollection() const { - return _manifestCollection; - } - - /// Accessor for the AttachmentCollection - SmartPtrCAttachmentCollectionDoc getAttachmentCollection() const { - return _attachmentCollection; - } - - /// Accessor for the Statistics - SmartPtrCStatisticsDoc getStatistics() const { - return _statistics; - } - -private: - UUID _clientId; - UUID _requestId; - std::string _pmeId; - SmartPtrCResponseHeaderDoc _responseHeader; - SmartPtrCManifestCollectionDoc _manifestCollection; - SmartPtrCAttachmentCollectionDoc _attachmentCollection; - SmartPtrCStatisticsDoc _statistics; - bool _isInitialized; - -private: - CAF_CM_DECLARE_NOCOPY(CResponseDoc); -}; - -CAF_DECLARE_SMART_POINTER(CResponseDoc); - -} - -#endif diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/ResponseDoc/CResponseHeaderDoc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/ResponseDoc/CResponseHeaderDoc.h index 4e9655d96..e69de29bb 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/ResponseDoc/CResponseHeaderDoc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/ResponseDoc/CResponseHeaderDoc.h @@ -1,91 +0,0 @@ -/* - * Author: bwilliams - * Created: April 6, 2012 - * - * 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. - * - */ - -#ifndef CResponseHeaderDoc_h_ -#define CResponseHeaderDoc_h_ - -namespace Caf { - -/// A simple container for objects of type ResponseHeader -class CResponseHeaderDoc { -public: - CResponseHeaderDoc() : - _sequenceNumber(0), - _isFinalResponse(true), - _sessionId(CAFCOMMON_GUID_NULL), - _isInitialized(false) {} - virtual ~CResponseHeaderDoc() {} - -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::string version = "1.0", - 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; - } - } - -public: - /// Accessor for the version - std::string getVersion() const { - return _version; - } - - /// Accessor for the date/time when the request was created - std::string getCreatedDateTime() const { - return _createdDateTime; - } - - /// Accessor for the sequenceNumber - uint32 getSequenceNumber() const { - return _sequenceNumber; - } - - /// Accessor for the version - bool getIsFinalResponse() const { - return _isFinalResponse; - } - - /// Accessor for the session ID - UUID getSessionId() const { - return _sessionId; - } - -private: - std::string _version; - std::string _createdDateTime; - uint32 _sequenceNumber; - bool _isFinalResponse; - UUID _sessionId; - bool _isInitialized; - -private: - CAF_CM_DECLARE_NOCOPY(CResponseHeaderDoc); -}; - -CAF_DECLARE_SMART_POINTER(CResponseHeaderDoc); - -} - -#endif diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/ResponseDoc/ResponseDocInc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/ResponseDoc/ResponseDocInc.h index 2dedce9e9..e69de29bb 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/ResponseDoc/ResponseDocInc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/ResponseDoc/ResponseDocInc.h @@ -1,25 +0,0 @@ -/* - * Author: bwilliams - * Created: April 6, 2012 - * - * Copyright (c) 2012 Vmware, Inc. All rights reserved. - * -- VMware Confidential - */ - -#ifndef RESPONSEDOCINC_H_ -#define RESPONSEDOCINC_H_ - -#include "CEventKeyDoc.h" -#include "CEventKeyCollectionDoc.h" - -#include "CManifestDoc.h" -#include "CManifestCollectionDoc.h" - -#include "CResponseHeaderDoc.h" -#include "CErrorResponseDoc.h" -#include "CEventManifestDoc.h" -#include "CProviderEventResponseDoc.h" -#include "CProviderResponseDoc.h" -#include "CResponseDoc.h" - -#endif /* RESPONSEDOCINC_H_ */ diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/SchemaTypesDoc/CActionClassDoc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/SchemaTypesDoc/CActionClassDoc.h index 4a3e71142..e69de29bb 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/SchemaTypesDoc/CActionClassDoc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/SchemaTypesDoc/CActionClassDoc.h @@ -1,105 +0,0 @@ -/* - * Author: bwilliams - * Created: April 6, 2012 - * - * 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. - * - */ - -#ifndef CActionClassDoc_h_ -#define CActionClassDoc_h_ - -namespace Caf { - -/// Definition of an action class that may be generated by the provider -class CActionClassDoc { -public: - CActionClassDoc() : - _isInitialized(false) {} - virtual ~CActionClassDoc() {} - -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::string namespaceVal, - const std::string name, - const std::string version, - 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; - } - } - -public: - /// Accessor for the NamespaceVal - std::string getNamespaceVal() const { - return _namespaceVal; - } - - /// Accessor for the Name - std::string getName() const { - return _name; - } - - /// Accessor for the Version - std::string getVersion() const { - return _version; - } - - /// Accessor for the CollectMethod - SmartPtrCCollectMethodDoc getCollectMethod() const { - return _collectMethod; - } - - /// Accessor for the Method - std::deque getMethodCollection() const { - return _methodCollection; - } - - /// A hint as to what this class should be called when displaying it to a human - std::string getDisplayName() const { - return _displayName; - } - - /// A phrase to describe the class for mouse-over text, etc - std::string getDescription() const { - return _description; - } - -private: - bool _isInitialized; - - std::string _namespaceVal; - std::string _name; - std::string _version; - SmartPtrCCollectMethodDoc _collectMethod; - std::deque _methodCollection; - std::string _displayName; - std::string _description; - -private: - CAF_CM_DECLARE_NOCOPY(CActionClassDoc); -}; - -CAF_DECLARE_SMART_POINTER(CActionClassDoc); - -} - -#endif diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/SchemaTypesDoc/CActionClassInstanceCollectionDoc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/SchemaTypesDoc/CActionClassInstanceCollectionDoc.h index fc6ffcd8b..e69de29bb 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/SchemaTypesDoc/CActionClassInstanceCollectionDoc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/SchemaTypesDoc/CActionClassInstanceCollectionDoc.h @@ -1,57 +0,0 @@ -/* - * Author: bwilliams - * Created: April 6, 2012 - * - * 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. - * - */ - -#ifndef CActionClassInstanceCollectionDoc_h_ -#define CActionClassInstanceCollectionDoc_h_ - -namespace Caf { - -/// A simple container for objects of type ActionClassInstanceCollection -class CActionClassInstanceCollectionDoc { -public: - CActionClassInstanceCollectionDoc() : - _isInitialized(false) {} - 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; - } - } - -public: - /// Accessor for the ActionClassInstance - std::deque getActionClassInstanceCollection() const { - return _actionClassInstanceCollection; - } - -private: - bool _isInitialized; - - std::deque _actionClassInstanceCollection; - -private: - CAF_CM_DECLARE_NOCOPY(CActionClassInstanceCollectionDoc); -}; - -CAF_DECLARE_SMART_POINTER(CActionClassInstanceCollectionDoc); - -} - -#endif diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/SchemaTypesDoc/CActionClassInstanceDoc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/SchemaTypesDoc/CActionClassInstanceDoc.h index f0641ea0b..e69de29bb 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/SchemaTypesDoc/CActionClassInstanceDoc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/SchemaTypesDoc/CActionClassInstanceDoc.h @@ -1,81 +0,0 @@ -/* - * Author: bwilliams - * Created: April 6, 2012 - * - * 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. - * - */ - -#ifndef CActionClassInstanceDoc_h_ -#define CActionClassInstanceDoc_h_ - -namespace Caf { - -/// A simple container for objects of type ActionClassInstance -class CActionClassInstanceDoc { -public: - CActionClassInstanceDoc() : - _isInitialized(false) {} - virtual ~CActionClassInstanceDoc() {} - -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::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; - } - } - -public: - /// Accessor for the NamespaceVal - std::string getNamespaceVal() const { - return _namespaceVal; - } - - /// Accessor for the Name - std::string getName() const { - return _name; - } - - /// Accessor for the Version - std::string getVersion() const { - return _version; - } - - /// Accessor for the InstanceOperationCollection - SmartPtrCInstanceOperationCollectionDoc getInstanceOperationCollection() const { - return _instanceOperationCollection; - } - -private: - bool _isInitialized; - - std::string _namespaceVal; - std::string _name; - std::string _version; - SmartPtrCInstanceOperationCollectionDoc _instanceOperationCollection; - -private: - CAF_CM_DECLARE_NOCOPY(CActionClassInstanceDoc); -}; - -CAF_DECLARE_SMART_POINTER(CActionClassInstanceDoc); - -} - -#endif diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/SchemaTypesDoc/CClassCardinalityDoc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/SchemaTypesDoc/CClassCardinalityDoc.h index 10d37b2bb..e69de29bb 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/SchemaTypesDoc/CClassCardinalityDoc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/SchemaTypesDoc/CClassCardinalityDoc.h @@ -1,81 +0,0 @@ -/* - * Author: bwilliams - * Created: April 6, 2012 - * - * 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. - * - */ - -#ifndef CClassCardinalityDoc_h_ -#define CClassCardinalityDoc_h_ - -namespace Caf { - -/// Class description of one end of a relationship -class CClassCardinalityDoc { -public: - CClassCardinalityDoc() : - _isInitialized(false) {} - virtual ~CClassCardinalityDoc() {} - -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::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; - } - } - -public: - /// Accessor for the NamespaceVal - std::string getNamespaceVal() const { - return _namespaceVal; - } - - /// Accessor for the Name - std::string getName() const { - return _name; - } - - /// Accessor for the Version - std::string getVersion() const { - return _version; - } - - /// Cardinality of one end relationship, i.e. has one, has many, etc - std::string getCardinality() const { - return _cardinality; - } - -private: - bool _isInitialized; - - std::string _namespaceVal; - std::string _name; - std::string _version; - std::string _cardinality; - -private: - CAF_CM_DECLARE_NOCOPY(CClassCardinalityDoc); -}; - -CAF_DECLARE_SMART_POINTER(CClassCardinalityDoc); - -} - -#endif diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/SchemaTypesDoc/CClassFieldDoc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/SchemaTypesDoc/CClassFieldDoc.h index 47752eb52..e69de29bb 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/SchemaTypesDoc/CClassFieldDoc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/SchemaTypesDoc/CClassFieldDoc.h @@ -1,81 +0,0 @@ -/* - * Author: bwilliams - * Created: April 6, 2012 - * - * 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. - * - */ - -#ifndef CClassFieldDoc_h_ -#define CClassFieldDoc_h_ - -namespace Caf { - -/// Description of a class and the field used to identify one end of a relationship -class CClassFieldDoc { -public: - CClassFieldDoc() : - _isInitialized(false) {} - virtual ~CClassFieldDoc() {} - -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::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; - } - } - -public: - /// Accessor for the NamespaceVal - std::string getNamespaceVal() const { - return _namespaceVal; - } - - /// Accessor for the Name - std::string getName() const { - return _name; - } - - /// Accessor for the Version - std::string getVersion() const { - return _version; - } - - /// Description of a class field used to identify one end of a relationship - std::string getField() const { - return _field; - } - -private: - bool _isInitialized; - - std::string _namespaceVal; - std::string _name; - std::string _version; - std::string _field; - -private: - CAF_CM_DECLARE_NOCOPY(CClassFieldDoc); -}; - -CAF_DECLARE_SMART_POINTER(CClassFieldDoc); - -} - -#endif diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/SchemaTypesDoc/CClassIdentifierDoc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/SchemaTypesDoc/CClassIdentifierDoc.h index 7764f0260..e69de29bb 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/SchemaTypesDoc/CClassIdentifierDoc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/SchemaTypesDoc/CClassIdentifierDoc.h @@ -1,73 +0,0 @@ -/* - * Author: bwilliams - * Created: April 6, 2012 - * - * 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. - * - */ - -#ifndef CClassIdentifierDoc_h_ -#define CClassIdentifierDoc_h_ - -namespace Caf { - -/// Tuple of values to uniquely identify a class -class CClassIdentifierDoc { -public: - CClassIdentifierDoc() : - _isInitialized(false) {} - virtual ~CClassIdentifierDoc() {} - -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::string namespaceVal, - const std::string name, - const std::string version) { - if (! _isInitialized) { - _namespaceVal = namespaceVal; - _name = name; - _version = version; - - _isInitialized = true; - } - } - -public: - /// Accessor for the NamespaceVal - std::string getNamespaceVal() const { - return _namespaceVal; - } - - /// Accessor for the Name - std::string getName() const { - return _name; - } - - /// Accessor for the Version - std::string getVersion() const { - return _version; - } - -private: - bool _isInitialized; - - std::string _namespaceVal; - std::string _name; - std::string _version; - -private: - CAF_CM_DECLARE_NOCOPY(CClassIdentifierDoc); -}; - -CAF_DECLARE_SMART_POINTER(CClassIdentifierDoc); - -} - -#endif diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/SchemaTypesDoc/CClassInstancePropertyDoc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/SchemaTypesDoc/CClassInstancePropertyDoc.h index dd68090a9..e69de29bb 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/SchemaTypesDoc/CClassInstancePropertyDoc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/SchemaTypesDoc/CClassInstancePropertyDoc.h @@ -1,107 +0,0 @@ -/* - * Author: bwilliams - * Created: April 6, 2012 - * - * 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. - * - */ - -#ifndef CClassInstancePropertyDoc_h_ -#define CClassInstancePropertyDoc_h_ - -namespace Caf { - -/// Definition of an attribute (field) of a class -class CClassInstancePropertyDoc { -public: - CClassInstancePropertyDoc() : - _required(false), - _transientVal(false), - _list(false), - _isInitialized(false) {} - virtual ~CClassInstancePropertyDoc() {} - -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::string name, - const std::deque type, - const bool required = false, - 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; - } - } - -public: - /// Property name - std::string getName() const { - return _name; - } - - /// Accessor for the Type - std::deque getType() const { - return _type; - } - - /// Whether this is a required property, i.e. this property must always be non-empty - bool getRequired() const { - return _required; - } - - /// Accessor for the TransientVal - bool getTransientVal() const { - return _transientVal; - } - - /// Indicates whether to expect a list of properties in the provider response - bool getList() const { - return _list; - } - - /// A hint as to what this property should be called when displaying it to a human - std::string getDisplayName() const { - return _displayName; - } - - /// A phrase to describe the property for mouse-over text, etc - std::string getDescription() const { - return _description; - } - -private: - std::string _name; - std::deque _type; - bool _required; - bool _transientVal; - bool _list; - std::string _displayName; - std::string _description; - bool _isInitialized; - -private: - CAF_CM_DECLARE_NOCOPY(CClassInstancePropertyDoc); -}; - -CAF_DECLARE_SMART_POINTER(CClassInstancePropertyDoc); - -} - -#endif diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/SchemaTypesDoc/CClassPropertyDoc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/SchemaTypesDoc/CClassPropertyDoc.h index b3058e290..e69de29bb 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/SchemaTypesDoc/CClassPropertyDoc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/SchemaTypesDoc/CClassPropertyDoc.h @@ -1,167 +0,0 @@ -/* - * Author: bwilliams - * Created: April 6, 2012 - * - * 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. - * - */ - -#ifndef CClassPropertyDoc_h_ -#define CClassPropertyDoc_h_ - -namespace Caf { - -/// Definition of an attribute (field) of a class -class CClassPropertyDoc { -public: - CClassPropertyDoc() : - _type(PROPERTY_NONE), - _required(false), - _key(false), - _list(false), - _caseSensitive(false), - _transientVal(false), - _validator(VALIDATOR_NONE), - _isInitialized(false) {} - virtual ~CClassPropertyDoc() {} - -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::string name, - const PROPERTY_TYPE type, - const std::deque value, - const bool required = false, - const bool key = false, - const bool list = false, - const bool caseSensitive = false, - const bool transientVal = false, - const std::string defaultVal = std::string(), - const VALIDATOR_TYPE validator = VALIDATOR_NONE, - 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; - } - } - -public: - /// Property name - std::string getName() const { - return _name; - } - - /// Describes the data type of the property - PROPERTY_TYPE getType() const { - return _type; - } - - /// The contents of a validator used on this property - std::deque getValue() const { - return _value; - } - - /// Whether this is a required property, i.e. this property must always be non-empty - bool getRequired() const { - return _required; - } - - /// Indicates this property may be used as a key identifying field - bool getKey() const { - return _key; - } - - /// Indicates whether to expect a list of properties in the provider response - bool getList() const { - return _list; - } - - /// Indicates whether a string field should be treated in a case-sensitive manner - bool getCaseSensitive() const { - return _caseSensitive; - } - - /// Accessor for the TransientVal - bool getTransientVal() const { - return _transientVal; - } - - /// Accessor for the DefaultVal - std::string getDefaultVal() const { - return _defaultVal; - } - - /// The type of validator described in the 'value' sub-elements - VALIDATOR_TYPE 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 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 getLowerRange() const { - return _lowerRange; - } - - /// A hint as to what this property should be called when displaying it to a human - std::string getDisplayName() const { - return _displayName; - } - - /// A phrase to describe the property for mouse-over text, etc - std::string getDescription() const { - return _description; - } - -private: - std::string _name; - PROPERTY_TYPE _type; - std::deque _value; - bool _required; - bool _key; - bool _list; - bool _caseSensitive; - bool _transientVal; - std::string _defaultVal; - VALIDATOR_TYPE _validator; - std::string _upperRange; - std::string _lowerRange; - std::string _displayName; - std::string _description; - bool _isInitialized; - -private: - CAF_CM_DECLARE_NOCOPY(CClassPropertyDoc); -}; - -CAF_DECLARE_SMART_POINTER(CClassPropertyDoc); - -} - -#endif diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/SchemaTypesDoc/CCmdlMetadataDoc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/SchemaTypesDoc/CCmdlMetadataDoc.h index 8b05cdd57..e69de29bb 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/SchemaTypesDoc/CCmdlMetadataDoc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/SchemaTypesDoc/CCmdlMetadataDoc.h @@ -1,65 +0,0 @@ -/* - * Author: bwilliams - * Created: April 6, 2012 - * - * 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. - * - */ - -#ifndef CCmdlMetadataDoc_h_ -#define CCmdlMetadataDoc_h_ - -namespace Caf { - -/// A simple container for objects of type CmdlMetadata -class CCmdlMetadataDoc { -public: - CCmdlMetadataDoc() : - _isInitialized(false) {} - virtual ~CCmdlMetadataDoc() {} - -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::string name, - const std::string value) { - if (! _isInitialized) { - _name = name; - _value = value; - - _isInitialized = true; - } - } - -public: - /// Accessor for the Name - std::string getName() const { - return _name; - } - - /// Accessor for the Value - std::string getValue() const { - return _value; - } - -private: - bool _isInitialized; - - std::string _name; - std::string _value; - -private: - CAF_CM_DECLARE_NOCOPY(CCmdlMetadataDoc); -}; - -CAF_DECLARE_SMART_POINTER(CCmdlMetadataDoc); - -} - -#endif diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/SchemaTypesDoc/CCmdlUnionDoc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/SchemaTypesDoc/CCmdlUnionDoc.h index b6d22c637..e69de29bb 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/SchemaTypesDoc/CCmdlUnionDoc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/SchemaTypesDoc/CCmdlUnionDoc.h @@ -1,73 +0,0 @@ -/* - * Author: bwilliams - * Created: April 6, 2012 - * - * 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. - * - */ - -#ifndef CCmdlUnionDoc_h_ -#define CCmdlUnionDoc_h_ - -namespace Caf { - -/// A simple container for objects of type CmdlUnion -class CCmdlUnionDoc { -public: - CCmdlUnionDoc() : - _isInitialized(false) {} - virtual ~CCmdlUnionDoc() {} - -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::string namespaceVal, - const std::string name, - const std::string version) { - if (! _isInitialized) { - _namespaceVal = namespaceVal; - _name = name; - _version = version; - - _isInitialized = true; - } - } - -public: - /// Accessor for the NamespaceVal - std::string getNamespaceVal() const { - return _namespaceVal; - } - - /// Accessor for the Name - std::string getName() const { - return _name; - } - - /// Accessor for the Version - std::string getVersion() const { - return _version; - } - -private: - bool _isInitialized; - - std::string _namespaceVal; - std::string _name; - std::string _version; - -private: - CAF_CM_DECLARE_NOCOPY(CCmdlUnionDoc); -}; - -CAF_DECLARE_SMART_POINTER(CCmdlUnionDoc); - -} - -#endif diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/SchemaTypesDoc/CCollectMethodDoc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/SchemaTypesDoc/CCollectMethodDoc.h index df9d238d3..e69de29bb 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/SchemaTypesDoc/CCollectMethodDoc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/SchemaTypesDoc/CCollectMethodDoc.h @@ -1,97 +0,0 @@ -/* - * Author: bwilliams - * Created: April 6, 2012 - * - * 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. - * - */ - -#ifndef CCollectMethodDoc_h_ -#define CCollectMethodDoc_h_ - -namespace Caf { - -/// Definition of a collection method on a class -class CCollectMethodDoc { -public: - CCollectMethodDoc() : - _isInitialized(false) {} - virtual ~CCollectMethodDoc() {} - -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::string name, - const std::deque parameterCollection = std::deque(), - 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; - } - } - -public: - /// name of the collection method - std::string getName() const { - return _name; - } - - /// Definition of a parameter that passes simple types to the collection method - std::deque getParameterCollection() const { - return _parameterCollection; - } - - /// Definition of a parameter passing data class instances to the collection method - std::deque getInstanceParameterCollection() const { - return _instanceParameterCollection; - } - - /// Accessor for the ReturnVal - std::deque getReturnValCollection() const { - return _returnValCollection; - } - - /// Accessor for the EventVal - std::deque getEventValCollection() const { - return _eventValCollection; - } - - /// A class that may be returned to indicate an error occurred during the processing of the collection method - std::deque getErrorCollection() const { - return _errorCollection; - } - -private: - bool _isInitialized; - - std::string _name; - std::deque _parameterCollection; - std::deque _instanceParameterCollection; - std::deque _returnValCollection; - std::deque _eventValCollection; - std::deque _errorCollection; - -private: - CAF_CM_DECLARE_NOCOPY(CCollectMethodDoc); -}; - -CAF_DECLARE_SMART_POINTER(CCollectMethodDoc); - -} - -#endif diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/SchemaTypesDoc/CDataClassDoc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/SchemaTypesDoc/CDataClassDoc.h index ace402e80..e69de29bb 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/SchemaTypesDoc/CDataClassDoc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/SchemaTypesDoc/CDataClassDoc.h @@ -1,122 +0,0 @@ -/* - * Author: bwilliams - * Created: April 6, 2012 - * - * 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. - * - */ - -#ifndef CDataClassDoc_h_ -#define CDataClassDoc_h_ - -namespace Caf { - -/// Definition of a data class that may be generated by the provider -class CDataClassDoc { -public: - CDataClassDoc() : - _unique(false), - _transientVal(false), - _isInitialized(false) {} - virtual ~CDataClassDoc() {} - -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::string namespaceVal, - const std::string name, - const std::string version, - const std::deque propertyCollection = std::deque(), - const std::deque instancePropertyCollection = std::deque(), - 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; - } - } - -public: - /// Accessor for the NamespaceVal - std::string getNamespaceVal() const { - return _namespaceVal; - } - - /// Accessor for the Name - std::string getName() const { - return _name; - } - - /// Accessor for the Version - std::string getVersion() const { - return _version; - } - - /// Accessor for the Property - std::deque getPropertyCollection() const { - return _propertyCollection; - } - - /// Accessor for the InstanceProperty - std::deque 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 getUnique() const { - return _unique; - } - - /// Accessor for the TransientVal - bool getTransientVal() const { - return _transientVal; - } - - /// A hint as to what this class should be called when displaying it to a human - std::string getDisplayName() const { - return _displayName; - } - - /// A phrase to describe the class for mouse-over text, etc - std::string getDescription() const { - return _description; - } - -private: - std::string _namespaceVal; - std::string _name; - std::string _version; - std::deque _propertyCollection; - std::deque _instancePropertyCollection; - bool _unique; - bool _transientVal; - std::string _displayName; - std::string _description; - bool _isInitialized; - -private: - CAF_CM_DECLARE_NOCOPY(CDataClassDoc); -}; - -CAF_DECLARE_SMART_POINTER(CDataClassDoc); - -} - -#endif diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/SchemaTypesDoc/CDataClassInstanceCollectionDoc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/SchemaTypesDoc/CDataClassInstanceCollectionDoc.h index ed360f873..e69de29bb 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/SchemaTypesDoc/CDataClassInstanceCollectionDoc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/SchemaTypesDoc/CDataClassInstanceCollectionDoc.h @@ -1,57 +0,0 @@ -/* - * Author: bwilliams - * Created: April 6, 2012 - * - * 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. - * - */ - -#ifndef CDataClassInstanceCollectionDoc_h_ -#define CDataClassInstanceCollectionDoc_h_ - -namespace Caf { - -/// A simple container for objects of type DataClassInstanceCollection -class CDataClassInstanceCollectionDoc { -public: - CDataClassInstanceCollectionDoc() : - _isInitialized(false) {} - 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; - } - } - -public: - /// Accessor for the DataClassInstance - std::deque getDataClassInstanceCollection() const { - return _dataClassInstanceCollection; - } - -private: - bool _isInitialized; - - std::deque _dataClassInstanceCollection; - -private: - CAF_CM_DECLARE_NOCOPY(CDataClassInstanceCollectionDoc); -}; - -CAF_DECLARE_SMART_POINTER(CDataClassInstanceCollectionDoc); - -} - -#endif diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/SchemaTypesDoc/CDataClassInstanceDoc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/SchemaTypesDoc/CDataClassInstanceDoc.h index 72c187904..e69de29bb 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/SchemaTypesDoc/CDataClassInstanceDoc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/SchemaTypesDoc/CDataClassInstanceDoc.h @@ -1,105 +0,0 @@ -/* - * Author: bwilliams - * Created: April 6, 2012 - * - * 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. - * - */ - -#ifndef CDataClassInstanceDoc_h_ -#define CDataClassInstanceDoc_h_ - -namespace Caf { - -/// A simple container for objects of type DataClassInstance -class CDataClassInstanceDoc { -public: - CDataClassInstanceDoc() : - _isInitialized(false) {} - virtual ~CDataClassInstanceDoc() {} - -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::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; - } - } - -public: - /// Accessor for the NamespaceVal - std::string getNamespaceVal() const { - return _namespaceVal; - } - - /// Accessor for the Name - std::string getName() const { - return _name; - } - - /// Accessor for the Version - std::string getVersion() const { - return _version; - } - - /// Accessor for the CmdlMetadata - std::deque getCmdlMetadataCollection() const { - return _cmdlMetadataCollection; - } - - /// Accessor for the Property - std::deque getPropertyCollection() const { - return _propertyCollection; - } - - /// Accessor for the InstanceProperty - std::deque getInstancePropertyCollection() const { - return _instancePropertyCollection; - } - - /// Accessor for the CmdlUnion - SmartPtrCCmdlUnionDoc getCmdlUnion() const { - return _cmdlUnion; - } - -private: - bool _isInitialized; - - std::string _namespaceVal; - std::string _name; - std::string _version; - std::deque _cmdlMetadataCollection; - std::deque _propertyCollection; - std::deque _instancePropertyCollection; - SmartPtrCCmdlUnionDoc _cmdlUnion; - -private: - CAF_CM_DECLARE_NOCOPY(CDataClassInstanceDoc); -}; - -CAF_DECLARE_SMART_POINTER(CDataClassInstanceDoc); - -} - -#endif diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/SchemaTypesDoc/CDataClassPropertyDoc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/SchemaTypesDoc/CDataClassPropertyDoc.h index 4ba19082b..e69de29bb 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/SchemaTypesDoc/CDataClassPropertyDoc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/SchemaTypesDoc/CDataClassPropertyDoc.h @@ -1,73 +0,0 @@ -/* - * Author: bwilliams - * Created: April 6, 2012 - * - * 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. - * - */ - -#ifndef CDataClassPropertyDoc_h_ -#define CDataClassPropertyDoc_h_ - -namespace Caf { - -/// A simple container for objects of type DataClassProperty -class CDataClassPropertyDoc { -public: - CDataClassPropertyDoc() : - _isInitialized(false) {} - virtual ~CDataClassPropertyDoc() {} - -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::string name, - const std::deque cmdlMetadata, - const std::string value) { - if (! _isInitialized) { - _name = name; - _cmdlMetadata = cmdlMetadata; - _value = value; - - _isInitialized = true; - } - } - -public: - /// Accessor for the Name - std::string getName() const { - return _name; - } - - /// Accessor for the CmdlMetadata - std::deque getCmdlMetadata() const { - return _cmdlMetadata; - } - - /// Accessor for the Value - std::string getValue() const { - return _value; - } - -private: - bool _isInitialized; - - std::string _name; - std::deque _cmdlMetadata; - std::string _value; - -private: - CAF_CM_DECLARE_NOCOPY(CDataClassPropertyDoc); -}; - -CAF_DECLARE_SMART_POINTER(CDataClassPropertyDoc); - -} - -#endif diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/SchemaTypesDoc/CDataClassSubInstanceDoc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/SchemaTypesDoc/CDataClassSubInstanceDoc.h index b4137c9c2..e69de29bb 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/SchemaTypesDoc/CDataClassSubInstanceDoc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/SchemaTypesDoc/CDataClassSubInstanceDoc.h @@ -1,89 +0,0 @@ -/* - * Author: bwilliams - * Created: April 6, 2012 - * - * 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. - * - */ - -#ifndef CDataClassSubInstanceDoc_h_ -#define CDataClassSubInstanceDoc_h_ - -namespace Caf { - -/// A simple container for objects of type DataClassSubInstance -class CDataClassSubInstanceDoc { -public: - CDataClassSubInstanceDoc() : - _isInitialized(false) {} - virtual ~CDataClassSubInstanceDoc() {} - -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::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; - } - } - -public: - /// Accessor for the Name - std::string getName() const { - return _name; - } - - /// Accessor for the CmdlMetadata - std::deque getCmdlMetadataCollection() const { - return _cmdlMetadataCollection; - } - - /// Accessor for the Property - std::deque getPropertyCollection() const { - return _propertyCollection; - } - - /// Accessor for the InstanceProperty - std::deque getInstancePropertyCollection() const { - return _instancePropertyCollection; - } - - /// Accessor for the CmdlUnion - SmartPtrCCmdlUnionDoc getCmdlUnion() const { - return _cmdlUnion; - } - -private: - bool _isInitialized; - - std::string _name; - std::deque _cmdlMetadataCollection; - std::deque _propertyCollection; - std::deque _instancePropertyCollection; - SmartPtrCCmdlUnionDoc _cmdlUnion; - -private: - CAF_CM_DECLARE_NOCOPY(CDataClassSubInstanceDoc); -}; - -CAF_DECLARE_SMART_POINTER(CDataClassSubInstanceDoc); - -} - -#endif diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/SchemaTypesDoc/CInstanceOperationCollectionDoc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/SchemaTypesDoc/CInstanceOperationCollectionDoc.h index 5309585dd..e69de29bb 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/SchemaTypesDoc/CInstanceOperationCollectionDoc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/SchemaTypesDoc/CInstanceOperationCollectionDoc.h @@ -1,57 +0,0 @@ -/* - * Author: bwilliams - * Created: April 6, 2012 - * - * 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. - * - */ - -#ifndef CInstanceOperationCollectionDoc_h_ -#define CInstanceOperationCollectionDoc_h_ - -namespace Caf { - -/// A simple container for objects of type InstanceOperationCollection -class CInstanceOperationCollectionDoc { -public: - CInstanceOperationCollectionDoc() : - _isInitialized(false) {} - 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; - } - } - -public: - /// Accessor for the InstanceOperation - std::deque getInstanceOperationCollection() const { - return _instanceOperationCollection; - } - -private: - bool _isInitialized; - - std::deque _instanceOperationCollection; - -private: - CAF_CM_DECLARE_NOCOPY(CInstanceOperationCollectionDoc); -}; - -CAF_DECLARE_SMART_POINTER(CInstanceOperationCollectionDoc); - -} - -#endif diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/SchemaTypesDoc/CInstanceOperationDoc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/SchemaTypesDoc/CInstanceOperationDoc.h index d65004590..e69de29bb 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/SchemaTypesDoc/CInstanceOperationDoc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/SchemaTypesDoc/CInstanceOperationDoc.h @@ -1,65 +0,0 @@ -/* - * Author: bwilliams - * Created: April 6, 2012 - * - * 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. - * - */ - -#ifndef CInstanceOperationDoc_h_ -#define CInstanceOperationDoc_h_ - -namespace Caf { - -/// A simple container for objects of type InstanceOperation -class CInstanceOperationDoc { -public: - CInstanceOperationDoc() : - _isInitialized(false) {} - virtual ~CInstanceOperationDoc() {} - -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::string operationName, - const std::string moniker) { - if (! _isInitialized) { - _operationName = operationName; - _moniker = moniker; - - _isInitialized = true; - } - } - -public: - /// Accessor for the OperationName - std::string getOperationName() const { - return _operationName; - } - - /// Accessor for the Moniker - std::string getMoniker() const { - return _moniker; - } - -private: - bool _isInitialized; - - std::string _operationName; - std::string _moniker; - -private: - CAF_CM_DECLARE_NOCOPY(CInstanceOperationDoc); -}; - -CAF_DECLARE_SMART_POINTER(CInstanceOperationDoc); - -} - -#endif diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/SchemaTypesDoc/CInstanceParameterDoc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/SchemaTypesDoc/CInstanceParameterDoc.h index 241f2f160..e69de29bb 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/SchemaTypesDoc/CInstanceParameterDoc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/SchemaTypesDoc/CInstanceParameterDoc.h @@ -1,114 +0,0 @@ -/* - * Author: bwilliams - * Created: April 6, 2012 - * - * 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. - * - */ - -#ifndef CInstanceParameterDoc_h_ -#define CInstanceParameterDoc_h_ - -namespace Caf { - -/// A parameter containing a data class instance used by a method to control the outcome -class CInstanceParameterDoc { -public: - CInstanceParameterDoc() : - _isOptional(false), - _isList(false), - _isInitialized(false) {} - virtual ~CInstanceParameterDoc() {} - -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::string name, - const std::string instanceNamespace, - const std::string instanceName, - const std::string instanceVersion, - 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; - } - } - -public: - /// Name of parameter - std::string getName() const { - return _name; - } - - /// Namespace of instance object type - std::string getInstanceNamespace() const { - return _instanceNamespace; - } - - /// Name of instance object type - std::string getInstanceName() const { - return _instanceName; - } - - /// Version of instance object type - std::string getInstanceVersion() const { - return _instanceVersion; - } - - /// Indicates this parameter need not be passed - bool 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 getIsList() const { - return _isList; - } - - /// Human-readable version of the parameter name - std::string getDisplayName() const { - return _displayName; - } - - /// Short description of what the parameter is for - std::string getDescription() const { - return _description; - } - -private: - std::string _name; - std::string _instanceNamespace; - std::string _instanceName; - std::string _instanceVersion; - bool _isOptional; - bool _isList; - std::string _displayName; - std::string _description; - bool _isInitialized; - -private: - CAF_CM_DECLARE_NOCOPY(CInstanceParameterDoc); -}; - -CAF_DECLARE_SMART_POINTER(CInstanceParameterDoc); - -} - -#endif diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/SchemaTypesDoc/CJoinTypeDoc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/SchemaTypesDoc/CJoinTypeDoc.h index da3c172d6..e69de29bb 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/SchemaTypesDoc/CJoinTypeDoc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/SchemaTypesDoc/CJoinTypeDoc.h @@ -1,81 +0,0 @@ -/* - * Author: bwilliams - * Created: April 6, 2012 - * - * 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. - * - */ - -#ifndef CJoinTypeDoc_h_ -#define CJoinTypeDoc_h_ - -namespace Caf { - -/// A simple container for objects of type JoinType -class CJoinTypeDoc { -public: - CJoinTypeDoc() : - _operand(OPERATOR_NONE), - _isInitialized(false) {} - virtual ~CJoinTypeDoc() {} - -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 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; - } - } - -public: - /// Defines the operand used to join the class fields. Restricted to '=' for now - OPERATOR_TYPE getOperand() const { - return _operand; - } - - /// Identifies the fields on classes that uniquely identify relationship - SmartPtrCClassFieldDoc getDataClassLeft() const { - return _dataClassLeft; - } - - /// Identifies the fields on classes that uniquely identify relationship - SmartPtrCClassFieldDoc getDataClassRight() const { - return _dataClassRight; - } - - /// A short human-readable description of the join - std::string getDescription() const { - return _description; - } - -private: - OPERATOR_TYPE _operand; - SmartPtrCClassFieldDoc _dataClassLeft; - SmartPtrCClassFieldDoc _dataClassRight; - std::string _description; - bool _isInitialized; - -private: - CAF_CM_DECLARE_NOCOPY(CJoinTypeDoc); -}; - -CAF_DECLARE_SMART_POINTER(CJoinTypeDoc); - -} - -#endif diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/SchemaTypesDoc/CLogicalRelationshipDoc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/SchemaTypesDoc/CLogicalRelationshipDoc.h index af3da625a..e69de29bb 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/SchemaTypesDoc/CLogicalRelationshipDoc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/SchemaTypesDoc/CLogicalRelationshipDoc.h @@ -1,113 +0,0 @@ -/* - * Author: bwilliams - * Created: April 6, 2012 - * - * 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. - * - */ - -#ifndef CLogicalRelationshipDoc_h_ -#define CLogicalRelationshipDoc_h_ - -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 { -public: - CLogicalRelationshipDoc() : - _arity(ARITY_NONE), - _isInitialized(false) {} - virtual ~CLogicalRelationshipDoc() {} - -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::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 = std::string()) { - if (! _isInitialized) { - _namespaceVal = namespaceVal; - _name = name; - _version = version; - _arity = arity; - _dataClassLeft = dataClassLeft; - _dataClassRight = dataClassRight; - _joinCollection = joinCollection; - _description = description; - - _isInitialized = true; - } - } - -public: - /// Accessor for the NamespaceVal - std::string getNamespaceVal() const { - return _namespaceVal; - } - - /// Accessor for the Name - std::string getName() const { - return _name; - } - - /// Accessor for the Version - std::string getVersion() const { - return _version; - } - - /// Accessor for the Arity - ARITY_TYPE getArity() const { - return _arity; - } - - /// Accessor for the DataClassLeft - SmartPtrCClassCardinalityDoc getDataClassLeft() const { - return _dataClassLeft; - } - - /// Accessor for the DataClassRight - SmartPtrCClassCardinalityDoc getDataClassRight() const { - return _dataClassRight; - } - - /// Defines a join condition of the relationship - std::deque getJoinCollection() const { - return _joinCollection; - } - - /// Accessor for the Description - std::string getDescription() const { - return _description; - } - -private: - std::string _namespaceVal; - std::string _name; - std::string _version; - ARITY_TYPE _arity; - SmartPtrCClassCardinalityDoc _dataClassLeft; - SmartPtrCClassCardinalityDoc _dataClassRight; - std::deque _joinCollection; - std::string _description; - bool _isInitialized; - -private: - CAF_CM_DECLARE_NOCOPY(CLogicalRelationshipDoc); -}; - -CAF_DECLARE_SMART_POINTER(CLogicalRelationshipDoc); - -} - -#endif diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/SchemaTypesDoc/CMethodDoc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/SchemaTypesDoc/CMethodDoc.h index eeb0c200e..e69de29bb 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/SchemaTypesDoc/CMethodDoc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/SchemaTypesDoc/CMethodDoc.h @@ -1,113 +0,0 @@ -/* - * Author: bwilliams - * Created: April 6, 2012 - * - * 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. - * - */ - -#ifndef CMethodDoc_h_ -#define CMethodDoc_h_ - -namespace Caf { - -/// Definition of a method on a class -class CMethodDoc { -public: - CMethodDoc() : - _isInitialized(false) {} - virtual ~CMethodDoc() {} - -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::string name, - const std::deque parameterCollection = std::deque(), - const std::deque instanceParameterCollection = std::deque(), - const std::deque returnValCollection = std::deque(), - 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; - } - } - -public: - /// name of the method - std::string getName() const { - return _name; - } - - /// Definition of a parameter that passes simple types to the method - std::deque getParameterCollection() const { - return _parameterCollection; - } - - /// Definition of a parameter that passes data class instances to the method - std::deque getInstanceParameterCollection() const { - return _instanceParameterCollection; - } - - /// Accessor for the ReturnVal - std::deque getReturnValCollection() const { - return _returnValCollection; - } - - /// Accessor for the EventVal - std::deque getEventValCollection() const { - return _eventValCollection; - } - - /// A class that may be returned to indicate an error occurred during the processing of the collection method - std::deque getErrorCollection() const { - return _errorCollection; - } - - /// Human-readable version of the method name - std::string getDisplayName() const { - return _displayName; - } - - /// A short phrase describing the purpose of the method - std::string getDescription() const { - return _description; - } - -private: - bool _isInitialized; - - std::string _name; - std::deque _parameterCollection; - std::deque _instanceParameterCollection; - std::deque _returnValCollection; - std::deque _eventValCollection; - std::deque _errorCollection; - std::string _displayName; - std::string _description; - -private: - CAF_CM_DECLARE_NOCOPY(CMethodDoc); -}; - -CAF_DECLARE_SMART_POINTER(CMethodDoc); - -} - -#endif diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/SchemaTypesDoc/CMethodParameterDoc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/SchemaTypesDoc/CMethodParameterDoc.h index a351cd0c0..e69de29bb 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/SchemaTypesDoc/CMethodParameterDoc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/SchemaTypesDoc/CMethodParameterDoc.h @@ -1,107 +0,0 @@ -/* - * Author: bwilliams - * Created: April 6, 2012 - * - * 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. - * - */ - -#ifndef CMethodParameterDoc_h_ -#define CMethodParameterDoc_h_ - -namespace Caf { - -/// A parameter containing a simple type used by a method to control the outcome -class CMethodParameterDoc { -public: - CMethodParameterDoc() : - _type(PARAMETER_NONE), - _isOptional(false), - _isList(false), - _isInitialized(false) {} - virtual ~CMethodParameterDoc() {} - -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::string name, - const PARAMETER_TYPE type, - const bool isOptional = false, - 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; - } - } - -public: - /// Name of parameter - std::string getName() const { - return _name; - } - - /// Describes the data type of the property - PARAMETER_TYPE getType() const { - return _type; - } - - /// Indicates this parameter need not be passed - bool 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 getIsList() const { - return _isList; - } - - /// Accessor for the DefaultVal - std::string getDefaultVal() const { - return _defaultVal; - } - - /// Human-readable version of the parameter name - std::string getDisplayName() const { - return _displayName; - } - - /// Short description of what the parameter is for - std::string getDescription() const { - return _description; - } - -private: - std::string _name; - PARAMETER_TYPE _type; - bool _isOptional; - bool _isList; - std::string _defaultVal; - std::string _displayName; - std::string _description; - bool _isInitialized; - -private: - CAF_CM_DECLARE_NOCOPY(CMethodParameterDoc); -}; - -CAF_DECLARE_SMART_POINTER(CMethodParameterDoc); - -} - -#endif diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/SchemaTypesDoc/CPhysicalRelationshipDoc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/SchemaTypesDoc/CPhysicalRelationshipDoc.h index 4f17e66e6..e69de29bb 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/SchemaTypesDoc/CPhysicalRelationshipDoc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/SchemaTypesDoc/CPhysicalRelationshipDoc.h @@ -1,105 +0,0 @@ -/* - * Author: bwilliams - * Created: April 6, 2012 - * - * 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. - * - */ - -#ifndef CPhysicalRelationshipDoc_h_ -#define CPhysicalRelationshipDoc_h_ - -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 { -public: - CPhysicalRelationshipDoc() : - _arity(ARITY_NONE), - _isInitialized(false) {} - virtual ~CPhysicalRelationshipDoc() {} - -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::string namespaceVal, - const std::string name, - const std::string version, - 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; - } - } - -public: - /// Accessor for the NamespaceVal - std::string getNamespaceVal() const { - return _namespaceVal; - } - - /// Accessor for the Name - std::string getName() const { - return _name; - } - - /// Accessor for the Version - std::string getVersion() const { - return _version; - } - - /// Accessor for the Arity - ARITY_TYPE getArity() const { - return _arity; - } - - /// Accessor for the DataClassLeft - SmartPtrCClassCardinalityDoc getDataClassLeft() const { - return _dataClassLeft; - } - - /// Accessor for the DataClassRight - SmartPtrCClassCardinalityDoc getDataClassRight() const { - return _dataClassRight; - } - - /// Accessor for the Description - std::string getDescription() const { - return _description; - } - -private: - std::string _namespaceVal; - std::string _name; - std::string _version; - ARITY_TYPE _arity; - SmartPtrCClassCardinalityDoc _dataClassLeft; - SmartPtrCClassCardinalityDoc _dataClassRight; - std::string _description; - bool _isInitialized; - -private: - CAF_CM_DECLARE_NOCOPY(CPhysicalRelationshipDoc); -}; - -CAF_DECLARE_SMART_POINTER(CPhysicalRelationshipDoc); - -} - -#endif diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/SchemaTypesDoc/CRelationshipDoc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/SchemaTypesDoc/CRelationshipDoc.h index c541ed2d2..e69de29bb 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/SchemaTypesDoc/CRelationshipDoc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/SchemaTypesDoc/CRelationshipDoc.h @@ -1,106 +0,0 @@ -/* - * Author: bwilliams - * Created: April 6, 2012 - * - * 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. - * - */ - -#ifndef CRelationshipDoc_h_ -#define CRelationshipDoc_h_ - -namespace Caf { - -/// Definition of a relationship between data classes -class CRelationshipDoc { -public: - CRelationshipDoc() : - _arity(ARITY_NONE), - _isInitialized(false) {} - virtual ~CRelationshipDoc() {} - -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::string namespaceVal, - const std::string name, - const std::string version, - 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; - } - } - -public: - /// Accessor for the NamespaceVal - std::string getNamespaceVal() const { - return _namespaceVal; - } - - /// Accessor for the Name - std::string getName() const { - return _name; - } - - /// Accessor for the Version - std::string getVersion() const { - return _version; - } - - /// Number of parts (sides) to relationship. Restricted to a two-sided relationship for now - ARITY_TYPE getArity() const { - return _arity; - } - - /// Identifies the two classes that make up the relationship - SmartPtrCClassCardinalityDoc getDataClassLeft() const { - return _dataClassLeft; - } - - /// Identifies the two classes that make up the relationship - SmartPtrCClassCardinalityDoc getDataClassRight() const { - return _dataClassRight; - } - - /// A short human-readable description of the relationship - std::string getDescription() const { - return _description; - } - -private: - std::string _namespaceVal; - std::string _name; - std::string _version; - ARITY_TYPE _arity; - SmartPtrCClassCardinalityDoc _dataClassLeft; - SmartPtrCClassCardinalityDoc _dataClassRight; - std::string _description; - bool _isInitialized; - - -private: - CAF_CM_DECLARE_NOCOPY(CRelationshipDoc); -}; - -CAF_DECLARE_SMART_POINTER(CRelationshipDoc); - -} - -#endif diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/SchemaTypesDoc/SchemaTypesDocInc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/SchemaTypesDoc/SchemaTypesDocInc.h index 986c4c9f3..e69de29bb 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/SchemaTypesDoc/SchemaTypesDocInc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Doc/SchemaTypesDoc/SchemaTypesDocInc.h @@ -1,69 +0,0 @@ -/* - * Author: bwilliams - * Created: April 6, 2012 - * - * Copyright (c) 2012 Vmware, Inc. All rights reserved. - * -- VMware Confidential - */ - -#ifndef SCHEMATYPESDOCINC_H_ -#define SCHEMATYPESDOCINC_H_ - -namespace Caf { - - typedef enum { - OPERATOR_NONE, - OPERATOR_EQUAL - } OPERATOR_TYPE; - - typedef enum { - ARITY_NONE, - ARITY_UNSIGNED_BYTE = 2 - } ARITY_TYPE; - - typedef enum { - VALIDATOR_NONE, - VALIDATOR_ENUM, - VALIDATOR_RANGE, - VALIDATOR_REGEX, - VALIDATOR_CUSTOM - } VALIDATOR_TYPE; - - // Forward declare - CAF_DECLARE_CLASS_AND_SMART_POINTER(CDataClassSubInstanceDoc); -} - -#include "CInstanceOperationDoc.h" -#include "CInstanceOperationCollectionDoc.h" -#include "CActionClassInstanceDoc.h" -#include "CActionClassInstanceCollectionDoc.h" - -#include "CCmdlMetadataDoc.h" -#include "CCmdlUnionDoc.h" -#include "CDataClassPropertyDoc.h" -#include "CDataClassSubInstanceDoc.h" -#include "CDataClassInstanceDoc.h" -#include "CDataClassInstanceCollectionDoc.h" - -#include "CMethodParameterDoc.h" -#include "CInstanceParameterDoc.h" - -#include "CClassIdentifierDoc.h" - -#include "CMethodDoc.h" -#include "CCollectMethodDoc.h" -#include "CActionClassDoc.h" - -#include "CClassPropertyDoc.h" - -#include "CClassFieldDoc.h" -#include "CJoinTypeDoc.h" - -#include "CClassCardinalityDoc.h" -#include "CClassInstancePropertyDoc.h" -#include "CDataClassDoc.h" -#include "CLogicalRelationshipDoc.h" -#include "CPhysicalRelationshipDoc.h" -#include "CRelationshipDoc.h" - -#endif /* SCHEMATYPESDOCINC_H_ */ diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/DocContracts.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/DocContracts.h index 57ba0feec..e69de29bb 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/DocContracts.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/DocContracts.h @@ -1,27 +0,0 @@ -/* - * Author: bwilliams - * Created: April 6, 2012 - * - * Copyright (c) 2012 Vmware, Inc. All rights reserved. - * -- VMware Confidential - */ - -#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" - -#endif diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Fx/IBean.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Fx/IBean.h index 5a66bb0d9..e69de29bb 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Fx/IBean.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Fx/IBean.h @@ -1,54 +0,0 @@ -/* - * Author: bwilliams - * Created: Jan 26, 2011 - * - * Copyright (c) 2010 Vmware, Inc. All rights reserved. - * -- VMware Confidential - */ - -#ifndef _FxContracts_IBean_h_ -#define _FxContracts_IBean_h_ - -namespace Caf { - -CAF_FORWARD_DECLARE_SMART_INTERFACE(IBean); - -/// TODO - describe interface -struct __declspec(novtable) -IBean : public ICafObject { - CAF_DECL_UUID("860C6E41-76E4-404b-913F-C330EE864DCD") - - struct CArg { - CArg(const SmartPtrIBean& ref) : - _reference(ref), - _type(REFERENCE) {} - CArg(const std::string& val) : - _value(val), - _type(VALUE) {} - - typedef enum { - REFERENCE, - VALUE - } ARG_TYPE; - - SmartPtrIBean _reference; - std::string _value; - ARG_TYPE _type; - - private: - CArg(); - }; - - typedef std::deque Cargs; - typedef Cmapstrstr Cprops; - - virtual void initializeBean( - const IBean::Cargs& ctorArgs, - const IBean::Cprops& properties) = 0; - - virtual void terminateBean() = 0; -}; - -} - -#endif diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Fx/IVariant.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Fx/IVariant.h index 052a5be19..e69de29bb 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Fx/IVariant.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Fx/IVariant.h @@ -1,31 +0,0 @@ -/* - * Created on: Jul 23, 2012 - * Author: mdonahue - * - * Copyright (c) 2012 VMware, Inc. All rights reserved. - * -- VMware Confidential - */ - -#ifndef _FxContracts_IVARIANT_H_ -#define _FxContracts_IVARIANT_H_ - -namespace Caf { -struct __declspec(novtable) IVariant : public ICafObject { - CAF_DECL_UUID("05AC7CB8-BBD4-4B3B-AB80-29002DD73747") - - virtual GVariant *get() const = 0; - virtual std::string toString() const = 0; - virtual bool isString() const = 0; - virtual bool isBool() const = 0; - virtual bool isUint8() const = 0; - virtual bool isInt16() const = 0; - virtual bool isUint16() const = 0; - virtual bool isInt32() const = 0; - virtual bool isUint32() const = 0; - virtual bool isInt64() const = 0; - virtual bool isUint64() const = 0; -}; -CAF_DECLARE_SMART_INTERFACE_POINTER(IVariant); -} - -#endif diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/FxContracts.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/FxContracts.h index 07b8bea3b..e69de29bb 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/FxContracts.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/FxContracts.h @@ -1,19 +0,0 @@ -/* - * Author: mdonahue - * Created: 1/20/2010 - * - * Copyright (c) 2010 Vmware, Inc. All rights reserved. - * -- VMware Confidential - */ - -#ifndef FxContracts_h_ -#define FxContracts_h_ - -#include -#include - -// Interfaces -#include "Fx/IBean.h" -#include "Fx/IVariant.h" - -#endif diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Integration/Dependencies/CPollerMetadata.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Integration/Dependencies/CPollerMetadata.h index 99d48fcfb..e69de29bb 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Integration/Dependencies/CPollerMetadata.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Integration/Dependencies/CPollerMetadata.h @@ -1,48 +0,0 @@ -/* - * Author: bwilliams - * Created: Oct 22, 2010 - * - * Copyright (c) 2010 Vmware, Inc. All rights reserved. - * -- VMware Confidential - */ - -#ifndef _IntegrationContracts_CPollerMetadata_h_ -#define _IntegrationContracts_CPollerMetadata_h_ - -namespace Caf { - -class CPollerMetadata { -public: - CPollerMetadata() : - _maxMessagesPerPoll(0), - _fixedRate(0) {} - -public: - uint32 getMaxMessagesPerPoll() const { - return _maxMessagesPerPoll; - } - void putMaxMessagesPerPoll(const uint32& maxMessagesPerPoll) { - _maxMessagesPerPoll = maxMessagesPerPoll; - } - - uint32 getFixedRate() const { - return _fixedRate; - } - void putFixedRate(const uint32& fixedRate) { - _fixedRate = fixedRate; - } - -private: - uint32 _maxMessagesPerPoll; - uint32 _fixedRate; - -private: - CPollerMetadata (const CPollerMetadata&); - CPollerMetadata & operator=(const CPollerMetadata&); -}; - -CAF_DECLARE_SMART_POINTER(CPollerMetadata); - -} - -#endif // #ifndef _IntegrationContracts_CPollerMetadata_h_ diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Integration/IChannelInterceptor.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Integration/IChannelInterceptor.h index 446475bdb..e69de29bb 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Integration/IChannelInterceptor.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Integration/IChannelInterceptor.h @@ -1,61 +0,0 @@ -/* - * Created on: Jan 25, 2012 - * Author: mdonahue - * - * Copyright (c) 2012 VMware, Inc. All rights reserved. - * -- VMware Confidential - */ - -#ifndef _IntegrationContracts_ICHANNELINTERCEPTOR_H_ -#define _IntegrationContracts_ICHANNELINTERCEPTOR_H_ - -namespace Caf { - -struct __declspec(novtable) - IChannelInterceptor : public ICafObject -{ - CAF_DECL_UUID("5002EA10-769B-44A0-AA6B-18ED91B57655") - - /** - * Invoked before the message is sent to the channel. - * The message may be modified if necessary. - * If this method returns null then the - * actual send invocation will not occur. - */ - virtual SmartPtrIIntMessage& preSend( - SmartPtrIIntMessage& message, - SmartPtrIMessageChannel& channel) = 0; - - /** - * Invoked immediately after the send invocation. The - * boolean value argument represents the return value of - * that invocation. - */ - virtual void postSend( - SmartPtrIIntMessage& message, - SmartPtrIMessageChannel& channel, - bool sent) = 0; - - /** - * Invoked as soon as receive is called and before a message - * is actually retrieved. If the return value is 'false' then - * no message will be retrieved. This only applies to PollableChannels. - */ - virtual bool preReceive( - SmartPtrIMessageChannel& channel) = 0; - - /** - * Invoked immediately after a message has been retrieved but - * before it is returned to the caller. The message may be modified - * if necessary. This only applies to PollableChannels. - */ - virtual SmartPtrIIntMessage& postReceive( - SmartPtrIIntMessage& message, - SmartPtrIMessageChannel& channel) = 0; -}; - -CAF_DECLARE_SMART_INTERFACE_POINTER(IChannelInterceptor); - -} - -#endif /* _IntegrationContracts_ICHANNELINTERCEPTOR_H_ */ diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Integration/IChannelInterceptorInstance.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Integration/IChannelInterceptorInstance.h index 5aa875272..e69de29bb 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Integration/IChannelInterceptorInstance.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Integration/IChannelInterceptorInstance.h @@ -1,27 +0,0 @@ -/* - * Created on: Jan 25, 2012 - * Author: mdonahue - * - * Copyright (c) 2012 VMware, Inc. All rights reserved. - * -- VMware Confidential - */ - -#ifndef _IntegrationContracts_ICHANNELINTERCEPTORINSTANCE_H_ -#define _IntegrationContracts_ICHANNELINTERCEPTORINSTANCE_H_ - -namespace Caf { - -struct __declspec(novtable) - IChannelInterceptorInstance : public ICafObject -{ - CAF_DECL_UUID("566C38A8-FF13-4E31-814E-A18130C009F6") - - virtual uint32 getOrder() const = 0; - - virtual bool isChannelIdMatched(const std::string& channelId) const = 0; -}; - -CAF_DECLARE_SMART_INTERFACE_POINTER(IChannelInterceptorInstance); - -} -#endif /* _IntegrationContracts_ICHANNELINTERCEPTORINSTANCE_H_ */ diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Integration/IChannelInterceptorSupport.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Integration/IChannelInterceptorSupport.h index 8d1b92470..e69de29bb 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Integration/IChannelInterceptorSupport.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Integration/IChannelInterceptorSupport.h @@ -1,27 +0,0 @@ -/* - * Created on: Jan 26, 2012 - * Author: mdonahue - * - * Copyright (c) 2012 VMware, Inc. All rights reserved. - * -- VMware Confidential - */ - -#ifndef _IntegrationContracts_ICHANNELINTERCEPTORSUPPORT_H_ -#define _IntegrationContracts_ICHANNELINTERCEPTORSUPPORT_H_ - -namespace Caf { - -struct __declspec(novtable) -IChannelInterceptorSupport : public ICafObject { - CAF_DECL_UUID("C8F3CBAF-B1EB-4AD8-920C-EFE5EE25638A") - - typedef std::list InterceptorCollection; - virtual void setInterceptors( - const InterceptorCollection& interceptors) = 0; -}; - -CAF_DECLARE_SMART_INTERFACE_POINTER(IChannelInterceptorSupport); - -} - -#endif /* _IntegrationContracts_ICHANNELINTERCEPTORSUPPORT_H_ */ diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Integration/IChannelResolver.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Integration/IChannelResolver.h index 7f6d653c0..e69de29bb 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Integration/IChannelResolver.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Integration/IChannelResolver.h @@ -1,32 +0,0 @@ -/* - * Author: bwilliams - * Created: Oct 22, 2010 - * - * Copyright (c) 2010 Vmware, Inc. All rights reserved. - * -- VMware Confidential - */ - -#ifndef _IntegrationContracts_IChannelResolver_h_ -#define _IntegrationContracts_IChannelResolver_h_ - -namespace Caf { - -/// TODO - describe interface -struct __declspec(novtable) - IChannelResolver : public ICafObject -{ - CAF_DECL_UUID("32361862-a312-4cab-a978-45b7059ca102") - - virtual SmartPtrIMessageChannel resolveChannelName( - const std::string& channelName) const = 0; - - virtual SmartPtrIIntegrationObject resolveChannelNameToObject( - const std::string& channelName) const = 0; -}; - -CAF_DECLARE_SMART_INTERFACE_POINTER(IChannelResolver); - -} - -#endif // #ifndef _IntegrationContracts_IChannelResolver_h_ - diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Integration/IDocument.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Integration/IDocument.h index a2bf910bd..e69de29bb 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Integration/IDocument.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Integration/IDocument.h @@ -1,51 +0,0 @@ -/* - * Author: bwilliams - * Created: Oct 22, 2010 - * - * Copyright (c) 2010 Vmware, Inc. All rights reserved. - * -- VMware Confidential - */ - -#ifndef _IntegrationContracts_IDocument_h_ -#define _IntegrationContracts_IDocument_h_ - -namespace Caf { - -CAF_FORWARD_DECLARE_SMART_INTERFACE(IDocument); - -/// TODO - describe interface -struct __declspec(novtable) - IDocument : public ICafObject -{ - CAF_DECL_UUID("aa95ea11-3ca0-4863-b267-88d38246ff67") - -public: // Read operations - typedef std::map CAttributeCollection; - typedef std::multimap CChildCollection; - typedef std::deque COrderedChildCollection; - CAF_DECLARE_SMART_POINTER(CAttributeCollection); - CAF_DECLARE_SMART_POINTER(CChildCollection); - CAF_DECLARE_SMART_POINTER(COrderedChildCollection); - -public: // Read operations - virtual std::string findRequiredAttribute(const std::string& name) const = 0; - virtual std::string findOptionalAttribute(const std::string& name) const = 0; - virtual SmartPtrIDocument findRequiredChild(const std::string& name) const = 0; - virtual SmartPtrIDocument findOptionalChild(const std::string& name) const = 0; - virtual SmartPtrCAttributeCollection getAllAttributes() const = 0; - virtual SmartPtrCChildCollection getAllChildren() const = 0; - virtual SmartPtrCOrderedChildCollection getAllChildrenInOrder() const = 0; - virtual std::string getName() const = 0; - virtual std::string getValue() const = 0; - virtual std::string getPath() const = 0; - -public: // Save operations - virtual void saveToFile(const std::string& filename) const = 0; - virtual std::string saveToString() const = 0; - virtual std::string saveToStringRaw() const = 0; -}; - -} - -#endif // #ifndef _IntegrationContracts_IDocument_h_ - diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Integration/IErrorHandler.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Integration/IErrorHandler.h index e368f4a8c..e69de29bb 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Integration/IErrorHandler.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Integration/IErrorHandler.h @@ -1,31 +0,0 @@ -/* - * Author: bwilliams - * Created: Oct 22, 2010 - * - * Copyright (c) 2010 Vmware, Inc. All rights reserved. - * -- VMware Confidential - */ - -#ifndef _IntegrationContracts_IErrorHandler_h_ -#define _IntegrationContracts_IErrorHandler_h_ - -namespace Caf { - -/// TODO - describe interface -struct __declspec(novtable) - IErrorHandler : public ICafObject -{ - CAF_DECL_UUID("da0e8646-43fb-4d43-a31b-f736c3978d48") - -public: // Read operations - virtual void handleError( - const SmartPtrIThrowable& throwable, - const SmartPtrIIntMessage& message) const = 0; -}; - -CAF_DECLARE_SMART_INTERFACE_POINTER(IErrorHandler); - -} - -#endif // #ifndef _IntegrationContracts_IErrorHandler_h_ - diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Integration/IErrorProcessor.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Integration/IErrorProcessor.h index 1f54feb3e..e69de29bb 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Integration/IErrorProcessor.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Integration/IErrorProcessor.h @@ -1,29 +0,0 @@ -/* - * Author: bwilliams - * Created: Oct 22, 2010 - * - * Copyright (c) 2010 Vmware, Inc. All rights reserved. - * -- VMware Confidential - */ - -#ifndef _IntegrationContracts_IErrorProcessor_h_ -#define _IntegrationContracts_IErrorProcessor_h_ - -namespace Caf { - -/// TODO - describe interface -struct __declspec(novtable) - IErrorProcessor : public ICafObject -{ - CAF_DECL_UUID("7ed3c23c-609a-4e42-9463-ed98da222d0a") - - virtual SmartPtrIIntMessage processErrorMessage( - const SmartPtrIIntMessage& message) = 0; -}; - -CAF_DECLARE_SMART_INTERFACE_POINTER(IErrorProcessor); - -} - -#endif // #ifndef _IntegrationContracts_IErrorProcessor_h_ - diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Integration/IExpressionInvoker.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Integration/IExpressionInvoker.h index 3222cf14d..e69de29bb 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Integration/IExpressionInvoker.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Integration/IExpressionInvoker.h @@ -1,26 +0,0 @@ -/* - * Created on: Jul 23, 2012 - * Author: mdonahue - * - * Copyright (c) 2012 VMware, Inc. All rights reserved. - * -- VMware Confidential - */ - -#ifndef _IntegrationContracts_IEXPRESSIONINVOKER_H_ -#define _IntegrationContracts_IEXPRESSIONINVOKER_H_ - -namespace Caf { - -struct __declspec(novtable) IExpressionInvoker : public ICafObject -{ - CAF_DECL_UUID("EF1DC19E-4DE0-416C-A7CB-D1695FF8D52A") - - virtual SmartPtrIVariant invokeExpression( - const std::string& methodName, - const Cdeqstr& methodParams, - const SmartPtrIIntMessage& message) = 0; -}; -CAF_DECLARE_SMART_INTERFACE_POINTER(IExpressionInvoker); -} - -#endif diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Integration/IIntMessage.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Integration/IIntMessage.h index ecc33795c..e69de29bb 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Integration/IIntMessage.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Integration/IIntMessage.h @@ -1,68 +0,0 @@ -/* - * Author: bwilliams - * Created: Oct 22, 2010 - * - * Copyright (c) 2010 Vmware, Inc. All rights reserved. - * -- VMware Confidential - */ - -#ifndef _IntegrationContracts_IIntMessage_h_ -#define _IntegrationContracts_IIntMessage_h_ - -namespace Caf { - -/// TODO - describe interface -struct __declspec(novtable) - IIntMessage : public ICafObject { - CAF_DECL_UUID("c9abc77a-ebd1-4203-911f-1b37d9b17d8e") - - // - // Routines dealing with the message - // - virtual UUID getMessageId() const = 0; - - virtual std::string getMessageIdStr() const = 0; - - // - // Routines dealing with the payload - // - typedef std::map > CHeaders; - CAF_DECLARE_SMART_POINTER(CHeaders); - - virtual SmartPtrCDynamicByteArray getPayload() const = 0; - - virtual std::string getPayloadStr() const = 0; - - // - // Routines dealing with the headers - // - virtual SmartPtrCHeaders getHeaders() const = 0; - - virtual SmartPtrIVariant findOptionalHeader( - const std::string& key) const = 0; - - virtual SmartPtrIVariant findRequiredHeader( - const std::string& key) const = 0; - - virtual std::string findOptionalHeaderAsString( - const std::string& key) const = 0; - - virtual std::string findRequiredHeaderAsString( - const std::string& key) const = 0; - - virtual SmartPtrICafObject findOptionalObjectHeader( - const std::string& key) const = 0; - - virtual SmartPtrICafObject findRequiredObjectHeader( - const std::string& key) const = 0; -}; - -CAF_DECLARE_SMART_INTERFACE_POINTER(IIntMessage); - -typedef std::deque CMessageCollection; -CAF_DECLARE_SMART_POINTER(CMessageCollection); - -} - -#endif // #ifndef _IntegrationContracts_IIntMessage_h_ - diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Integration/IIntegrationAppContext.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Integration/IIntegrationAppContext.h index e7cae541b..e69de29bb 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Integration/IIntegrationAppContext.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Integration/IIntegrationAppContext.h @@ -1,34 +0,0 @@ -/* - * Created on: Jun 13, 2012 - * Author: mdonahue - * - * Copyright (c) 2012 VMware, Inc. All rights reserved. - * -- VMware Confidential - */ - -#ifndef _IntegrationContracts_IINTEGRATIONAPPCONTEXT_H_ -#define _IntegrationContracts_IINTEGRATIONAPPCONTEXT_H_ - -namespace Caf { - -struct __declspec(novtable) IIntegrationAppContext : public ICafObject { - CAF_DECL_UUID("CC12C628-50C1-4E74-998D-3A9C961FA06F") - - virtual SmartPtrIIntegrationObject getIntegrationObject( - const std::string& id) const = 0; - - virtual void getIntegrationObject( - const IID& iid, - void **ppv) const = 0; - - typedef std::deque CObjectCollection; - CAF_DECLARE_SMART_POINTER(CObjectCollection); - - virtual SmartPtrCObjectCollection getIntegrationObjects(const IID& iid) const = 0; -}; - -CAF_DECLARE_SMART_INTERFACE_POINTER(IIntegrationAppContext); - -} - -#endif diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Integration/IIntegrationAppContextAware.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Integration/IIntegrationAppContextAware.h index 0d156309f..e69de29bb 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Integration/IIntegrationAppContextAware.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Integration/IIntegrationAppContextAware.h @@ -1,24 +0,0 @@ -/* - * Created on: Jun 13, 2012 - * Author: mdonahue - * - * Copyright (c) 2012 VMware, Inc. All rights reserved. - * -- VMware Confidential - */ - -#ifndef _IntegrationContracts_IINTEGRATIONAPPCONTEXTAWARE_H_ -#define _IntegrationContracts_IINTEGRATIONAPPCONTEXTAWARE_H_ - -namespace Caf { - -struct __declspec(novtable) IIntegrationAppContextAware : public ICafObject { - CAF_DECL_UUID("9BC34EB5-AEFF-4384-86DE-421DE89AB6E8") - - virtual void setIntegrationAppContext( - SmartPtrIIntegrationAppContext context) = 0; -}; - -CAF_DECLARE_SMART_INTERFACE_POINTER(IIntegrationAppContextAware); -} - -#endif diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Integration/IIntegrationComponent.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Integration/IIntegrationComponent.h index 5da3ae125..e69de29bb 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Integration/IIntegrationComponent.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Integration/IIntegrationComponent.h @@ -1,32 +0,0 @@ -/* - * Author: bwilliams - * Created: Oct 22, 2010 - * - * Copyright (c) 2010 Vmware, Inc. All rights reserved. - * -- VMware Confidential - */ - -#ifndef _IntegrationContracts_IIntegrationComponent_h_ -#define _IntegrationContracts_IIntegrationComponent_h_ - -namespace Caf { - -/// TODO - describe interface -struct __declspec(novtable) - IIntegrationComponent : public ICafObject -{ - CAF_DECL_UUID("087e1494-4abe-4bb6-ae49-48f4510e057f") - - virtual bool isResponsible( - const SmartPtrIDocument& configSection) const = 0; - - virtual SmartPtrIIntegrationObject createObject( - const SmartPtrIDocument& configSection) const = 0; -}; - -CAF_DECLARE_SMART_INTERFACE_POINTER(IIntegrationComponent); - -} - -#endif // #ifndef _IntegrationContracts_IIntegrationComponent_h_ - diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Integration/IIntegrationComponentInstance.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Integration/IIntegrationComponentInstance.h index b21e4a38b..e69de29bb 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Integration/IIntegrationComponentInstance.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Integration/IIntegrationComponentInstance.h @@ -1,30 +0,0 @@ -/* - * Author: bwilliams - * Created: Oct 22, 2010 - * - * Copyright (c) 2010 Vmware, Inc. All rights reserved. - * -- VMware Confidential - */ - -#ifndef _IntegrationContracts_IIntegrationComponentInstance_h_ -#define _IntegrationContracts_IIntegrationComponentInstance_h_ - -namespace Caf { - -/// TODO - describe interface -struct __declspec(novtable) - IIntegrationComponentInstance : public ICafObject -{ - CAF_DECL_UUID("70053165-1e46-4893-8e27-0e6ee8675c44") - - virtual void wire( - const SmartPtrIAppContext& appContext, - const SmartPtrIChannelResolver& channelResolver) = 0; -}; - -CAF_DECLARE_SMART_INTERFACE_POINTER(IIntegrationComponentInstance); - -} - -#endif // #ifndef _IntegrationContracts_IIntegrationComponent_h_ - diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Integration/IIntegrationObject.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Integration/IIntegrationObject.h index 13ca53ef2..e69de29bb 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Integration/IIntegrationObject.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Integration/IIntegrationObject.h @@ -1,36 +0,0 @@ -/* - * Author: bwilliams - * Created: Oct 22, 2010 - * - * Copyright (c) 2010 Vmware, Inc. All rights reserved. - * -- VMware Confidential - */ - -#ifndef _IntegrationContracts_IIntegrationObject_h_ -#define _IntegrationContracts_IIntegrationObject_h_ - -namespace Caf { - -/// TODO - describe interface -struct __declspec(novtable) - IIntegrationObject : public ICafObject -{ - CAF_DECL_UUID("295fa2c8-01a7-4102-b13e-8fcac00b3e5f") - - virtual void initialize( - const IBean::Cargs& ctorArgs, - const IBean::Cprops& properties, - const SmartPtrIDocument& configSection) = 0; - - virtual std::string getId() const = 0; -}; - -CAF_DECLARE_SMART_INTERFACE_POINTER(IIntegrationObject); - -typedef std::map CIntegrationObjectCollection; -CAF_DECLARE_SMART_POINTER(CIntegrationObjectCollection); - -} - -#endif // #ifndef _IntegrationContracts_IIntegrationObject_h_ - diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Integration/ILifecycle.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Integration/ILifecycle.h index 19ddd38d2..e69de29bb 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Integration/ILifecycle.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Integration/ILifecycle.h @@ -1,30 +0,0 @@ -/* - * Author: bwilliams - * Created: Oct 22, 2010 - * - * Copyright (c) 2010 Vmware, Inc. All rights reserved. - * -- VMware Confidential - */ - -#ifndef _IntegrationContracts_ILifecycle_h_ -#define _IntegrationContracts_ILifecycle_h_ - -namespace Caf { - -/// TODO - describe interface -struct __declspec(novtable) - ILifecycle : public ICafObject -{ - CAF_DECL_UUID("180845f8-c956-46b3-8a1b-ef5061cc927a") - - virtual void start(const uint32 timeoutMs) = 0; - virtual void stop(const uint32 timeoutMs) = 0; - virtual bool isRunning() const = 0; -}; - -CAF_DECLARE_SMART_INTERFACE_POINTER(ILifecycle); - -} - -#endif // #ifndef _IntegrationContracts_ILifecycle_h_ - diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Integration/IMessageChannel.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Integration/IMessageChannel.h index 2524b112d..e69de29bb 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Integration/IMessageChannel.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Integration/IMessageChannel.h @@ -1,33 +0,0 @@ -/* - * Author: bwilliams - * Created: Oct 22, 2010 - * - * Copyright (c) 2010 Vmware, Inc. All rights reserved. - * -- VMware Confidential - */ - -#ifndef _IntegrationContracts_IMessageChannel_h_ -#define _IntegrationContracts_IMessageChannel_h_ - -namespace Caf { - -/// TODO - describe interface -struct __declspec(novtable) - IMessageChannel : public ICafObject -{ - CAF_DECL_UUID("d5192d01-9c26-4c1c-8966-66d7a108bcbf") - - virtual bool send( - const SmartPtrIIntMessage& message) = 0; - - virtual bool send( - const SmartPtrIIntMessage& message, - const int32 timeout) = 0; -}; - -CAF_DECLARE_SMART_INTERFACE_POINTER(IMessageChannel); - -} - -#endif // #ifndef _IntegrationContracts_IMessageChannel_h_ - diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Integration/IMessageDispatcher.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Integration/IMessageDispatcher.h index 04cb7da6c..e69de29bb 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Integration/IMessageDispatcher.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Integration/IMessageDispatcher.h @@ -1,35 +0,0 @@ -/* - * Author: bwilliams - * Created: Oct 22, 2010 - * - * Copyright (c) 2010 Vmware, Inc. All rights reserved. - * -- VMware Confidential - */ - -#ifndef _IntegrationContracts_IMessageDispatcher_h_ -#define _IntegrationContracts_IMessageDispatcher_h_ - -namespace Caf { - -/// TODO - describe interface -struct __declspec(novtable) - IMessageDispatcher : public ICafObject -{ - CAF_DECL_UUID("639d8ead-6406-4c41-9a36-74d065f5dd6b") - - virtual void addHandler( - const SmartPtrIMessageHandler& messageHandler) = 0; - - virtual void removeHandler( - const SmartPtrIMessageHandler& messageHandler) = 0; - - virtual bool dispatch( - const SmartPtrIIntMessage& message) = 0; -}; - -CAF_DECLARE_SMART_INTERFACE_POINTER(IMessageDispatcher); - -} - -#endif // #ifndef _IntegrationContracts_IMessageDispatcher_h_ - diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Integration/IMessageHandler.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Integration/IMessageHandler.h index a3584248f..e69de29bb 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Integration/IMessageHandler.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Integration/IMessageHandler.h @@ -1,33 +0,0 @@ -/* - * Author: bwilliams - * Created: Oct 22, 2010 - * - * Copyright (c) 2010 Vmware, Inc. All rights reserved. - * -- VMware Confidential - */ - -#ifndef _IntegrationContracts_IMessageHandler_h_ -#define _IntegrationContracts_IMessageHandler_h_ - -namespace Caf { - -/// TODO - describe interface -struct __declspec(novtable) - IMessageHandler : public ICafObject -{ - CAF_DECL_UUID("39a78b6f-f326-4739-b8ad-9e90a827745a") - - virtual void handleMessage( - const SmartPtrIIntMessage& message) = 0; - - virtual SmartPtrIIntMessage getSavedMessage() const = 0; - - virtual void clearSavedMessage() = 0; -}; - -CAF_DECLARE_SMART_INTERFACE_POINTER(IMessageHandler); - -} - -#endif // #ifndef _IntegrationContracts_IMessageHandler_h_ - diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Integration/IMessageProcessor.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Integration/IMessageProcessor.h index b1d234c5c..e69de29bb 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Integration/IMessageProcessor.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Integration/IMessageProcessor.h @@ -1,29 +0,0 @@ -/* - * Author: bwilliams - * Created: Oct 22, 2010 - * - * Copyright (c) 2010 Vmware, Inc. All rights reserved. - * -- VMware Confidential - */ - -#ifndef _IntegrationContracts_IMessageProcessor_h_ -#define _IntegrationContracts_IMessageProcessor_h_ - -namespace Caf { - -/// TODO - describe interface -struct __declspec(novtable) - IMessageProcessor : public ICafObject -{ - CAF_DECL_UUID("68770787-c44e-457e-bf8d-20c64d37bfee") - - virtual SmartPtrIIntMessage processMessage( - const SmartPtrIIntMessage& message) = 0; -}; - -CAF_DECLARE_SMART_INTERFACE_POINTER(IMessageProcessor); - -} - -#endif // #ifndef _IntegrationContracts_IMessageProcessor_h_ - diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Integration/IMessageProducer.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Integration/IMessageProducer.h index 243ae3871..e69de29bb 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Integration/IMessageProducer.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Integration/IMessageProducer.h @@ -1,28 +0,0 @@ -/* - * Author: bwilliams - * Created: Oct 22, 2010 - * - * Copyright (c) 2010 Vmware, Inc. All rights reserved. - * -- VMware Confidential - */ - -#ifndef _IntegrationContracts_IMessageProducer_h_ -#define _IntegrationContracts_IMessageProducer_h_ - -namespace Caf { - -/// TODO - describe interface -struct __declspec(novtable) - IMessageProducer : public ICafObject -{ - CAF_DECL_UUID("14430bc5-8556-48f8-b37f-c2f24a50d8dd") - - virtual bool isMessageProducer() const = 0; -}; - -CAF_DECLARE_SMART_INTERFACE_POINTER(IMessageProducer); - -} - -#endif // #ifndef _IntegrationContracts_IMessageProducer_h_ - diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Integration/IMessageRouter.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Integration/IMessageRouter.h index 4e0fa781e..e69de29bb 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Integration/IMessageRouter.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Integration/IMessageRouter.h @@ -1,28 +0,0 @@ -/* - * Author: bwilliams - * Created: Oct 22, 2010 - * - * Copyright (c) 2010 Vmware, Inc. All rights reserved. - * -- VMware Confidential - */ - -#ifndef _IntegrationContracts_IMessageRouter_h_ -#define _IntegrationContracts_IMessageRouter_h_ - -namespace Caf { - -/// TODO - describe interface -struct __declspec(novtable) - IMessageRouter : public ICafObject -{ - CAF_DECL_UUID("27ed0739-e527-469b-882f-196d532be0bd") - - virtual void routeMessage(const SmartPtrIIntMessage& message) = 0; -}; - -CAF_DECLARE_SMART_INTERFACE_POINTER(IMessageRouter); - -} - -#endif // #ifndef _IntegrationContracts_IMessageRouter_h_ - diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Integration/IMessageSplitter.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Integration/IMessageSplitter.h index c4d20d931..e69de29bb 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Integration/IMessageSplitter.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Integration/IMessageSplitter.h @@ -1,32 +0,0 @@ -/* - * Author: bwilliams - * Created: Oct 22, 2010 - * - * Copyright (c) 2010 Vmware, Inc. All rights reserved. - * -- VMware Confidential - */ - -#ifndef _IntegrationContracts_IMessageSplitter_h_ -#define _IntegrationContracts_IMessageSplitter_h_ - -namespace Caf { - -/// TODO - describe interface -struct __declspec(novtable) - IMessageSplitter : public ICafObject -{ - CAF_DECL_UUID("89a25ba3-113d-4efc-af46-522feda304ac") - - typedef std::deque CMessageCollection; - CAF_DECLARE_SMART_POINTER(CMessageCollection); - - virtual SmartPtrCMessageCollection splitMessage( - const SmartPtrIIntMessage& message) = 0; -}; - -CAF_DECLARE_SMART_INTERFACE_POINTER(IMessageSplitter); - -} - -#endif // #ifndef _IntegrationContracts_IMessageSplitter_h_ - diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Integration/IPhased.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Integration/IPhased.h index 0ed49e0c3..e69de29bb 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Integration/IPhased.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Integration/IPhased.h @@ -1,23 +0,0 @@ -/* - * Created on: Aug 6, 2012 - * Author: mdonahue - * - * Copyright (c) 2012 VMware, Inc. All rights reserved. - * -- VMware Confidential - */ - -#ifndef _IntegrationContracts_IPhased_h -#define _IntegrationContracts_IPhased_h - -namespace Caf { - -struct __declspec(novtable) IPhased : public ICafObject { - CAF_DECL_UUID("CAE354D0-E212-4030-8CB7-23C92D59C6A3") - - virtual int32 getPhase() const = 0; -}; -CAF_DECLARE_SMART_INTERFACE_POINTER(IPhased); - -}; - -#endif diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Integration/IPollableChannel.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Integration/IPollableChannel.h index 73641e205..e69de29bb 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Integration/IPollableChannel.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Integration/IPollableChannel.h @@ -1,30 +0,0 @@ -/* - * Author: bwilliams - * Created: Oct 22, 2010 - * - * Copyright (c) 2010 Vmware, Inc. All rights reserved. - * -- VMware Confidential - */ - -#ifndef _IntegrationContracts_IPollableChannel_h_ -#define _IntegrationContracts_IPollableChannel_h_ - -namespace Caf { - -/// TODO - describe interface -struct __declspec(novtable) - IPollableChannel : public ICafObject -{ - CAF_DECL_UUID("a7ce8841-f37d-489a-a299-e148c5ff6b11") - - virtual SmartPtrIIntMessage receive() = 0; - virtual SmartPtrIIntMessage receive(const int32 timeout) = 0; - virtual SmartPtrCPollerMetadata getPollerMetadata() const = 0; -}; - -CAF_DECLARE_SMART_INTERFACE_POINTER(IPollableChannel); - -} - -#endif // #ifndef _IntegrationContracts_IPollableChannel_h_ - diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Integration/IRunnable.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Integration/IRunnable.h index 565120bbc..e69de29bb 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Integration/IRunnable.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Integration/IRunnable.h @@ -1,29 +0,0 @@ -/* - * Author: bwilliams - * Created: Oct 22, 2010 - * - * Copyright (c) 2010 Vmware, Inc. All rights reserved. - * -- VMware Confidential - */ - -#ifndef _IntegrationContracts_IRunnable_h_ -#define _IntegrationContracts_IRunnable_h_ - -namespace Caf { - -/// TODO - describe interface -struct __declspec(novtable) - IRunnable : public ICafObject -{ - CAF_DECL_UUID("a3ad671c-3d04-4eba-aaa4-8dcc9c43c959") - - virtual void run() = 0; - virtual void cancel() = 0; -}; - -CAF_DECLARE_SMART_INTERFACE_POINTER(IRunnable); - -} - -#endif // #ifndef _IntegrationContracts_IRunnable_h_ - diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Integration/ISmartLifecycle.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Integration/ISmartLifecycle.h index 56103ac3d..e69de29bb 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Integration/ISmartLifecycle.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Integration/ISmartLifecycle.h @@ -1,23 +0,0 @@ -/* - * Created on: Aug 6, 2012 - * Author: mdonahue - * - * Copyright (c) 2012 VMware, Inc. All rights reserved. - * -- VMware Confidential - */ - -#ifndef _IntegrationContracts_ISmartLifecycle_h -#define _IntegrationContracts_ISmartLifecycle_h - -namespace Caf { - -struct __declspec(novtable) ISmartLifecycle : public ILifecycle { - CAF_DECL_UUID("312B7430-659F-48A1-AAAE-AE44D349132C") - - virtual bool isAutoStartup() const = 0; -}; -CAF_DECLARE_SMART_INTERFACE_POINTER(ISmartLifecycle); - -}; - -#endif diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Integration/ISubscribableChannel.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Integration/ISubscribableChannel.h index c3b612202..e69de29bb 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Integration/ISubscribableChannel.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Integration/ISubscribableChannel.h @@ -1,31 +0,0 @@ -/* - * Author: bwilliams - * Created: Oct 22, 2010 - * - * Copyright (c) 2010 Vmware, Inc. All rights reserved. - * -- VMware Confidential - */ - -#ifndef _IntegrationContracts_ISubscribableChannel_h_ -#define _IntegrationContracts_ISubscribableChannel_h_ - -namespace Caf { - -/// TODO - describe interface -struct __declspec(novtable) - ISubscribableChannel : public ICafObject -{ - CAF_DECL_UUID("14d7e980-1b98-4453-b27e-8c058fb705b9") - - virtual void subscribe( - const SmartPtrIMessageHandler& messageHandler) = 0; - virtual void unsubscribe( - const SmartPtrIMessageHandler& messageHandler) = 0; -}; - -CAF_DECLARE_SMART_INTERFACE_POINTER(ISubscribableChannel); - -} - -#endif // #ifndef _IntegrationContracts_ISubscribableChannel_h_ - diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Integration/ITaskExecutor.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Integration/ITaskExecutor.h index 7e7aede8e..e69de29bb 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Integration/ITaskExecutor.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Integration/ITaskExecutor.h @@ -1,38 +0,0 @@ -/* - * Author: bwilliams - * Created: Oct 22, 2010 - * - * Copyright (c) 2010 Vmware, Inc. All rights reserved. - * -- VMware Confidential - */ - -#ifndef _IntegrationContracts_ITaskExecutor_h_ -#define _IntegrationContracts_ITaskExecutor_h_ - -namespace Caf { - -/// TODO - describe interface -struct __declspec(novtable) - ITaskExecutor : public ICafObject -{ - CAF_DECL_UUID("4ab38314-fd31-49fc-bfce-173abc53f1a8") - - typedef enum { - ETaskStateNotStarted, - ETaskStateStarted, - ETaskStateStopping, - ETaskStateFinished, - ETaskStateFailed - } ETaskState; - - virtual void execute(const uint32 timeoutMs) = 0; - virtual void cancel(const uint32 timeoutMs) = 0; - virtual ETaskState getState() const = 0; -}; - -CAF_DECLARE_SMART_INTERFACE_POINTER(ITaskExecutor); - -} - -#endif // #ifndef _IntegrationContracts_ITaskExecutor_h_ - diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Integration/IThrowable.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Integration/IThrowable.h index 5052ee2fe..e69de29bb 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Integration/IThrowable.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Integration/IThrowable.h @@ -1,33 +0,0 @@ -/* - * Author: bwilliams - * Created: Oct. 25, 2011 - * - * Copyright (c) 2010 Vmware, Inc. All rights reserved. - * -- VMware Confidential - */ - -#ifndef _FxContracts_IThrowable_h_ -#define _FxContracts_IThrowable_h_ - -namespace Caf { - -CAF_FORWARD_DECLARE_SMART_INTERFACE(IThrowable); - -/// TODO - describe interface -struct __declspec(novtable) -IThrowable : public ICafObject { - CAF_DECL_UUID("5bced55d-06b7-4c4b-b805-90b51311dc9b") - - virtual std::string getExceptionClassName() const = 0; - virtual std::string getMsg() const = 0; - virtual std::string getClassName() const = 0; - virtual std::string getFuncName() const = 0; - virtual HRESULT getError() const = 0; - virtual std::string getFullMsg() const = 0; -}; - -} - -#endif - - diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Integration/ITransformer.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Integration/ITransformer.h index 9826b35e5..e69de29bb 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Integration/ITransformer.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Integration/ITransformer.h @@ -1,29 +0,0 @@ -/* - * Author: bwilliams - * Created: Oct 22, 2010 - * - * Copyright (c) 2010 Vmware, Inc. All rights reserved. - * -- VMware Confidential - */ - -#ifndef _IntegrationContracts_ITransformer_h_ -#define _IntegrationContracts_ITransformer_h_ - -namespace Caf { - -/// TODO - describe interface -struct __declspec(novtable) - ITransformer : public ICafObject -{ - CAF_DECL_UUID("1f2a6ecb-f842-4e09-82a8-89eaf64ec98b") - - virtual SmartPtrIIntMessage transformMessage( - const SmartPtrIIntMessage& message) = 0; -}; - -CAF_DECLARE_SMART_INTERFACE_POINTER(ITransformer); - -} - -#endif // #ifndef _IntegrationContracts_ITransformer_h_ - diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/IntegrationContracts.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/IntegrationContracts.h index 15512788c..e69de29bb 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/IntegrationContracts.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/IntegrationContracts.h @@ -1,49 +0,0 @@ -/* - * Author: bwilliams - * Created: Oct 20, 2011 - * - * Copyright (c) 2011 Vmware, Inc. All rights reserved. - * -- VMware Confidential - */ - -#ifndef IntegrationContracts_h_ -#define IntegrationContracts_h_ - -#include - -// Dependencies -#include "Integration/Dependencies/CPollerMetadata.h" - -// Interfaces -#include "Integration/IIntMessage.h" -#include "Integration/IThrowable.h" -#include "Integration/IErrorHandler.h" -#include "Integration/IErrorProcessor.h" -#include "Integration/IRunnable.h" -#include "Integration/ITaskExecutor.h" -#include "Integration/IDocument.h" -#include "Integration/IIntegrationObject.h" -#include "Integration/ILifecycle.h" -#include "Integration/IMessageChannel.h" -#include "Integration/IMessageHandler.h" -#include "Integration/IMessageProcessor.h" -#include "Integration/IMessageSplitter.h" -#include "Integration/IMessageDispatcher.h" -#include "Integration/IMessageProducer.h" -#include "Integration/IMessageRouter.h" -#include "Integration/ITransformer.h" -#include "Integration/IPollableChannel.h" -#include "Integration/ISubscribableChannel.h" -#include "Integration/IChannelResolver.h" -#include "Integration/IChannelInterceptor.h" -#include "Integration/IChannelInterceptorInstance.h" -#include "Integration/IChannelInterceptorSupport.h" -#include "Integration/IIntegrationComponentInstance.h" -#include "Integration/IIntegrationComponent.h" -#include "Integration/IIntegrationAppContext.h" -#include "Integration/IIntegrationAppContextAware.h" -#include "Integration/IExpressionInvoker.h" -#include "Integration/IPhased.h" -#include "Integration/ISmartLifecycle.h" - -#endif // #ifndef IntegrationContracts_h_ diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/IntegrationContractsDefines.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/IntegrationContractsDefines.h index bb40cf466..e69de29bb 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/IntegrationContractsDefines.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/IntegrationContractsDefines.h @@ -1,71 +0,0 @@ -/* - * Author: bwilliams - * Created: 10/22/2010 - * - * Copyright (c) 2010 Vmware, Inc. All rights reserved. - * -- VMware Confidential - */ - -#ifndef IntegrationContractsDefines_h_ -#define IntegrationContractsDefines_h_ - -#include - -#include -#include -#include -#include -#include - -//////////////////////////////////////////////////////////////////////// -// -// Class declaration helpers -// -//////////////////////////////////////////////////////////////////////// -#define INTEGRATION_CONTRACT_DECLARE_STD_ACCESSOR( _classname_ ) \ - public: \ - _classname_(){}\ - private: \ - _classname_ (const _classname_ &); \ - _classname_ & operator=(const _classname_ &); \ - public: - -#define INTEGRATION_CONTRACT_DECLARE_NOCOPY( _classname_ ) \ - private: \ - _classname_ (const _classname_ &); \ - _classname_ & operator=(const _classname_ &) - -//////////////////////////////////////////////////////////////////////// -// -// Put these accessors in the header file to provide the implementation. -// -//////////////////////////////////////////////////////////////////////// -#define INTEGRATION_CONTRACT_ACCESSOR_IMPL_GET_PUT( _Type_, _Name_ ) \ - private: \ - _Type_ _##_Name_; \ - public: \ - _Type_ get##_Name_() const \ - { \ - return _##_Name_; \ - } \ - void put##_Name_(const _Type_& cr##_Name_) \ - { \ - _##_Name_ = cr##_Name_; \ - } - -//////////////////////////////////////////////////////////////////////// -// -// Put these accessors in the interface file to provide the declaration. -// -//////////////////////////////////////////////////////////////////////// -#define INTEGRATION_CONTRACT_ACCESSOR_VIRT_GET( _Type_, _Name_ ) \ - virtual _Type_ get##_Name_() const = 0; - -#define INTEGRATION_CONTRACT_ACCESSOR_VIRT_PUT( _Type_, _Name_ ) \ - virtual void put##_Name_(const _Type_ & cr##_Name_) = 0; - -#define INTEGRATION_CONTRACT_ACCESSOR_VIRT_GET_PUT( _Type_, _Name_ ) \ - virtual _Type_ get##_Name_() const = 0; \ - virtual void put##_Name_(const _Type_ & cr##_Name_) = 0; - -#endif diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Ma/IConfigEnv.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Ma/IConfigEnv.h index 783a4e5f2..e69de29bb 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Ma/IConfigEnv.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Ma/IConfigEnv.h @@ -1,35 +0,0 @@ -/* - * Author: bwilliams - * Created: Nov 12, 2015 - * - * Copyright (c) 2015 Vmware, Inc. All rights reserved. - * -- VMware Confidential - */ - -#ifndef _MaContracts_IConfigEnv_h_ -#define _MaContracts_IConfigEnv_h_ - -namespace Caf { - -/// TODO - describe interface -struct __declspec(novtable) -IConfigEnv : public ICafObject { - CAF_DECL_UUID("dea6cea4-9385-458e-b549-d05640382da6") - - virtual void initialize() = 0; - - virtual SmartPtrCPersistenceDoc getUpdated( - const int32 timeout) = 0; - - virtual void update( - const SmartPtrCPersistenceDoc& persistence) = 0; - - virtual void remove( - const SmartPtrCPersistenceDoc& persistence) = 0; -}; - -CAF_DECLARE_SMART_INTERFACE_POINTER(IConfigEnv); - -} - -#endif diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Ma/IPersistence.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Ma/IPersistence.h index 503e8fbd4..e69de29bb 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Ma/IPersistence.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/Ma/IPersistence.h @@ -1,35 +0,0 @@ -/* - * Author: bwilliams - * Created: Nov 12, 2015 - * - * Copyright (c) 2015 Vmware, Inc. All rights reserved. - * -- VMware Confidential - */ - -#ifndef _MaContracts_IPersistence_h_ -#define _MaContracts_IPersistence_h_ - -namespace Caf { - -/// TODO - describe interface -struct __declspec(novtable) -IPersistence : public ICafObject { - CAF_DECL_UUID("5b48f8ef-7023-4583-9d2d-b15ae566b0cc") - - virtual void initialize() = 0; - - virtual SmartPtrCPersistenceDoc getUpdated( - const int32 timeout) = 0; - - virtual void update( - const SmartPtrCPersistenceDoc& persistence) = 0; - - virtual void remove( - const SmartPtrCPersistenceDoc& persistence) = 0; -}; - -CAF_DECLARE_SMART_INTERFACE_POINTER(IPersistence); - -} - -#endif diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/MaContracts.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/MaContracts.h index 714a2cde7..e69de29bb 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/MaContracts.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Contracts/MaContracts.h @@ -1,19 +0,0 @@ -/* - * Author: bwilliams - * Created: 1/20/2010 - * - * Copyright (c) 2010 Vmware, Inc. All rights reserved. - * -- VMware Confidential - */ - -#ifndef MaContracts_h_ -#define MaContracts_h_ - -#include "CafContracts.h" -#include "DocContracts.h" - -// Interfaces -#include "Ma/IPersistence.h" -#include "Ma/IConfigEnv.h" - -#endif diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Integration.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Integration.h index 48cc847b7..1d5d42034 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Integration.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/include/Integration.h @@ -10,17 +10,43 @@ #define COMMON_SYS_INC_INTEGRATION_H_ #include -#include -#include "../src/Integration/Core/IntegrationCoreLink.h" -#include "../src/Integration/Caf/IntegrationCafLink.h" +// Dependencies +#include "Integration/Dependencies/CPollerMetadata.h" + +// Interfaces +#include "Integration/IIntMessage.h" +#include "Integration/IThrowable.h" +#include "Integration/IErrorHandler.h" +#include "Integration/IErrorProcessor.h" +#include "Integration/IRunnable.h" +#include "Integration/ITaskExecutor.h" +#include "Integration/IDocument.h" +#include "Integration/IIntegrationObject.h" +#include "Integration/ILifecycle.h" +#include "Integration/IMessageChannel.h" +#include "Integration/IMessageHandler.h" +#include "Integration/IMessageProcessor.h" +#include "Integration/IMessageSplitter.h" +#include "Integration/IMessageDispatcher.h" +#include "Integration/IMessageProducer.h" +#include "Integration/IMessageRouter.h" +#include "Integration/ITransformer.h" +#include "Integration/IPollableChannel.h" +#include "Integration/ISubscribableChannel.h" +#include "Integration/IChannelResolver.h" +#include "Integration/IChannelInterceptor.h" +#include "Integration/IChannelInterceptorInstance.h" +#include "Integration/IChannelInterceptorSupport.h" +#include "Integration/IIntegrationComponentInstance.h" +#include "Integration/IIntegrationComponent.h" +#include "Integration/IIntegrationAppContext.h" +#include "Integration/IIntegrationAppContextAware.h" +#include "Integration/IExpressionInvoker.h" +#include "Integration/IPhased.h" +#include "Integration/ISmartLifecycle.h" -namespace Caf { - // Integration Contracts - extern INTEGRATIONCORE_LINKAGE const char* _sObjIdIntegrationObjectFactory; - extern INTEGRATIONCORE_LINKAGE const char* _sObjIdErrorChannel; - extern INTEGRATIONCORE_LINKAGE const char* _sObjIdNullChannel; - extern INTEGRATIONCORE_LINKAGE const char* _sObjIdHeaderExpressionInvoker; -} +#include "../src/Integration/Caf/IntegrationCafLink.h" +#include "../src/Integration/Core/IntegrationCoreLink.h" #endif /* COMMON_SYS_INC_INTEGRATION_H_ */ diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Common/CFileSystemUtils.cpp b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Common/CFileSystemUtils.cpp index aa64cbe7f..fa8c5bd26 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Common/CFileSystemUtils.cpp +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Common/CFileSystemUtils.cpp @@ -1259,7 +1259,7 @@ std::string FileSystemUtils::getTempFilename(const std::string& filename_templat GError *gError = NULL; int32 fd = g_file_open_tmp(filename_template.c_str(), &allocatedFilename, &gError); - if (fd > 0) { + if (fd >= 0) { filename = allocatedFilename; #ifdef WIN32 ::_close(fd); @@ -1283,6 +1283,7 @@ std::string FileSystemUtils::getTempFilename(const std::string& filename_templat } } CAF_CM_EXIT; + CAF_CM_VALIDATE_STRING(filename); return filename; } diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Common/CPersistenceUtils.cpp b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Common/CPersistenceUtils.cpp index 07e99b4ae..f8f0d109b 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Common/CPersistenceUtils.cpp +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Common/CPersistenceUtils.cpp @@ -21,7 +21,8 @@ SmartPtrCPersistenceDoc CPersistenceUtils::loadPersistence( persistence->initialize( loadLocalSecurity(persistenceDir), loadRemoteSecurityCollection(persistenceDir), - loadPersistenceProtocol(persistenceDir)); + loadPersistenceProtocolCollection(persistenceDir), + loadTextFile(persistenceDir, "version.txt", "1.0")); return persistence; } @@ -104,14 +105,14 @@ SmartPtrCRemoteSecurityCollectionDoc CPersistenceUtils::loadRemoteSecurityCollec return remoteSecurityCollection; } -SmartPtrCPersistenceProtocolDoc CPersistenceUtils::loadPersistenceProtocol( +SmartPtrCPersistenceProtocolCollectionDoc CPersistenceUtils::loadPersistenceProtocolCollection( const std::string& persistenceDir) { - CAF_CM_STATIC_FUNC_VALIDATE("CPersistenceUtils", "loadPersistenceProtocol"); + CAF_CM_STATIC_FUNC_VALIDATE("CPersistenceUtils", "loadPersistenceProtocolCollection"); CAF_CM_VALIDATE_STRING(persistenceDir); const std::string protocolDir = FileSystemUtils::buildPath(persistenceDir, "protocol"); - std::deque amqpBrokerCollectionInner; + std::deque persistenceProtocolCollectionInner; if (FileSystemUtils::doesDirectoryExist(protocolDir)) { FileSystemUtils::DirectoryItems protocolItems = FileSystemUtils::itemsInDirectory( protocolDir, FileSystemUtils::REGEX_MATCH_ALL); @@ -152,10 +153,10 @@ SmartPtrCPersistenceProtocolDoc CPersistenceUtils::loadPersistenceProtocol( tlsCertPathCollection.CreateInstance(); tlsCertPathCollection->initialize(tlsCertPathCollectionInner); - SmartPtrCAmqpBrokerDoc amqpBroker; - amqpBroker.CreateInstance(); - amqpBroker->initialize( - loadTextFile(protocolIdDir, "amqpBrokerId.txt"), + SmartPtrCPersistenceProtocolDoc persistenceProtocol; + persistenceProtocol.CreateInstance(); + persistenceProtocol->initialize( + loadTextFile(protocolIdDir, "protocolName.txt"), loadTextFile(protocolIdDir, "uri.txt"), loadTextFile(protocolIdDir, "tlsCert.pem"), loadTextFile(protocolIdDir, "tlsProtocol.txt"), @@ -164,55 +165,39 @@ SmartPtrCPersistenceProtocolDoc CPersistenceUtils::loadPersistenceProtocol( FileSystemUtils::buildPath(protocolIdDir, "tlsCert.pem"), tlsCertPathCollection); - amqpBrokerCollectionInner.push_back(amqpBroker); + persistenceProtocolCollectionInner.push_back(persistenceProtocol); } } - SmartPtrCAmqpBrokerCollectionDoc amqpBrokerCollection; - amqpBrokerCollection.CreateInstance(); - amqpBrokerCollection->initialize(amqpBrokerCollectionInner); + SmartPtrCPersistenceProtocolCollectionDoc persistenceProtocolCollection; + persistenceProtocolCollection.CreateInstance(); + persistenceProtocolCollection->initialize(persistenceProtocolCollectionInner); - SmartPtrCPersistenceProtocolDoc persistenceProtocol; - persistenceProtocol.CreateInstance(); - persistenceProtocol->initialize(amqpBrokerCollection); - - return persistenceProtocol; + return persistenceProtocolCollection; } -SmartPtrCAmqpBrokerDoc CPersistenceUtils::loadAmqpBroker( +SmartPtrCPersistenceProtocolDoc CPersistenceUtils::loadPersistenceProtocol( const std::string& persistenceDir) { - CAF_CM_STATIC_FUNC_VALIDATE("CPersistenceUtils", "loadAmqpBroker"); + CAF_CM_STATIC_FUNC_VALIDATE("CPersistenceUtils", "loadPersistenceProtocol"); CAF_CM_VALIDATE_STRING(persistenceDir); - const SmartPtrCPersistenceProtocolDoc persistenceProtocol = - loadPersistenceProtocol(persistenceDir); + const SmartPtrCPersistenceProtocolCollectionDoc persistenceProtocolCollection = + loadPersistenceProtocolCollection(persistenceDir); - return loadAmqpBroker(persistenceProtocol); + return loadPersistenceProtocol(persistenceProtocolCollection); } -SmartPtrCAmqpBrokerDoc CPersistenceUtils::loadAmqpBroker( - const SmartPtrCPersistenceProtocolDoc& persistenceProtocol) { - CAF_CM_STATIC_FUNC_VALIDATE("CPersistenceUtils", "loadAmqpBroker"); - CAF_CM_VALIDATE_SMARTPTR(persistenceProtocol); - - const SmartPtrCAmqpBrokerCollectionDoc amqpBrokerCollection = - persistenceProtocol->getAmqpBrokerCollection(); - CAF_CM_VALIDATE_SMARTPTR(amqpBrokerCollection); - - std::deque amqpBrokerCollectionInner = - amqpBrokerCollection->getAmqpBroker(); - CAF_CM_VALIDATE_BOOL(! amqpBrokerCollectionInner.empty()); - CAF_CM_VALIDATE_BOOL(amqpBrokerCollectionInner.size() <= 2); +SmartPtrCPersistenceProtocolDoc CPersistenceUtils::loadPersistenceProtocol( + const SmartPtrCPersistenceProtocolCollectionDoc& persistenceProtocolCollection) { + CAF_CM_STATIC_FUNC_VALIDATE("CPersistenceUtils", "loadPersistenceProtocol"); + CAF_CM_VALIDATE_SMARTPTR(persistenceProtocolCollection); - SmartPtrCAmqpBrokerDoc amqpBroker = amqpBrokerCollectionInner.front(); - if (amqpBrokerCollectionInner.size() == 2) { - if (amqpBroker->getAmqpBrokerId().compare("amqpBroker_default") == 0) { - amqpBroker = amqpBrokerCollectionInner.at(1); - } - CAF_CM_VALIDATE_BOOL(amqpBroker->getAmqpBrokerId().compare("amqpBroker_default") != 0); - } + std::deque persistenceProtocolCollectionInner = + persistenceProtocolCollection->getPersistenceProtocol(); + CAF_CM_VALIDATE_BOOL(! persistenceProtocolCollectionInner.empty()); + CAF_CM_VALIDATE_BOOL(persistenceProtocolCollectionInner.size() == 1); - return amqpBroker; + return persistenceProtocolCollectionInner.front(); } void CPersistenceUtils::savePersistence( @@ -225,8 +210,8 @@ void CPersistenceUtils::savePersistence( const SmartPtrCLocalSecurityDoc localSecurity = persistence->getLocalSecurity(); const SmartPtrCRemoteSecurityCollectionDoc remoteSecurityCollection = persistence->getRemoteSecurityCollection(); - const SmartPtrCPersistenceProtocolDoc persistenceProtocol = - persistence->getPersistenceProtocol(); + const SmartPtrCPersistenceProtocolCollectionDoc persistenceProtocolCollection = + persistence->getPersistenceProtocolCollection(); if (FileSystemUtils::doesDirectoryExist(persistenceDir)) { CAF_CM_LOG_DEBUG_VA1("Removing directory - %s", persistenceDir.c_str()); @@ -235,7 +220,8 @@ void CPersistenceUtils::savePersistence( saveLocalSecurity(localSecurity, persistenceDir); saveRemoteSecurityCollection(remoteSecurityCollection, persistenceDir); - savePersistenceProtocol(persistenceProtocol, persistenceDir); + savePersistenceProtocolCollection(persistenceProtocolCollection, persistenceDir); + FileSystemUtils::saveTextFile(persistenceDir, "version.txt", persistence->getVersion()); } void CPersistenceUtils::saveLocalSecurity( @@ -320,59 +306,57 @@ void CPersistenceUtils::saveRemoteSecurityCollection( } } -void CPersistenceUtils::savePersistenceProtocol( - const SmartPtrCPersistenceProtocolDoc& persistenceProtocol, +void CPersistenceUtils::savePersistenceProtocolCollection( + const SmartPtrCPersistenceProtocolCollectionDoc& persistenceProtocolCollection, const std::string& persistenceDir) { - CAF_CM_STATIC_FUNC_VALIDATE("CPersistenceUtils", "savePersistenceProtocol"); + CAF_CM_STATIC_FUNC_VALIDATE("CPersistenceUtils", "savePersistenceProtocolCollection"); CAF_CM_VALIDATE_STRING(persistenceDir); - if (! persistenceProtocol.IsNull() && ! persistenceProtocol->getAmqpBrokerCollection().IsNull()) { - const std::deque amqpBrokerCollectionInner = - persistenceProtocol->getAmqpBrokerCollection()->getAmqpBroker(); - if (! amqpBrokerCollectionInner.empty()) { + if (! persistenceProtocolCollection.IsNull()) { + const std::deque persistenceProtocolCollectionInner = + persistenceProtocolCollection->getPersistenceProtocol(); + if (! persistenceProtocolCollectionInner.empty()) { const std::string protocolDir = createDirectory(persistenceDir, "protocol"); - for (TConstIterator > - amqpBrokerIter(amqpBrokerCollectionInner); - amqpBrokerIter; - amqpBrokerIter++) { - const SmartPtrCAmqpBrokerDoc amqpBroker = *amqpBrokerIter; + for (TConstIterator > + persistenceProtocolIter(persistenceProtocolCollectionInner); + persistenceProtocolIter; + persistenceProtocolIter++) { + const SmartPtrCPersistenceProtocolDoc persistenceProtocol = *persistenceProtocolIter; - const std::string amqpBrokerId = amqpBroker->getAmqpBrokerId(); - CAF_CM_VALIDATE_STRING(amqpBrokerId); + const std::string protocolName = persistenceProtocol->getProtocolName(); + CAF_CM_VALIDATE_STRING(protocolName); - const std::string amqpQueueDir = createDirectory(protocolDir, amqpBrokerId); + const std::string amqpQueueDir = createDirectory(protocolDir, protocolName); - if (! amqpBroker->getAmqpBrokerId().empty()) { - FileSystemUtils::saveTextFile( - amqpQueueDir, "amqpBrokerId.txt", amqpBroker->getAmqpBrokerId()); - } + FileSystemUtils::saveTextFile( + amqpQueueDir, "protocolName.txt", persistenceProtocol->getProtocolName()); - if (! amqpBroker->getUri().empty()) { + if (! persistenceProtocol->getUri().empty()) { FileSystemUtils::saveTextFile( - amqpQueueDir, "uri.txt", amqpBroker->getUri()); + amqpQueueDir, "uri.txt", persistenceProtocol->getUri()); } - if (! amqpBroker->getTlsCert().empty()) { + if (! persistenceProtocol->getTlsCert().empty()) { FileSystemUtils::saveTextFile( - amqpQueueDir, "tlsCert.pem", amqpBroker->getTlsCert()); + amqpQueueDir, "tlsCert.pem", persistenceProtocol->getTlsCert()); } - if (! amqpBroker->getTlsProtocol().empty()) { + if (! persistenceProtocol->getTlsProtocol().empty()) { FileSystemUtils::saveTextFile( - amqpQueueDir, "tlsProtocol.txt", amqpBroker->getTlsProtocol()); + amqpQueueDir, "tlsProtocol.txt", persistenceProtocol->getTlsProtocol()); } const std::deque tlsCipherCollectionInner = - amqpBroker->getTlsCipherCollection(); + persistenceProtocol->getTlsCipherCollection(); if (! tlsCipherCollectionInner.empty()) { const std::string cipherDir = createDirectory(amqpQueueDir, "tlsCipherCollection"); saveCollection(tlsCipherCollectionInner, cipherDir, "tlsCipher", ".txt"); } - if (! amqpBroker->getTlsCertCollection().IsNull()) { + if (! persistenceProtocol->getTlsCertCollection().IsNull()) { const std::deque tlsCertCollectionInner = - amqpBroker->getTlsCertCollection()->getCert(); + persistenceProtocol->getTlsCertCollection()->getCert(); if (! tlsCertCollectionInner.empty()) { const std::string certCollectionDir = createDirectory(amqpQueueDir, "tlsCertCollection"); @@ -386,7 +370,8 @@ void CPersistenceUtils::savePersistenceProtocol( std::string CPersistenceUtils::loadTextFile( const std::string& dir, - const std::string& file) { + const std::string& file, + const std::string& defaultVal) { CAF_CM_STATIC_FUNC_VALIDATE("CPersistenceUtils", "loadTextFile"); CAF_CM_VALIDATE_STRING(dir); CAF_CM_VALIDATE_STRING(file); @@ -396,6 +381,8 @@ std::string CPersistenceUtils::loadTextFile( std::string rc; if (FileSystemUtils::doesFileExist(path)) { rc = FileSystemUtils::loadTextFile(path); + } else { + rc = defaultVal; } return rc; diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Common/CPersistenceUtils.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Common/CPersistenceUtils.h index 05c9d8e0e..c454cb493 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Common/CPersistenceUtils.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Common/CPersistenceUtils.h @@ -24,14 +24,14 @@ public: static SmartPtrCRemoteSecurityCollectionDoc loadRemoteSecurityCollection( const std::string& persistenceDir); - static SmartPtrCPersistenceProtocolDoc loadPersistenceProtocol( + static SmartPtrCPersistenceProtocolCollectionDoc loadPersistenceProtocolCollection( const std::string& persistenceDir); - static SmartPtrCAmqpBrokerDoc loadAmqpBroker( + static SmartPtrCPersistenceProtocolDoc loadPersistenceProtocol( const std::string& persistenceDir); - static SmartPtrCAmqpBrokerDoc loadAmqpBroker( - const SmartPtrCPersistenceProtocolDoc& persistenceProtocol); + static SmartPtrCPersistenceProtocolDoc loadPersistenceProtocol( + const SmartPtrCPersistenceProtocolCollectionDoc& persistenceProtocolCollection); public: static void savePersistence( @@ -46,14 +46,15 @@ public: const SmartPtrCRemoteSecurityCollectionDoc& remoteSecurityCollection, const std::string& persistenceDir); - static void savePersistenceProtocol( - const SmartPtrCPersistenceProtocolDoc& persistenceProtocol, + static void savePersistenceProtocolCollection( + const SmartPtrCPersistenceProtocolCollectionDoc& persistenceProtocolCollection, const std::string& persistenceDir); private: static std::string loadTextFile( const std::string& dir, - const std::string& file); + const std::string& file, + const std::string& defaultVal = std::string()); private: static std::string createDirectory( diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Common/CProcessUtils.cpp b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Common/CProcessUtils.cpp index bf82550e7..d4ff9b31e 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Common/CProcessUtils.cpp +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Common/CProcessUtils.cpp @@ -409,11 +409,15 @@ const char** ProcessUtils::convertToCharArray( return rc; } -std::string ProcessUtils::convertToString( - const Cdeqstr& deqstr) { +std::string ProcessUtils::convertToString(const Cdeqstr& deqstr) { std::string rc; for (TConstIterator strIter(deqstr); strIter; strIter++) { - const std::string str = *strIter; + std::string str = *strIter; +#ifdef WIN32 + if (rc.empty() && str.find(" ") != std::string::npos) { + str = "\"" + *strIter + "\""; + } +#endif rc += str + std::string(" "); } diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Common/CommonAggregatorLink.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Common/CommonAggregatorLink.h index 05953a9a2..b68eb97bb 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Common/CommonAggregatorLink.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Common/CommonAggregatorLink.h @@ -27,9 +27,10 @@ #include #include -#include +#include +#include +#include -#include "../Globals/CommonGlobalsLink.h" #include "../Logging/LoggingLink.h" #include "../Exception/ExceptionLink.h" #include "../Collections/Iterators/IteratorsInc.h" @@ -55,6 +56,7 @@ #include "CAutoRecMutex.h" #include "CAutoCondition.h" #include "CAutoMutexLockUnlock.h" +#include "CAutoMutexLockUnlockRaw.h" #include "CAutoMutexUnlockLock.h" #include "CThreadSignal.h" #include "CCmdLineOptions.h" diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Common/UriUtils.cpp b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Common/UriUtils.cpp index be7d4c9e0..4fa47027b 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Common/UriUtils.cpp +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Common/UriUtils.cpp @@ -11,7 +11,9 @@ using namespace Caf; -void UriUtils::parseUriString(const std::string& uri, UriUtils::SUriRecord& data) { +void UriUtils::parseUriString( + const std::string& uri, + UriUtils::SUriRecord& data) { CAF_CM_STATIC_FUNC("UriUtils", "parseUriString"); CAF_CM_VALIDATE_STRING(uri); @@ -175,6 +177,31 @@ void UriUtils::parseUriString(const std::string& uri, UriUtils::SUriRecord& data CAF_CM_EXIT; } +std::string UriUtils::buildUriString( + UriUtils::SUriRecord& data) { + CAF_CM_STATIC_FUNC_VALIDATE("UriUtils", "buildUriString"); + CAF_CM_VALIDATE_STRING(data.protocol); + CAF_CM_VALIDATE_STRING(data.host); + CAF_CM_VALIDATE_STRING(data.path); + + std::string rc = data.protocol + ":"; + if (! data.username.empty() || ! data.password.empty()) { + rc += data.username + ":" + data.password + "@"; + } + + rc += data.host; + + if (! data.portStr.empty()) { + rc += ":" + data.portStr; + } + + rc += "/" + data.path; + + rc = appendParameters(rc, data.parameters); + + return rc; +} + void UriUtils::parseFileAddress(const std::string& fileUri, UriUtils::SFileUriRecord& data) { CAF_CM_STATIC_FUNC_LOG("UriUtils", "parseFileAddress"); CAF_CM_VALIDATE_STRING(fileUri); diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Common/UriUtils.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Common/UriUtils.h index e38141368..6f6334555 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Common/UriUtils.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Common/UriUtils.h @@ -31,6 +31,7 @@ namespace UriUtils { }; void COMMONAGGREGATOR_LINKAGE parseUriString(const std::string& uri, SUriRecord& data); + std::string COMMONAGGREGATOR_LINKAGE buildUriString(SUriRecord& data); void COMMONAGGREGATOR_LINKAGE parseFileAddress(const std::string& fileUri, SFileUriRecord& data); std::string COMMONAGGREGATOR_LINKAGE parseRequiredFilePath(const std::string& uriStr); std::string COMMONAGGREGATOR_LINKAGE parseOptionalFilePath(const std::string& uriStr); diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Common/stdafx.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Common/stdafx.h index 404d13ec8..3efb9e2cd 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Common/stdafx.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Common/stdafx.h @@ -11,7 +11,6 @@ #ifdef WIN32 #define COMMONAGGREGATOR_LINKAGE __declspec(dllexport) - #define COMMONGLOBALS_LINKAGE __declspec(dllexport) #define EXCEPTION_LINKAGE __declspec(dllexport) #define LOGGING_LINKAGE __declspec(dllexport) #define SUBSYSTEMBASE_LINKAGE __declspec(dllexport) @@ -19,7 +18,6 @@ #define XMLUTILS_LINKAGE __declspec(dllexport) #else #define COMMONAGGREGATOR_LINKAGE - #define COMMONGLOBALS_LINKAGE #define EXCEPTION_LINKAGE #define LOGGING_LINKAGE #define SUBSYSTEMBASE_LINKAGE diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocXml/PersistenceXml/AmqpBrokerCollectionXml.cpp b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocXml/PersistenceXml/AmqpBrokerCollectionXml.cpp index 680e9ab55..e69de29bb 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocXml/PersistenceXml/AmqpBrokerCollectionXml.cpp +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocXml/PersistenceXml/AmqpBrokerCollectionXml.cpp @@ -1,60 +0,0 @@ -/* - * Author: bwilliams - * Created: Nov 16, 2015 - * - * Copyright (c) 2015 Vmware, Inc. All rights reserved. - * -- VMware Confidential - * - */ - -#include "stdafx.h" -#include "AmqpBrokerCollectionXml.h" - -using namespace Caf; - -void AmqpBrokerCollectionXml::add( - const SmartPtrCAmqpBrokerCollectionDoc amqpBrokerCollectionDoc, - const SmartPtrCXmlElement thisXml) { - CAF_CM_STATIC_FUNC_VALIDATE("AmqpBrokerCollectionXml", "add"); - CAF_CM_VALIDATE_SMARTPTR(amqpBrokerCollectionDoc); - CAF_CM_VALIDATE_SMARTPTR(thisXml); - - const std::deque amqpBrokerVal = - amqpBrokerCollectionDoc->getAmqpBroker(); - - if (! amqpBrokerVal.empty()) { - for (TConstIterator > amqpBrokerIter(amqpBrokerVal); - amqpBrokerIter; amqpBrokerIter++) { - const SmartPtrCXmlElement amqpBrokerXml = - thisXml->createAndAddElement("amqpBroker"); - AmqpBrokerXml::add(*amqpBrokerIter, amqpBrokerXml); - } - } -} - -SmartPtrCAmqpBrokerCollectionDoc AmqpBrokerCollectionXml::parse( - const SmartPtrCXmlElement thisXml) { - CAF_CM_STATIC_FUNC_VALIDATE("AmqpBrokerCollectionXml", "parse"); - CAF_CM_VALIDATE_SMARTPTR(thisXml); - - const CXmlElement::SmartPtrCElementCollection amqpBrokerChildrenXml = - thisXml->findOptionalChildren("amqpBroker"); - - std::deque amqpBrokerVal; - if (! amqpBrokerChildrenXml.IsNull() && ! amqpBrokerChildrenXml->empty()) { - for (TConstIterator amqpBrokerXmlIter(*amqpBrokerChildrenXml); - amqpBrokerXmlIter; amqpBrokerXmlIter++) { - const SmartPtrCXmlElement amqpBrokerXml = amqpBrokerXmlIter->second; - const SmartPtrCAmqpBrokerDoc amqpBrokerDoc = - AmqpBrokerXml::parse(amqpBrokerXml); - amqpBrokerVal.push_back(amqpBrokerDoc); - } - } - - SmartPtrCAmqpBrokerCollectionDoc amqpBrokerCollectionDoc; - amqpBrokerCollectionDoc.CreateInstance(); - amqpBrokerCollectionDoc->initialize(amqpBrokerVal); - - return amqpBrokerCollectionDoc; -} - diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocXml/PersistenceXml/AmqpBrokerCollectionXml.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocXml/PersistenceXml/AmqpBrokerCollectionXml.h index 0fc2fe3e7..e69de29bb 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocXml/PersistenceXml/AmqpBrokerCollectionXml.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocXml/PersistenceXml/AmqpBrokerCollectionXml.h @@ -1,29 +0,0 @@ -/* - * Author: bwilliams - * Created: Nov 16, 2015 - * - * Copyright (c) 2015 Vmware, Inc. All rights reserved. - * -- VMware Confidential - * - */ - -#ifndef AmqpBrokerCollectionXml_h_ -#define AmqpBrokerCollectionXml_h_ - -namespace Caf { - - /// Streams the AmqpBrokerCollection class to/from XML - namespace AmqpBrokerCollectionXml { - - /// Adds the AmqpBrokerCollectionDoc into the XML. - void CAFCORETYPESXML_LINKAGE add( - const SmartPtrCAmqpBrokerCollectionDoc amqpBrokerCollectionDoc, - const SmartPtrCXmlElement thisXml); - - /// Parses the AmqpBrokerCollectionDoc from the XML. - SmartPtrCAmqpBrokerCollectionDoc CAFCORETYPESXML_LINKAGE parse( - const SmartPtrCXmlElement thisXml); - } -} - -#endif diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocXml/PersistenceXml/AmqpBrokerXml.cpp b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocXml/PersistenceXml/AmqpBrokerXml.cpp index b35b511cd..e69de29bb 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocXml/PersistenceXml/AmqpBrokerXml.cpp +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocXml/PersistenceXml/AmqpBrokerXml.cpp @@ -1,144 +0,0 @@ -/* - * Author: bwilliams - * Created: Nov 16, 2015 - * - * Copyright (c) 2015 Vmware, Inc. All rights reserved. - * -- VMware Confidential - * - */ - -#include "stdafx.h" -#include "AmqpBrokerXml.h" - -using namespace Caf; - -void AmqpBrokerXml::add( - const SmartPtrCAmqpBrokerDoc amqpBrokerDoc, - const SmartPtrCXmlElement thisXml) { - CAF_CM_STATIC_FUNC_VALIDATE("AmqpBrokerXml", "add"); - CAF_CM_VALIDATE_SMARTPTR(amqpBrokerDoc); - CAF_CM_VALIDATE_SMARTPTR(thisXml); - - const std::string amqpBrokerIdVal = amqpBrokerDoc->getAmqpBrokerId(); - if (! amqpBrokerIdVal.empty()) { - thisXml->addAttribute("amqpBrokerId", amqpBrokerIdVal); - } - - const std::string uriVal = amqpBrokerDoc->getUri(); - if (! uriVal.empty()) { - thisXml->addAttribute("uri", uriVal); - } - - const std::string tlsCertVal = amqpBrokerDoc->getTlsCert(); - if (! tlsCertVal.empty()) { - const SmartPtrCXmlElement tlsCertXml = thisXml->createAndAddElement("tlsCert"); - tlsCertXml->setValue(tlsCertVal); - } - - const std::string tlsProtocolVal = amqpBrokerDoc->getTlsProtocol(); - if (! tlsProtocolVal.empty()) { - thisXml->addAttribute("tlsProtocol", tlsProtocolVal); - } - - const Cdeqstr tlsCipherCollectionVal = amqpBrokerDoc->getTlsCipherCollection(); - if (! tlsCipherCollectionVal.empty()) { - const SmartPtrCXmlElement tlsCipherCollectionXml = - thisXml->createAndAddElement("tlsCipherCollection"); - for (TConstIterator > valueIter(tlsCipherCollectionVal); - valueIter; valueIter++) { - const SmartPtrCXmlElement valueXml = - tlsCipherCollectionXml->createAndAddElement("cipher"); - valueXml->setValue(*valueIter); - } - } - - const SmartPtrCCertCollectionDoc tlsCertCollectionVal = - amqpBrokerDoc->getTlsCertCollection(); - if (! tlsCertCollectionVal.IsNull()) { - const SmartPtrCXmlElement tlsCertCollectionXml = - thisXml->createAndAddElement("tlsCertCollection"); - CertCollectionXml::add(tlsCertCollectionVal, tlsCertCollectionXml); - } - - const std::string tlsCertPathVal = amqpBrokerDoc->getTlsCertPath(); - if (! tlsCertPathVal.empty()) { - thisXml->addAttribute("tlsCertPath", tlsCertPathVal); - } - - const SmartPtrCCertPathCollectionDoc tlsCertPathCollectionVal = - amqpBrokerDoc->getTlsCertPathCollection(); - if (! tlsCertPathCollectionVal.IsNull()) { - const SmartPtrCXmlElement tlsCertPathCollectionXml = - thisXml->createAndAddElement("tlsCertPathCollection"); - CertPathCollectionXml::add(tlsCertPathCollectionVal, tlsCertPathCollectionXml); - } -} - -SmartPtrCAmqpBrokerDoc AmqpBrokerXml::parse( - const SmartPtrCXmlElement thisXml) { - CAF_CM_STATIC_FUNC_VALIDATE("AmqpBrokerXml", "parse"); - CAF_CM_VALIDATE_SMARTPTR(thisXml); - - const std::string amqpBrokerIdVal = - thisXml->findOptionalAttribute("amqpBrokerId"); - - const std::string uriVal = - thisXml->findOptionalAttribute("uri"); - - std::string tlsCertVal; - const SmartPtrCXmlElement tlsCertXml = thisXml->findOptionalChild("tlsCert"); - if (tlsCertXml) { - tlsCertVal = tlsCertXml->getValue(); - } - - const std::string tlsProtocolVal = - thisXml->findOptionalAttribute("tlsProtocol"); - - const SmartPtrCXmlElement tlsCipherCollectionXml = - thisXml->findOptionalChild("tlsCipherCollection"); - std::deque tlsCipherCollectionVal; - if (! tlsCipherCollectionXml.IsNull()) { - const CXmlElement::SmartPtrCElementCollection valueCollectionXml = - tlsCipherCollectionXml->findOptionalChildren("cipher"); - if (! valueCollectionXml.IsNull() && ! valueCollectionXml->empty()) { - for (TConstIterator valueXmlIter(*valueCollectionXml); - valueXmlIter; valueXmlIter++) { - const SmartPtrCXmlElement valueXml = valueXmlIter->second; - const std::string valueDoc = valueXml->getValue(); - tlsCipherCollectionVal.push_back(valueDoc); - } - } - } - - const SmartPtrCXmlElement tlsCertCollectionXml = - thisXml->findOptionalChild("tlsCertCollection"); - SmartPtrCCertCollectionDoc tlsCertCollectionVal; - if (! tlsCertCollectionXml.IsNull()) { - tlsCertCollectionVal = CertCollectionXml::parse(tlsCertCollectionXml); - } - - const std::string tlsCertPathVal = - thisXml->findOptionalAttribute("tlsCertPath"); - - const SmartPtrCXmlElement tlsCertPathCollectionXml = - thisXml->findOptionalChild("tlsCertPathCollection"); - SmartPtrCCertPathCollectionDoc tlsCertPathCollectionVal; - if (! tlsCertPathCollectionXml.IsNull()) { - tlsCertPathCollectionVal = CertPathCollectionXml::parse(tlsCertPathCollectionXml); - } - - SmartPtrCAmqpBrokerDoc amqpBrokerDoc; - amqpBrokerDoc.CreateInstance(); - amqpBrokerDoc->initialize( - amqpBrokerIdVal, - uriVal, - tlsCertVal, - tlsProtocolVal, - tlsCipherCollectionVal, - tlsCertCollectionVal, - tlsCertPathVal, - tlsCertPathCollectionVal); - - return amqpBrokerDoc; -} - diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocXml/PersistenceXml/AmqpBrokerXml.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocXml/PersistenceXml/AmqpBrokerXml.h index c2c45dd29..e69de29bb 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocXml/PersistenceXml/AmqpBrokerXml.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocXml/PersistenceXml/AmqpBrokerXml.h @@ -1,29 +0,0 @@ -/* - * Author: bwilliams - * Created: Nov 16, 2015 - * - * Copyright (c) 2015 Vmware, Inc. All rights reserved. - * -- VMware Confidential - * - */ - -#ifndef AmqpBrokerXml_h_ -#define AmqpBrokerXml_h_ - -namespace Caf { - - /// Streams the AmqpBroker class to/from XML - namespace AmqpBrokerXml { - - /// Adds the AmqpBrokerDoc into the XML. - void PERSISTENCEXML_LINKAGE add( - const SmartPtrCAmqpBrokerDoc amqpBrokerDoc, - const SmartPtrCXmlElement thisXml); - - /// Parses the AmqpBrokerDoc from the XML. - SmartPtrCAmqpBrokerDoc PERSISTENCEXML_LINKAGE parse( - const SmartPtrCXmlElement thisXml); - } -} - -#endif diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocXml/PersistenceXml/PersistenceProtocolXml.cpp b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocXml/PersistenceXml/PersistenceProtocolXml.cpp index ade7759fb..579eafb02 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocXml/PersistenceXml/PersistenceProtocolXml.cpp +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocXml/PersistenceXml/PersistenceProtocolXml.cpp @@ -19,12 +19,58 @@ void PersistenceProtocolXml::add( CAF_CM_VALIDATE_SMARTPTR(persistenceProtocolDoc); CAF_CM_VALIDATE_SMARTPTR(thisXml); - const SmartPtrCAmqpBrokerCollectionDoc amqpBrokerCollectionVal = - persistenceProtocolDoc->getAmqpBrokerCollection(); - if (! amqpBrokerCollectionVal.IsNull()) { - const SmartPtrCXmlElement amqpBrokerCollectionXml = - thisXml->createAndAddElement("amqpBrokerCollection"); - AmqpBrokerCollectionXml::add(amqpBrokerCollectionVal, amqpBrokerCollectionXml); + const std::string protocolNameVal = persistenceProtocolDoc->getProtocolName(); + if (! protocolNameVal.empty()) { + thisXml->addAttribute("protocolName", protocolNameVal); + } + + const std::string uriVal = persistenceProtocolDoc->getUri(); + if (! uriVal.empty()) { + thisXml->addAttribute("uri", uriVal); + } + + const std::string tlsCertVal = persistenceProtocolDoc->getTlsCert(); + if (! tlsCertVal.empty()) { + const SmartPtrCXmlElement tlsCertXml = thisXml->createAndAddElement("tlsCert"); + tlsCertXml->setValue(tlsCertVal); + } + + const std::string tlsProtocolVal = persistenceProtocolDoc->getTlsProtocol(); + if (! tlsProtocolVal.empty()) { + thisXml->addAttribute("tlsProtocol", tlsProtocolVal); + } + + const Cdeqstr tlsCipherCollectionVal = persistenceProtocolDoc->getTlsCipherCollection(); + if (! tlsCipherCollectionVal.empty()) { + const SmartPtrCXmlElement tlsCipherCollectionXml = + thisXml->createAndAddElement("tlsCipherCollection"); + for (TConstIterator > valueIter(tlsCipherCollectionVal); + valueIter; valueIter++) { + const SmartPtrCXmlElement valueXml = + tlsCipherCollectionXml->createAndAddElement("cipher"); + valueXml->setValue(*valueIter); + } + } + + const SmartPtrCCertCollectionDoc tlsCertCollectionVal = + persistenceProtocolDoc->getTlsCertCollection(); + if (! tlsCertCollectionVal.IsNull()) { + const SmartPtrCXmlElement tlsCertCollectionXml = + thisXml->createAndAddElement("tlsCertCollection"); + CertCollectionXml::add(tlsCertCollectionVal, tlsCertCollectionXml); + } + + const std::string tlsCertPathVal = persistenceProtocolDoc->getTlsCertPath(); + if (! tlsCertPathVal.empty()) { + thisXml->addAttribute("tlsCertPath", tlsCertPathVal); + } + + const SmartPtrCCertPathCollectionDoc tlsCertPathCollectionVal = + persistenceProtocolDoc->getTlsCertPathCollection(); + if (! tlsCertPathCollectionVal.IsNull()) { + const SmartPtrCXmlElement tlsCertPathCollectionXml = + thisXml->createAndAddElement("tlsCertPathCollection"); + CertPathCollectionXml::add(tlsCertPathCollectionVal, tlsCertPathCollectionXml); } } @@ -33,17 +79,65 @@ SmartPtrCPersistenceProtocolDoc PersistenceProtocolXml::parse( CAF_CM_STATIC_FUNC_VALIDATE("PersistenceProtocolXml", "parse"); CAF_CM_VALIDATE_SMARTPTR(thisXml); - const SmartPtrCXmlElement amqpBrokerCollectionXml = - thisXml->findOptionalChild("amqpBrokerCollection"); - SmartPtrCAmqpBrokerCollectionDoc amqpBrokerCollectionVal; - if (! amqpBrokerCollectionXml.IsNull()) { - amqpBrokerCollectionVal = AmqpBrokerCollectionXml::parse(amqpBrokerCollectionXml); + const std::string protocolNameVal = + thisXml->findOptionalAttribute("protocolName"); + + const std::string uriVal = + thisXml->findOptionalAttribute("uri"); + + std::string tlsCertVal; + const SmartPtrCXmlElement tlsCertXml = thisXml->findOptionalChild("tlsCert"); + if (tlsCertXml) { + tlsCertVal = tlsCertXml->getValue(); + } + + const std::string tlsProtocolVal = + thisXml->findOptionalAttribute("tlsProtocol"); + + const SmartPtrCXmlElement tlsCipherCollectionXml = + thisXml->findOptionalChild("tlsCipherCollection"); + std::deque tlsCipherCollectionVal; + if (! tlsCipherCollectionXml.IsNull()) { + const CXmlElement::SmartPtrCElementCollection valueCollectionXml = + tlsCipherCollectionXml->findOptionalChildren("cipher"); + if (! valueCollectionXml.IsNull() && ! valueCollectionXml->empty()) { + for (TConstIterator valueXmlIter(*valueCollectionXml); + valueXmlIter; valueXmlIter++) { + const SmartPtrCXmlElement valueXml = valueXmlIter->second; + const std::string valueDoc = valueXml->getValue(); + tlsCipherCollectionVal.push_back(valueDoc); + } + } + } + + const SmartPtrCXmlElement tlsCertCollectionXml = + thisXml->findOptionalChild("tlsCertCollection"); + SmartPtrCCertCollectionDoc tlsCertCollectionVal; + if (! tlsCertCollectionXml.IsNull()) { + tlsCertCollectionVal = CertCollectionXml::parse(tlsCertCollectionXml); + } + + const std::string tlsCertPathVal = + thisXml->findOptionalAttribute("tlsCertPath"); + + const SmartPtrCXmlElement tlsCertPathCollectionXml = + thisXml->findOptionalChild("tlsCertPathCollection"); + SmartPtrCCertPathCollectionDoc tlsCertPathCollectionVal; + if (! tlsCertPathCollectionXml.IsNull()) { + tlsCertPathCollectionVal = CertPathCollectionXml::parse(tlsCertPathCollectionXml); } SmartPtrCPersistenceProtocolDoc persistenceProtocolDoc; persistenceProtocolDoc.CreateInstance(); persistenceProtocolDoc->initialize( - amqpBrokerCollectionVal); + protocolNameVal, + uriVal, + tlsCertVal, + tlsProtocolVal, + tlsCipherCollectionVal, + tlsCertCollectionVal, + tlsCertPathVal, + tlsCertPathCollectionVal); return persistenceProtocolDoc; } diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocXml/PersistenceXml/PersistenceXml.cpp b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocXml/PersistenceXml/PersistenceXml.cpp index 8106c04e8..4445d5794 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocXml/PersistenceXml/PersistenceXml.cpp +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocXml/PersistenceXml/PersistenceXml.cpp @@ -35,12 +35,12 @@ void PersistenceXml::add( RemoteSecurityCollectionXml::add(remoteSecurityCollectionVal, remoteSecurityCollectionXml); } - const SmartPtrCPersistenceProtocolDoc persistenceProtocolVal = - persistenceDoc->getPersistenceProtocol(); - if (! persistenceProtocolVal.IsNull()) { - const SmartPtrCXmlElement persistenceProtocolXml = - thisXml->createAndAddElement("persistenceProtocol"); - PersistenceProtocolXml::add(persistenceProtocolVal, persistenceProtocolXml); + const SmartPtrCPersistenceProtocolCollectionDoc persistenceProtocolCollectionVal = + persistenceDoc->getPersistenceProtocolCollection(); + if (! persistenceProtocolCollectionVal.IsNull()) { + const SmartPtrCXmlElement persistenceProtocolCollectionXml = + thisXml->createAndAddElement("persistenceProtocolCollection"); + PersistenceProtocolCollectionXml::add(persistenceProtocolCollectionVal, persistenceProtocolCollectionXml); } const std::string versionVal = persistenceDoc->getVersion().empty() ? "1.0" : persistenceDoc->getVersion(); @@ -66,11 +66,11 @@ SmartPtrCPersistenceDoc PersistenceXml::parse( remoteSecurityCollectionVal = RemoteSecurityCollectionXml::parse(remoteSecurityCollectionXml); } - const SmartPtrCXmlElement persistenceProtocolXml = - thisXml->findOptionalChild("persistenceProtocol"); - SmartPtrCPersistenceProtocolDoc persistenceProtocolVal; - if (! persistenceProtocolXml.IsNull()) { - persistenceProtocolVal = PersistenceProtocolXml::parse(persistenceProtocolXml); + const SmartPtrCXmlElement persistenceProtocolCollectionXml = + thisXml->findOptionalChild("persistenceProtocolCollection"); + SmartPtrCPersistenceProtocolCollectionDoc persistenceProtocolCollectionVal; + if (! persistenceProtocolCollectionXml.IsNull()) { + persistenceProtocolCollectionVal = PersistenceProtocolCollectionXml::parse(persistenceProtocolCollectionXml); } const std::string versionVal = @@ -81,7 +81,7 @@ SmartPtrCPersistenceDoc PersistenceXml::parse( persistenceDoc->initialize( localSecurityVal, remoteSecurityCollectionVal, - persistenceProtocolVal, + persistenceProtocolCollectionVal, versionVal); return persistenceDoc; diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocXml/PersistenceXml/PersistenceXmlInc.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocXml/PersistenceXml/PersistenceXmlInc.h index 064c499a9..ac4fb982f 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocXml/PersistenceXml/PersistenceXmlInc.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Doc/DocXml/PersistenceXml/PersistenceXmlInc.h @@ -14,12 +14,11 @@ #include "CertCollectionXml.h" #include "CertPathCollectionXml.h" -#include "AmqpBrokerXml.h" -#include "AmqpBrokerCollectionXml.h" +#include "PersistenceProtocolXml.h" +#include "PersistenceProtocolCollectionXml.h" #include "RemoteSecurityXml.h" #include "RemoteSecurityCollectionXml.h" #include "LocalSecurityXml.h" -#include "PersistenceProtocolXml.h" #include "PersistenceXml.h" #include "PersistenceXmlRoots.h" diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Exception/CValidate.cpp b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Exception/CValidate.cpp index 6a5fd62e1..71950296b 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Exception/CValidate.cpp +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Exception/CValidate.cpp @@ -8,6 +8,7 @@ #include "stdafx.h" #include "CValidate.h" +#include "ValidationMacros.h" using namespace Caf; diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Exception/ValidationMacros.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Exception/ValidationMacros.h index edc5eb92a..249f37936 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Exception/ValidationMacros.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Exception/ValidationMacros.h @@ -9,6 +9,32 @@ #ifndef VALIDATIONMACROS_H_ #define VALIDATIONMACROS_H_ +// String constants used in validation +const char _sPRECOND_ISCONSTRUCTED[] = "Pre-condition failed because object was not constructed successfully"; +const char _sPRECOND_ISINITIALIZED[] = "Pre-condition failed because object was not initialized successfully"; +const char _sPRECOND_ISNOTINITIALIZED[] = "Pre-condition failed because object has already been initialized"; +const char _sPRECOND_ISNOTREADONLY[] = "Pre-condition failed because the object is read-only."; + +const char _sVALIDATE_STRINGEMPTY[] ="Invalid Argument because a string is empty:"; +const char _sVALIDATE_STRINGPTRNULL[] ="Invalid Argument because a string pointer is null:"; +const char _sVALIDATE_STRINGPTREMPTY[] ="Invalid Argument because a string pointer is empty:"; +const char _sVALIDATE_PTRARRAYNULL[] ="Invalid Argument because a pointer array is null:"; +const char _sVALIDATE_PTRARRAYEMPTY[] ="Invalid Argument because a pointer array is empty:"; +const char _sVALIDATE_STL[] ="Invalid Argument because an STL container is empty:"; +const char _sVALIDATE_STL_EMPTY[] ="Invalid Argument because an STL container is not empty:"; +const char _sVALIDATE_STL_ITERATOR[] ="Invalid Argument because an STL iterator is at the end of the containter:"; +const char _sVALIDATE_INTERFACE[] ="Invalid Argument because an interface is NULL:"; +const char _sVALIDATE_ZERO[] ="Invalid Argument because a number is not equal to zero:"; +const char _sVALIDATE_ISNOTZERO[] ="Invalid Argument because a number is equal to zero:"; +const char _sVALIDATE_POSITIVE[] ="Invalid Argument because a number is less-than or equal-to zero:"; +const char _sVALIDATE_NEGATIVE[] ="Invalid Argument because a number is greater-than or equal-to zero:"; +const char _sVALIDATE_NONNEGATIVE[] ="Invalid Argument because a number is less-than zero:"; +const char _sVALIDATE_NOTNULL[] ="Invalid Argument is NULL:"; +const char _sVALIDATE_NULL[] ="Invalid Argument must be NULL:"; +const char _sVALIDATE_BOOL[] ="Invalid Argument because a bool is false:"; +const char _sVALIDATE_GUID[] ="Invalid Argument because a GUID is NULL:"; +const char _sASSERT_FAILED[] ="Assertion failed:"; + // Used internally by some of these macros. #define CAF_CM_EXCEPTION_VALIDATE( _valmsg_, _variable_text_ ) \ CAF_CM_EXCEPTION_VA2(E_INVALIDARG, "%s %s", _valmsg_, _variable_text_) diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Exception/stdafx.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Exception/stdafx.h index de990ff49..6aa7be1f5 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Exception/stdafx.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Exception/stdafx.h @@ -18,7 +18,7 @@ #endif #include -#include "../Globals/CommonGlobalsLink.h" +#include #include "CCafException.h" #include "ClassMacros.h" #include "ExceptionMacros.h" diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Globals/CafContracts.cpp b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Globals/CafContracts.cpp index 8078038e0..e69de29bb 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Globals/CafContracts.cpp +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Globals/CafContracts.cpp @@ -1,69 +0,0 @@ -/* - * Author: bwilliams - * Created: 10/19/2010 - * - * Copyright (c) 2010 Vmware, Inc. All rights reserved. - * -- VMware Confidential - */ - -#include "stdafx.h" -#include - -namespace Caf { - const char* _sConfigTmpDir = "tmp_dir"; - const char* _sConfigInputDir = "input_dir"; - const char* _sConfigOutputDir = "output_dir"; - const char* _sConfigSchemaCacheDir = "schema_cache_dir"; - const char* _sConfigProviderRegDir = "provider_reg_dir"; - const char* _sConfigInstallDir = "install_dir"; - const char* _sConfigInvokersDir = "invokers_dir"; - const char* _sConfigProvidersDir = "providers_dir"; - const char* _sConfigCommonPackagesDir = "common_packages_dir"; - const char* _sConfigWorkingDir = "working_dir"; - const char* _sConfigPrivateKeyFile = "private_key_file"; - const char* _sConfigCertFile = "cert_file"; - - const char* _sProviderHostArea = "providerHost"; - const char* _sManagementAgentArea = "managementAgent"; - - const char* _sSchemaSummaryFilename = "schemaSummary.xml"; - const char* _sProviderResponseFilename = "providerResponse.xml"; - const char* _sStdoutFilename = "_provider_stdout_"; - const char* _sStderrFilename = "_provider_stderr_"; - - const char* _sPayloadRequestFilename = "payloadRequest.xml"; - const char* _sResponseFilename = "response.xml"; - const char* _sErrorResponseFilename = "errorResponse.xml"; - const char* _sProviderRequestFilename = "providerRequest.xml"; - const char* _sInfraErrFilename = "_infraError_"; - - // FxProviderFx related string constants - const char* _sObjIdProviderDriver = "com.vmware.commonagent.providerfx.providerdriver"; - const char* _sObjIdProviderCdifFormatter = "com.vmware.commonagent.providerfx.providercdifformatter"; - - // MA related string constants - const char* _sObjIdCollectSchemaExecutor = "com.vmware.commonagent.maintegration.collectschemaexecutor"; - const char* _sObjIdProviderCollectSchemaExecutor = "com.vmware.commonagent.maintegration.providercollectschemaexecutor"; - const char* _sObjIdProviderExecutor = "com.vmware.commonagent.maintegration.providerexecutor"; - const char* _sObjIdSinglePmeRequestSplitterInstance = "com.vmware.commonagent.maintegration.singlepmerequestsplitterinstance"; - const char* _sObjIdSinglePmeRequestSplitter = "com.vmware.commonagent.maintegration.singlepmerequestsplitter"; - const char* _sObjIdDiagToMgmtRequestTransformerInstance = "com.vmware.commonagent.maintegration.diagtomgmtrequesttransformerinstance"; - const char* _sObjIdDiagToMgmtRequestTransformer = "com.vmware.commonagent.maintegration.diagtomgmtrequesttransformer"; - const char* _sObjIdInstallToMgmtRequestTransformerInstance = "com.vmware.commonagent.maintegration.installtomgmtrequesttransformerinstance"; - const char* _sObjIdInstallToMgmtRequestTransformer = "com.vmware.commonagent.maintegration.installtomgmtrequesttransformer"; - const char* _sObjIdPersistenceNamespaceDb = "com.vmware.commonagent.maintegration.persistencenamespacedb"; - const char* _sObjIdConfigEnv = "com.vmware.commonagent.maintegration.configenv"; - - const char* _sObjIdAttachmentRequestTransformerInstance = "com.vmware.commonagent.maintegration.attachmentrequesttransformerinstance"; - const char* _sObjIdAttachmentRequestTransformer = "com.vmware.commonagent.maintegration.attachmentrequesttransformer"; - const char* _sObjIdVersionTransformerInstance = "com.vmware.commonagent.maintegration.versiontransformerinstance"; - const char* _sObjIdVersionTransformer = "com.vmware.commonagent.maintegration.versiontransformer"; - - // Framework related string constants - const char* _sObjIdErrorToResponseTransformerInstance = "com.vmware.commonagent.cafintegration.errortoresponsetransformerinstance"; - const char* _sObjIdErrorToResponseTransformer = "com.vmware.commonagent.cafintegration.errortoresponsetransformer"; - const char* _sObjIdPayloadHeaderEnricherInstance = "com.vmware.commonagent.cafintegration.payloadheaderenricherinstance"; - const char* _sObjIdPayloadHeaderEnricher = "com.vmware.commonagent.cafintegration.payloadheaderenricher"; - const char* _sObjIdEnvelopeToPayloadTransformerInstance = "com.vmware.commonagent.cafintegration.envelopetopayloadtransformerinstance"; - const char* _sObjIdEnvelopeToPayloadTransformer = "com.vmware.commonagent.cafintegration.envelopetopayloadtransformer"; -} diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Globals/ClassMacroStrings.cpp b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Globals/ClassMacroStrings.cpp index 037d01f73..e69de29bb 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Globals/ClassMacroStrings.cpp +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Globals/ClassMacroStrings.cpp @@ -1,32 +0,0 @@ -/* - * Copyright (c) 2011 VMware, Inc. All rights reserved. - * -- VMware Confidential - */ - -#include "stdafx.h" -#include "ClassMacroStrings.h" - -const char _sPRECOND_ISCONSTRUCTED[] = "Pre-condition failed because object was not constructed successfully"; -const char _sPRECOND_ISINITIALIZED[] = "Pre-condition failed because object was not initialized successfully"; -const char _sPRECOND_ISNOTINITIALIZED[] = "Pre-condition failed because object has already been initialized"; -const char _sPRECOND_ISNOTREADONLY[] = "Pre-condition failed because the object is read-only."; - -const char _sVALIDATE_STRINGEMPTY[] ="Invalid Argument because a string is empty:"; -const char _sVALIDATE_STRINGPTRNULL[] ="Invalid Argument because a string pointer is null:"; -const char _sVALIDATE_STRINGPTREMPTY[] ="Invalid Argument because a string pointer is empty:"; -const char _sVALIDATE_PTRARRAYNULL[] ="Invalid Argument because a pointer array is null:"; -const char _sVALIDATE_PTRARRAYEMPTY[] ="Invalid Argument because a pointer array is empty:"; -const char _sVALIDATE_STL[] ="Invalid Argument because an STL container is empty:"; -const char _sVALIDATE_STL_EMPTY[] ="Invalid Argument because an STL container is not empty:"; -const char _sVALIDATE_STL_ITERATOR[] ="Invalid Argument because an STL iterator is at the end of the containter:"; -const char _sVALIDATE_INTERFACE[] ="Invalid Argument because an interface is NULL:"; -const char _sVALIDATE_ZERO[] ="Invalid Argument because a number is not equal to zero:"; -const char _sVALIDATE_ISNOTZERO[] ="Invalid Argument because a number is equal to zero:"; -const char _sVALIDATE_POSITIVE[] ="Invalid Argument because a number is less-than or equal-to zero:"; -const char _sVALIDATE_NEGATIVE[] ="Invalid Argument because a number is greater-than or equal-to zero:"; -const char _sVALIDATE_NONNEGATIVE[] ="Invalid Argument because a number is less-than zero:"; -const char _sVALIDATE_NOTNULL[] ="Invalid Argument is NULL:"; -const char _sVALIDATE_NULL[] ="Invalid Argument must be NULL:"; -const char _sVALIDATE_BOOL[] ="Invalid Argument because a bool is false:"; -const char _sVALIDATE_GUID[] ="Invalid Argument because a GUID is NULL:"; -const char _sASSERT_FAILED[] ="Assertion failed:"; diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Globals/ClassMacroStrings.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Globals/ClassMacroStrings.h index 1c6c0f7b2..e69de29bb 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Globals/ClassMacroStrings.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Globals/ClassMacroStrings.h @@ -1,33 +0,0 @@ -/* - * Copyright (c) 2011 VMware, Inc. All rights reserved. - * -- VMware Confidential - */ - -#ifndef _Common_ClassMacroStrings_H -#define _Common_ClassMacroStrings_H - -extern COMMONGLOBALS_LINKAGE const char _sPRECOND_ISCONSTRUCTED[]; -extern COMMONGLOBALS_LINKAGE const char _sPRECOND_ISINITIALIZED[]; -extern COMMONGLOBALS_LINKAGE const char _sPRECOND_ISNOTINITIALIZED[]; -extern COMMONGLOBALS_LINKAGE const char _sPRECOND_ISNOTREADONLY[]; -extern COMMONGLOBALS_LINKAGE const char _sVALIDATE_STRINGEMPTY[]; -extern COMMONGLOBALS_LINKAGE const char _sVALIDATE_STRINGPTRNULL[]; -extern COMMONGLOBALS_LINKAGE const char _sVALIDATE_STRINGPTREMPTY[]; -extern COMMONGLOBALS_LINKAGE const char _sVALIDATE_PTRARRAYNULL[]; -extern COMMONGLOBALS_LINKAGE const char _sVALIDATE_PTRARRAYEMPTY[]; -extern COMMONGLOBALS_LINKAGE const char _sVALIDATE_STL[]; -extern COMMONGLOBALS_LINKAGE const char _sVALIDATE_STL_EMPTY[]; -extern COMMONGLOBALS_LINKAGE const char _sVALIDATE_STL_ITERATOR[]; -extern COMMONGLOBALS_LINKAGE const char _sVALIDATE_INTERFACE[]; -extern COMMONGLOBALS_LINKAGE const char _sVALIDATE_ZERO[]; -extern COMMONGLOBALS_LINKAGE const char _sVALIDATE_ISNOTZERO[]; -extern COMMONGLOBALS_LINKAGE const char _sVALIDATE_POSITIVE[]; -extern COMMONGLOBALS_LINKAGE const char _sVALIDATE_NEGATIVE[]; -extern COMMONGLOBALS_LINKAGE const char _sVALIDATE_NONNEGATIVE[]; -extern COMMONGLOBALS_LINKAGE const char _sVALIDATE_NOTNULL[]; -extern COMMONGLOBALS_LINKAGE const char _sVALIDATE_NULL[]; -extern COMMONGLOBALS_LINKAGE const char _sVALIDATE_BOOL[]; -extern COMMONGLOBALS_LINKAGE const char _sVALIDATE_GUID[]; -extern COMMONGLOBALS_LINKAGE const char _sASSERT_FAILED[]; - -#endif diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Globals/CommonDefines.cpp b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Globals/CommonDefines.cpp index 06847c34d..e69de29bb 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Globals/CommonDefines.cpp +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Globals/CommonDefines.cpp @@ -1,28 +0,0 @@ -/* - * Copyright (c) 2011 VMware, Inc. All rights reserved. - * -- VMware Confidential - */ - -#include "stdafx.h" -#include "CommonDefines.h" - -namespace Caf { - const char* _sAppConfigGlobalParamRootDir = "root_dir"; - const char* _sAppConfigGlobalParamDataDir = "data_dir"; - const char* _sAppConfigGlobalParamLogDir = "log_dir"; - const char* _sAppConfigGlobalParamLogConfigFile = "log_config_file"; - const char* _sAppConfigGlobalParamInputDir = "input_dir"; - const char* _sAppConfigGlobalParamOutputDir = "output_dir"; - const char* _sAppConfigGlobalParamDbDir = "db_dir"; - const char* _sAppConfigGlobalThreadStackSizeKb = "thread_stack_size_kb"; - - const GUID CAFCOMMON_GUID_NULL = {0}; - -#ifdef WIN32 - const char* CAFCOMMON_PATH_DELIM = "\\"; - const char CAFCOMMON_PATH_DELIM_CHAR = '\\'; -#else - const char* CAFCOMMON_PATH_DELIM = "/"; - const char CAFCOMMON_PATH_DELIM_CHAR = '/'; -#endif -} diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Globals/CommonDefines.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Globals/CommonDefines.h index 696d080fd..e69de29bb 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Globals/CommonDefines.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Globals/CommonDefines.h @@ -1,26 +0,0 @@ -/* - * Copyright (c) 2011 VMware, Inc. All rights reserved. - * -- VMware Confidential - */ - -#ifndef _Common_CommonDefines_H -#define _Common_CommonDefines_H - -namespace Caf { - // AppConfig common parameter names - extern COMMONGLOBALS_LINKAGE const char* _sAppConfigGlobalParamRootDir; - extern COMMONGLOBALS_LINKAGE const char* _sAppConfigGlobalParamDataDir; - extern COMMONGLOBALS_LINKAGE const char* _sAppConfigGlobalParamLogDir; - extern COMMONGLOBALS_LINKAGE const char* _sAppConfigGlobalParamLogConfigFile; - extern COMMONGLOBALS_LINKAGE const char* _sAppConfigGlobalParamInputDir; - extern COMMONGLOBALS_LINKAGE const char* _sAppConfigGlobalParamOutputDir; - extern COMMONGLOBALS_LINKAGE const char* _sAppConfigGlobalParamDbDir; - extern COMMONGLOBALS_LINKAGE const char* _sAppConfigGlobalThreadStackSizeKb; - - extern COMMONGLOBALS_LINKAGE const GUID CAFCOMMON_GUID_NULL; - - extern COMMONGLOBALS_LINKAGE const char* CAFCOMMON_PATH_DELIM; - extern COMMONGLOBALS_LINKAGE const char CAFCOMMON_PATH_DELIM_CHAR; -} - -#endif diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Globals/CommonGlobalsLink.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Globals/CommonGlobalsLink.h index a451325e0..e69de29bb 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Globals/CommonGlobalsLink.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Globals/CommonGlobalsLink.h @@ -1,24 +0,0 @@ -/* - * Copyright (c) 2011 Vmware, Inc. All rights reserved. - * -- VMware Confidential - */ - -#ifndef Common_CommonGlobalsLink_h_ -#define Common_CommonGlobalsLink_h_ - -#ifndef COMMONGLOBALS_LINKAGE - #ifdef WIN32 - #ifdef FRAMEWORK_BUILD - #define COMMONGLOBALS_LINKAGE __declspec(dllexport) - #else - #define COMMONGLOBALS_LINKAGE __declspec(dllimport) - #endif - #else - #define COMMONGLOBALS_LINKAGE - #endif -#endif - -#include "CommonDefines.h" -#include "ClassMacroStrings.h" - -#endif diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Globals/Integration.cpp b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Globals/Integration.cpp index 1db391d17..e69de29bb 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Globals/Integration.cpp +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Globals/Integration.cpp @@ -1,17 +0,0 @@ -/* - * Author: bwilliams - * Created: 10/19/2010 - * - * Copyright (c) 2010 Vmware, Inc. All rights reserved. - * -- VMware Confidential - */ - -#include "stdafx.h" -#include "../../include/Integration.h" - -namespace Caf { - const char* _sObjIdIntegrationObjectFactory = "com.vmware.commonagent.integration.objectfactory"; - const char* _sObjIdErrorChannel = "com.vmware.commonagent.integration.channels.errorchannel"; - const char* _sObjIdNullChannel = "com.vmware.commonagent.integration.channels.nullchannel"; - const char* _sObjIdHeaderExpressionInvoker = "com.vmware.commonagent.integration.headerexpressioninvoker"; -} diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Globals/stdafx.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Globals/stdafx.h index 8067b04c0..e69de29bb 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Globals/stdafx.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Globals/stdafx.h @@ -1,12 +0,0 @@ -/* - * Copyright (c) 2011 Vmware, Inc. All rights reserved. - * -- VMware Confidential - */ - -#ifndef stdafx_h_ -#define stdafx_h_ - -#include -#include "CommonGlobalsLink.h" - -#endif // #ifndef stdafx_h_ diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Integration/Caf/CCafMessageCreator.cpp b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Integration/Caf/CCafMessageCreator.cpp index 95e66f631..36bb9a271 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Integration/Caf/CCafMessageCreator.cpp +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Integration/Caf/CCafMessageCreator.cpp @@ -361,9 +361,9 @@ SmartPtrIIntMessage CCafMessageCreator::createPayloadEnvelope( const SmartPtrCProtocolCollectionDoc& protocolCollection) { CAF_CM_STATIC_FUNC_LOG_VALIDATE("CCafMessageCreator", "createPayloadEnvelope"); CAF_CM_VALIDATE_STRING(payloadStr); - CAF_CM_VALIDATE_GUID(clientId); + // clientId is optional CAF_CM_VALIDATE_GUID(requestId); - CAF_CM_VALIDATE_STRING(pmeId); + // pmeId is optional CAF_CM_VALIDATE_STRING(payloadType); CAF_CM_VALIDATE_STRING(payloadVersion); diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Integration/Caf/stdafx.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Integration/Caf/stdafx.h index 819347ff6..bd31f0f1a 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Integration/Caf/stdafx.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Integration/Caf/stdafx.h @@ -16,7 +16,6 @@ #endif #include -#include #include #include #include diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Integration/Core/stdafx.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Integration/Core/stdafx.h index 2b96f1c9c..f00ca8a22 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Integration/Core/stdafx.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Integration/Core/stdafx.h @@ -16,7 +16,7 @@ #endif #include -#include +#include #include "FileHeaders.h" #include "MessageHeaders.h" diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/src/SubSystemBase/CAutoMutexLockUnlockRaw.cpp b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/SubSystemBase/CAutoMutexLockUnlockRaw.cpp index f655a307f..e69de29bb 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/src/SubSystemBase/CAutoMutexLockUnlockRaw.cpp +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/SubSystemBase/CAutoMutexLockUnlockRaw.cpp @@ -1,41 +0,0 @@ -/* - * Author: mdonahue - * Created: Jan 20, 2011 - * - * Copyright (c) 2011 Vmware, Inc. All rights reserved. - * -- VMware Confidential - */ - -#include "stdafx.h" -#include "CAutoMutexLockUnlockRaw.h" - -using namespace Caf; - -CAutoMutexLockUnlockRaw::CAutoMutexLockUnlockRaw(GMutex* mutex) : - CAF_CM_INIT("CAutoMutexLockUnlockRaw") { - _mutex = mutex; - _recMutex = NULL; - - if (_mutex) { - ::g_mutex_lock(_mutex); - } -} - -CAutoMutexLockUnlockRaw::CAutoMutexLockUnlockRaw(GRecMutex* recMutex) : - CAF_CM_INIT("CAutoMutexLockUnlockRaw") { - _mutex = NULL; - _recMutex = recMutex; - - if (_recMutex) { - ::g_rec_mutex_lock(_recMutex); - } -} - -CAutoMutexLockUnlockRaw::~CAutoMutexLockUnlockRaw() { - if (_mutex) { - ::g_mutex_unlock(_mutex); - } - if (_recMutex) { - ::g_rec_mutex_unlock(_recMutex); - } -} diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/src/SubSystemBase/CAutoMutexLockUnlockRaw.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/SubSystemBase/CAutoMutexLockUnlockRaw.h index 0b122cd77..e69de29bb 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/src/SubSystemBase/CAutoMutexLockUnlockRaw.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/SubSystemBase/CAutoMutexLockUnlockRaw.h @@ -1,33 +0,0 @@ -/* - * Author: mdonahue - * Created: Jan 20, 2011 - * - * Copyright (c) 2011 Vmware, Inc. All rights reserved. - * -- VMware Confidential - */ - -#ifndef CAUTOMUTEXLOCKUNLOCKRAW_H_ -#define CAUTOMUTEXLOCKUNLOCKRAW_H_ - -namespace Caf { - -class SUBSYSTEMBASE_LINKAGE CAutoMutexLockUnlockRaw { -public: - CAutoMutexLockUnlockRaw(GMutex* mutex); - - CAutoMutexLockUnlockRaw(GRecMutex* recMutex); - - ~CAutoMutexLockUnlockRaw(); - -private: - GMutex* _mutex; - GRecMutex* _recMutex; - -private: - CAF_CM_CREATE; - CAF_CM_DECLARE_NOCOPY(CAutoMutexLockUnlockRaw); -}; - -} - -#endif /* CAUTOMUTEXLOCKUNLOCKRAW_H_ */ diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/src/SubSystemBase/SubSystemBaseLink.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/SubSystemBase/SubSystemBaseLink.h index 676f594b5..90fa14aa5 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/src/SubSystemBase/SubSystemBaseLink.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/SubSystemBase/SubSystemBaseLink.h @@ -22,7 +22,6 @@ #include "SubSystemBaseInc.h" -#include "CAutoMutexLockUnlockRaw.h" #include "CEcmDllManager.h" #include "CEcmSubSystem.h" #include "CEcmSubSystemModule.h" diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Xml/MarkupParser/stdafx.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Xml/MarkupParser/stdafx.h index a414609a0..ff86dc2dd 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Xml/MarkupParser/stdafx.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Xml/MarkupParser/stdafx.h @@ -18,8 +18,8 @@ #endif #include +#include #include "../../Common/CAutoMutexLockUnlock.h" -#include "../../Globals/CommonGlobalsLink.h" #include "../../Exception/ExceptionLink.h" #endif /* STDAFX_H_ */ diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Xml/XmlUtils/stdafx.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Xml/XmlUtils/stdafx.h index 979e03759..7533c54d8 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Xml/XmlUtils/stdafx.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/Xml/XmlUtils/stdafx.h @@ -18,7 +18,7 @@ #endif #include -#include "../../Globals/CommonGlobalsLink.h" +#include #include "../../Exception/ExceptionLink.h" #include "../../Logging/LoggingLink.h" #include "../../Collections/Iterators/IteratorsInc.h" diff --git a/open-vm-tools/common-agent/Cpp/Framework/Framework/src/stdafx.h b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/stdafx.h index db569557d..11291d113 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Framework/src/stdafx.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Framework/src/stdafx.h @@ -12,7 +12,7 @@ #define BASEPLATFORM_LINKAGE #endif -#include "../../include/BaseDefines.h" +#include #include "BasePlatformInc.h" #endif // #ifndef stdafx_h_ diff --git a/open-vm-tools/common-agent/Cpp/Framework/Subsystems/CafIntegration/src/CafIntegration.cpp b/open-vm-tools/common-agent/Cpp/Framework/Subsystems/CafIntegration/src/CafIntegration.cpp index cbd5293f9..b6e5d6b05 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Subsystems/CafIntegration/src/CafIntegration.cpp +++ b/open-vm-tools/common-agent/Cpp/Framework/Subsystems/CafIntegration/src/CafIntegration.cpp @@ -10,6 +10,15 @@ using namespace Caf; +namespace Caf { + const char* _sObjIdErrorToResponseTransformerInstance = "com.vmware.commonagent.cafintegration.errortoresponsetransformerinstance"; + const char* _sObjIdErrorToResponseTransformer = "com.vmware.commonagent.cafintegration.errortoresponsetransformer"; + const char* _sObjIdPayloadHeaderEnricherInstance = "com.vmware.commonagent.cafintegration.payloadheaderenricherinstance"; + const char* _sObjIdPayloadHeaderEnricher = "com.vmware.commonagent.cafintegration.payloadheaderenricher"; + const char* _sObjIdEnvelopeToPayloadTransformerInstance = "com.vmware.commonagent.cafintegration.envelopetopayloadtransformerinstance"; + const char* _sObjIdEnvelopeToPayloadTransformer = "com.vmware.commonagent.cafintegration.envelopetopayloadtransformer"; +} + CEcmSubSystemModule _Module; CAF_BEGIN_OBJECT_MAP(ObjectMap) diff --git a/open-vm-tools/common-agent/Cpp/Framework/Subsystems/CafIntegration/src/stdafx.h b/open-vm-tools/common-agent/Cpp/Framework/Subsystems/CafIntegration/src/stdafx.h index 1793c88fb..299b563a3 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Subsystems/CafIntegration/src/stdafx.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Subsystems/CafIntegration/src/stdafx.h @@ -12,13 +12,18 @@ //{{CAF_SUBSYSTEM}} #include -#include -#include #include #include #include -#include +namespace Caf { + extern const char* _sObjIdErrorToResponseTransformerInstance; + extern const char* _sObjIdErrorToResponseTransformer; + extern const char* _sObjIdPayloadHeaderEnricherInstance; + extern const char* _sObjIdPayloadHeaderEnricher; + extern const char* _sObjIdEnvelopeToPayloadTransformerInstance; + extern const char* _sObjIdEnvelopeToPayloadTransformer; +} #include "CErrorToResponseTransformerInstance.h" #include "CErrorToResponseTransformer.h" diff --git a/open-vm-tools/common-agent/Cpp/Framework/Subsystems/Integration/src/Integration.cpp b/open-vm-tools/common-agent/Cpp/Framework/Subsystems/Integration/src/Integration.cpp index a340481a3..618cf9718 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Subsystems/Integration/src/Integration.cpp +++ b/open-vm-tools/common-agent/Cpp/Framework/Subsystems/Integration/src/Integration.cpp @@ -14,6 +14,13 @@ using namespace Caf; +namespace Caf { + const char* _sObjIdIntegrationObjectFactory = "com.vmware.commonagent.integration.objectfactory"; + const char* _sObjIdErrorChannel = "com.vmware.commonagent.integration.channels.errorchannel"; + const char* _sObjIdNullChannel = "com.vmware.commonagent.integration.channels.nullchannel"; + const char* _sObjIdHeaderExpressionInvoker = "com.vmware.commonagent.integration.headerexpressioninvoker"; +} + CEcmSubSystemModule _Module; CAF_BEGIN_OBJECT_MAP(ObjectMap) diff --git a/open-vm-tools/common-agent/Cpp/Framework/Subsystems/Integration/src/stdafx.h b/open-vm-tools/common-agent/Cpp/Framework/Subsystems/Integration/src/stdafx.h index 64ce09299..105e2bf89 100644 --- a/open-vm-tools/common-agent/Cpp/Framework/Subsystems/Integration/src/stdafx.h +++ b/open-vm-tools/common-agent/Cpp/Framework/Subsystems/Integration/src/stdafx.h @@ -12,9 +12,16 @@ //{{CAF_SUBSYSTEM}} #include -#include #include +namespace Caf { + // Integration Contracts + extern const char* _sObjIdIntegrationObjectFactory; + extern const char* _sObjIdErrorChannel; + extern const char* _sObjIdNullChannel; + extern const char* _sObjIdHeaderExpressionInvoker; +} + namespace Caf { // template function to create integration objects diff --git a/open-vm-tools/common-agent/Cpp/InternalProviders/Install_Provider/src/stdafx.h b/open-vm-tools/common-agent/Cpp/InternalProviders/Install_Provider/src/stdafx.h index 43ee3c0d7..d88784b06 100644 --- a/open-vm-tools/common-agent/Cpp/InternalProviders/Install_Provider/src/stdafx.h +++ b/open-vm-tools/common-agent/Cpp/InternalProviders/Install_Provider/src/stdafx.h @@ -12,7 +12,6 @@ //{{CAF_SUBSYSTEM}} #include -#include #include #include #include @@ -23,15 +22,15 @@ namespace Caf { extern const char* _sInstallProviderSpecFilename; } -#include "../../Install_Provider/src/IPackage.h" +#include "IPackage.h" -#include "../../Install_Provider/src/CInstallUtils.h" -#include "../../Install_Provider/src/CPathBuilder.h" +#include "CInstallUtils.h" +#include "CPathBuilder.h" -#include "../../Install_Provider/src/CPackageExecutor.h" -#include "../../Install_Provider/src/CPackageInstaller.h" -#include "../../Install_Provider/src/CProviderInstaller.h" +#include "CPackageExecutor.h" +#include "CPackageInstaller.h" +#include "CProviderInstaller.h" -#include "../../Install_Provider/src/CInstallProvider.h" +#include "CInstallProvider.h" #endif // #ifndef stdafx_h_ diff --git a/open-vm-tools/common-agent/Cpp/InternalProviders/RemoteCommand_Provider/src/stdafx.h b/open-vm-tools/common-agent/Cpp/InternalProviders/RemoteCommand_Provider/src/stdafx.h index 2c4dd9bb3..63a9c1878 100644 --- a/open-vm-tools/common-agent/Cpp/InternalProviders/RemoteCommand_Provider/src/stdafx.h +++ b/open-vm-tools/common-agent/Cpp/InternalProviders/RemoteCommand_Provider/src/stdafx.h @@ -12,11 +12,10 @@ //{{CAF_SUBSYSTEM}} #include -#include #include #include #include -#include "../../RemoteCommand_Provider/src/CRemoteCommandProvider.h" +#include "CRemoteCommandProvider.h" #endif // #ifndef stdafx_h_ diff --git a/open-vm-tools/common-agent/Cpp/ManagementAgent/ManagementAgent/src/stdafx.h b/open-vm-tools/common-agent/Cpp/ManagementAgent/ManagementAgent/src/stdafx.h index 474f10e3a..a2bbe6e12 100644 --- a/open-vm-tools/common-agent/Cpp/ManagementAgent/ManagementAgent/src/stdafx.h +++ b/open-vm-tools/common-agent/Cpp/ManagementAgent/ManagementAgent/src/stdafx.h @@ -10,8 +10,6 @@ #define stdafx_h_ #include -#include -#include #include #ifdef WIN32 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 9e1497678..59e8bf647 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 @@ -14,148 +14,113 @@ using namespace Caf; CConfigEnv::CConfigEnv() : _isInitialized(false), CAF_CM_INIT_LOG("CConfigEnv") { + CAF_CM_INIT_THREADSAFE; } CConfigEnv::~CConfigEnv() { } -void CConfigEnv::initialize() { - CAF_CM_FUNCNAME_VALIDATE("initialize"); - CAF_CM_PRECOND_ISNOTINITIALIZED(_isInitialized); +void CConfigEnv::initializeBean( + const IBean::Cargs& ctorArgs, + const IBean::Cprops& properties) { +} + +void CConfigEnv::terminateBean() { +} - _persistenceDir = AppConfigUtils::getRequiredString("persistence_dir"); - _scriptsDir = AppConfigUtils::getRequiredString("scripts_dir"); - _outputDir = AppConfigUtils::getRequiredString(_sAppConfigGlobalParamOutputDir); - _configDir = AppConfigUtils::getRequiredString("config_dir"); - _vcidPath = "/etc/vmware-tools/GuestProxyData/VmVcUuid/vm.vc.uuid"; +void CConfigEnv::initialize( + const SmartPtrIPersistence& persistenceRemove) { + CAF_CM_LOCK_UNLOCK; + + if (_isInitialized) { + if (! persistenceRemove.IsNull() && _persistenceRemove.IsNull()) { + _persistenceRemove = persistenceRemove; + } + } else { + _persistenceDir = AppConfigUtils::getRequiredString("persistence_dir"); + _scriptsDir = AppConfigUtils::getRequiredString("scripts_dir"); + _outputDir = AppConfigUtils::getRequiredString(_sAppConfigGlobalParamOutputDir); + _configDir = AppConfigUtils::getRequiredString("config_dir"); + _persistenceAppconfigPath = FileSystemUtils::buildPath(_configDir, "persistence-appconfig"); + std::string guestProxyDir; #ifdef _WIN32 - _startListenerScript = FileSystemUtils::buildPath(_scriptsDir, "start-listener.bat"); - _stopListenerScript = FileSystemUtils::buildPath(_scriptsDir, "stop-listener.bat"); - _startMaScript = FileSystemUtils::buildPath(_scriptsDir, "start-ma.bat"); - _stopMaScript = FileSystemUtils::buildPath(_scriptsDir, "stop-ma.bat"); + _startListenerScript = FileSystemUtils::buildPath(_scriptsDir, "start-listener.bat"); + _stopListenerScript = FileSystemUtils::buildPath(_scriptsDir, "stop-listener.bat"); + _startMaScript = FileSystemUtils::buildPath(_scriptsDir, "start-ma.bat"); + _stopMaScript = FileSystemUtils::buildPath(_scriptsDir, "stop-ma.bat"); + + std::string programData; + CEnvironmentUtils::readEnvironmentVar("ProgramData", programData); + guestProxyDir = FileSystemUtils::buildPath(programData, "VMware", "VMware Tools", "GuestProxyData"); #else - _startListenerScript = FileSystemUtils::buildPath(_scriptsDir, "start-listener"); - _stopListenerScript = FileSystemUtils::buildPath(_scriptsDir, "stop-listener"); - _startMaScript = FileSystemUtils::buildPath(_scriptsDir, "start-ma"); - _stopMaScript = FileSystemUtils::buildPath(_scriptsDir, "stop-ma"); + _startListenerScript = FileSystemUtils::buildPath(_scriptsDir, "start-listener"); + _stopListenerScript = FileSystemUtils::buildPath(_scriptsDir, "stop-listener"); + _startMaScript = FileSystemUtils::buildPath(_scriptsDir, "start-ma"); + _stopMaScript = FileSystemUtils::buildPath(_scriptsDir, "stop-ma"); + + guestProxyDir = "/etc/vmware-tools/GuestProxyData"; #endif - _isInitialized = true; + _vcidPath = FileSystemUtils::buildPath(guestProxyDir, "VmVcUuid", "vm.vc.uuid"); + _cacertPath = FileSystemUtils::buildPath(guestProxyDir, "server", "cert.pem"); + + _persistence = CPersistenceUtils::loadPersistence(_persistenceDir); + _persistenceUpdated = _persistence; + _persistenceRemove = persistenceRemove; + + _isInitialized = true; + } } SmartPtrCPersistenceDoc CConfigEnv::getUpdated( const int32 timeout) { CAF_CM_FUNCNAME_VALIDATE("getUpdated"); + CAF_CM_LOCK_UNLOCK; CAF_CM_PRECOND_ISINITIALIZED(_isInitialized); - if (_persistence.IsNull()) { - _persistence = CPersistenceUtils::loadPersistence(_persistenceDir); + const SmartPtrCPersistenceDoc persistenceTmp = + CConfigEnvMerge::mergePersistence(_persistence, _cacertPath, _vcidPath); + if (! persistenceTmp.IsNull() || ! FileSystemUtils::doesFileExist(_persistenceAppconfigPath)) { + if (! persistenceTmp.IsNull()) { + _persistence = persistenceTmp; + } + + savePersistenceAppconfig(_persistence, _configDir); + restartRunningListener(); } - return _persistence; + SmartPtrCPersistenceDoc rc; + if (! _persistenceUpdated.IsNull()) { + CAF_CM_LOG_DEBUG_VA1("Returning persistence info - %s", _persistenceDir.c_str()); + rc = _persistenceUpdated; + _persistenceUpdated = SmartPtrCPersistenceDoc(); + } + + return rc; } void CConfigEnv::update( const SmartPtrCPersistenceDoc& persistence) { CAF_CM_FUNCNAME_VALIDATE("update"); + CAF_CM_LOCK_UNLOCK; CAF_CM_PRECOND_ISINITIALIZED(_isInitialized); - if (_persistence.IsNull()) { - _persistence = CPersistenceUtils::loadPersistence(_persistenceDir); - } + const SmartPtrCPersistenceDoc persistenceTmp = + CPersistenceMerge::mergePersistence(_persistence, persistence); + if (! persistenceTmp.IsNull()) { + CAF_CM_LOG_DEBUG_VA1("Updating persistence info - %s", _persistenceDir.c_str()); - const SmartPtrCPersistenceDoc persistenceTmp = merge(_persistence, persistence); - if (_persistence != persistenceTmp) { _persistence = persistenceTmp; + _persistenceUpdated = createPersistenceUpdated(_persistence); CPersistenceUtils::savePersistence(_persistence, _persistenceDir); - savePersistenceAppconfig(_persistence, _configDir); - //executeScript(_stopListenerScript, _outputDir); - //executeScript(_stopMaScript, _outputDir); - //executeScript(_startListenerScript, _outputDir); - //executeScript(_startMaScript, _outputDir); - } -} + restartRunningListener(); -void CConfigEnv::remove( - const SmartPtrCPersistenceDoc& persistence) { - CAF_CM_FUNCNAME("remove"); - CAF_CM_PRECOND_ISINITIALIZED(_isInitialized); - CAF_CM_VALIDATE_SMARTPTR(persistence); - - CAF_CM_EXCEPTIONEX_VA0(UnsupportedOperationException, E_NOTIMPL, "Not implemented"); -} - -SmartPtrCPersistenceDoc CConfigEnv::merge( - const SmartPtrCPersistenceDoc& persistenceLoaded, - const SmartPtrCPersistenceDoc& persistenceIn) const { - // persistenceIn is non-null only when it has a change. - bool isChanged = false; - SmartPtrCPersistenceDoc persistenceTmp = persistenceLoaded; - if (! persistenceIn.IsNull()) { - persistenceTmp = persistenceIn; - isChanged = true; - } - - const SmartPtrCLocalSecurityDoc localSecurity = - calcLocalSecurity(persistenceTmp->getLocalSecurity()); - - //TODO: Do something similar to the above for tunnel vs. non-tunnel: - // * Tunnel - Use "/etc/vmware-tools/GuestProxyData/server/cert.pem" for the cacert - // * Tunnel - Calculate the URL with a protocol of "tunnel" - // * Non-tunnel - Calculate the URL with a protocol of "amqp" - - SmartPtrCPersistenceDoc rc = persistenceLoaded; - if (isChanged || ! localSecurity.IsNull()) { - const SmartPtrCLocalSecurityDoc localSecurityTmp = - localSecurity.IsNull() ? persistenceTmp->getLocalSecurity() : localSecurity; - - rc.CreateInstance(); - rc->initialize(localSecurityTmp, persistenceTmp->getRemoteSecurityCollection(), - persistenceTmp->getPersistenceProtocol()); - } - - return rc; -} - -SmartPtrCLocalSecurityDoc CConfigEnv::calcLocalSecurity( - const SmartPtrCLocalSecurityDoc& localSecurity) const { - CAF_CM_FUNCNAME_VALIDATE("calcLocalSecurity"); - CAF_CM_VALIDATE_SMARTPTR(localSecurity); - - const std::string localIdTmp = - localSecurity.IsNull() ? std::string() : localSecurity->getLocalId(); - const std::string localId = calcLocalId(localIdTmp); - - SmartPtrCLocalSecurityDoc rc; - if (! localId.empty()) { - const std::string privateKey = - localSecurity.IsNull() ? std::string() : localSecurity->getPrivateKey(); - const std::string cert = - localSecurity.IsNull() ? std::string() : localSecurity->getCert(); - rc.CreateInstance(); - rc->initialize(localId, privateKey, cert); - } - - return rc; -} - -std::string CConfigEnv::calcLocalId( - const std::string& localIdCurrent) const { - std::string rc; - if (FileSystemUtils::doesFileExist(_vcidPath)) { - const std::string vcid = FileSystemUtils::loadTextFile(_vcidPath); - if (vcid.compare(localIdCurrent) != 0) { - rc = vcid; - } + removePrivateKey(_persistence, _persistenceRemove); } else { - if (localIdCurrent.empty()) { - rc = CStringUtils::createRandomUuid(); - } + CAF_CM_LOG_DEBUG_VA0("Persistence info did not change"); } - - return rc; } void CConfigEnv::savePersistenceAppconfig( @@ -170,26 +135,27 @@ void CConfigEnv::savePersistenceAppconfig( #else const std::string newLine = "\n"; #endif + CAF_CM_LOG_DEBUG_VA1("Saving persistence-appconfig - %s", configDir.c_str()); - const std::string appconfigPath = - FileSystemUtils::buildPath(configDir, "persistence-appconfig"); - const Cdeqstr appconfigColl = - FileSystemUtils::loadTextFileIntoColl(appconfigPath); + const SmartPtrCPersistenceProtocolDoc persistenceProtocol = + CPersistenceUtils::loadPersistenceProtocol( + persistence->getPersistenceProtocolCollection()); + + UriUtils::SUriRecord uriRecord; + UriUtils::parseUriString(persistenceProtocol->getUri(), uriRecord); + CAF_CM_VALIDATE_STRING(uriRecord.path); + + const std::string listenerContext = calcListenerContext(uriRecord.protocol, configDir); + + CAF_CM_LOG_DEBUG_VA2("Calculated listener context - uri: %s, protocol: %s", + persistenceProtocol->getUri().c_str(), uriRecord.protocol.c_str()); std::string appconfigContents; - for (TConstIterator iter(appconfigColl); iter; iter++) { - const std::string appconfigLine = *iter; - if (appconfigLine.find("reactive_request_amqp_queue_id=") != std::string::npos) { - const SmartPtrCAmqpBrokerDoc amqpBroker = - CPersistenceUtils::loadAmqpBroker(persistence->getPersistenceProtocol()); - appconfigContents += - "reactive_request_amqp_queue_id=" + amqpBroker->getAmqpBrokerId() + newLine; - } else { - appconfigContents += appconfigLine + newLine; - } - } + appconfigContents = "[globals]" + newLine; + appconfigContents += "reactive_request_amqp_queue_id=" + uriRecord.path + newLine; + appconfigContents += "comm_amqp_listener_context=" + listenerContext + newLine; - FileSystemUtils::saveTextFile(appconfigPath, appconfigContents); + FileSystemUtils::saveTextFile(_persistenceAppconfigPath, appconfigContents); } void CConfigEnv::executeScript( @@ -209,3 +175,97 @@ void CConfigEnv::executeScript( ProcessUtils::runSyncToFiles(argv, stdoutPath, stderrPath); } + +void CConfigEnv::removePrivateKey( + const SmartPtrCPersistenceDoc& persistence, + const SmartPtrIPersistence& persistenceRemove) const { + CAF_CM_FUNCNAME_VALIDATE("removePrivateKey"); + CAF_CM_VALIDATE_SMARTPTR(persistence); + + if (! persistenceRemove.IsNull() + && ! persistence->getLocalSecurity()->getPrivateKey().empty()) { + CAF_CM_LOG_DEBUG_VA0("Removing private key"); + + SmartPtrCLocalSecurityDoc localSecurity; + localSecurity.CreateInstance(); + localSecurity->initialize(std::string(), "removePrivateKey"); + + SmartPtrCPersistenceDoc persistenceRemoveTmp; + persistenceRemoveTmp.CreateInstance(); + persistenceRemoveTmp->initialize(localSecurity); + + persistenceRemove->remove(persistenceRemoveTmp); + } +} + +SmartPtrCPersistenceDoc CConfigEnv::createPersistenceUpdated( + const SmartPtrCPersistenceDoc& persistence) const { + CAF_CM_FUNCNAME_VALIDATE("createPersistenceUpdated"); + CAF_CM_VALIDATE_SMARTPTR(persistence); + + SmartPtrCLocalSecurityDoc localSecurity; + if (! persistence->getLocalSecurity().IsNull() + && ! persistence->getLocalSecurity()->getLocalId().empty()) { + localSecurity.CreateInstance(); + localSecurity->initialize(persistence->getLocalSecurity()->getLocalId()); + } + + SmartPtrCPersistenceProtocolCollectionDoc persistenceProtocolCollection; + if (! persistence->getPersistenceProtocolCollection().IsNull() + && ! persistence->getPersistenceProtocolCollection()->getPersistenceProtocol().empty()) { + const SmartPtrCPersistenceProtocolDoc persistenceProtocolTmp = + CPersistenceUtils::loadPersistenceProtocol(persistence->getPersistenceProtocolCollection()); + if (! persistenceProtocolTmp->getUri().empty()) { + SmartPtrCPersistenceProtocolDoc persistenceProtocol; + persistenceProtocol.CreateInstance(); + persistenceProtocol->initialize( + persistenceProtocolTmp->getProtocolName(), + persistenceProtocolTmp->getUri()); + + std::deque persistenceProtocolInner; + persistenceProtocolInner.push_back(persistenceProtocol); + + persistenceProtocolCollection.CreateInstance(); + persistenceProtocolCollection->initialize(persistenceProtocolInner); + } + } + + SmartPtrCPersistenceDoc rc; + if (! localSecurity.IsNull() || ! persistenceProtocolCollection.IsNull()) { + rc.CreateInstance(); + rc->initialize(localSecurity, SmartPtrCRemoteSecurityCollectionDoc(), + persistenceProtocolCollection, persistence->getVersion()); + } + + return rc; +} + +std::string CConfigEnv::calcListenerContext( + const std::string& uriSchema, + const std::string& configDir) const { + CAF_CM_FUNCNAME("calcListenerContext"); + CAF_CM_VALIDATE_STRING(uriSchema); + CAF_CM_VALIDATE_STRING(configDir); + + std::string rc; + if (uriSchema.compare("amqp") == 0) { + rc = FileSystemUtils::buildPath(configDir, "CommAmqpListener-context-amqp.xml"); + } else if (uriSchema.compare("tunnel") == 0) { + rc = FileSystemUtils::buildPath(configDir, "CommAmqpListener-context-tunnel.xml"); + } else { + CAF_CM_EXCEPTION_VA1(E_INVALIDARG, "Unknown URI schema: %s", uriSchema.c_str()); + } + + return FileSystemUtils::normalizePathWithForward(rc); +} + +void CConfigEnv::restartRunningListener() const { + // TODO: It's difficult to know when we should start the listener, because + // it depends upon whether its been fully configured or not, and we don't + // know when that happens within this code. All we know is that we've + // read whatever info is on the file system and in the NSDDB, but that's it. + // Perhaps the best we can do is to re-start the listener only if it's already + // running because at least then we know that it's been configured. + //executeScript(_stopListenerScript, _outputDir); + //executeScript(_startListenerScript, _outputDir); +} diff --git a/open-vm-tools/common-agent/Cpp/ManagementAgent/Subsystems/MaIntegration/src/CConfigEnv.h b/open-vm-tools/common-agent/Cpp/ManagementAgent/Subsystems/MaIntegration/src/CConfigEnv.h index 742127a22..72c7193a9 100644 --- a/open-vm-tools/common-agent/Cpp/ManagementAgent/Subsystems/MaIntegration/src/CConfigEnv.h +++ b/open-vm-tools/common-agent/Cpp/ManagementAgent/Subsystems/MaIntegration/src/CConfigEnv.h @@ -14,6 +14,7 @@ using namespace Caf; /// TODO - describe class class CConfigEnv : public TCafSubSystemObjectRoot, + public IBean, public IConfigEnv { public: CConfigEnv(); @@ -22,11 +23,20 @@ public: CAF_DECLARE_OBJECT_IDENTIFIER(_sObjIdConfigEnv) CAF_BEGIN_INTERFACE_MAP(CConfigEnv) + CAF_INTERFACE_ENTRY(IBean) CAF_INTERFACE_ENTRY(IConfigEnv) CAF_END_INTERFACE_MAP() +public: // IBean + virtual void initializeBean( + const IBean::Cargs& ctorArgs, + const IBean::Cprops& properties); + + virtual void terminateBean(); + public: // IConfigEnv - void initialize(); + void initialize( + const SmartPtrIPersistence& persistenceRemove); SmartPtrCPersistenceDoc getUpdated( const int32 timeout); @@ -34,20 +44,7 @@ public: // IConfigEnv void update( const SmartPtrCPersistenceDoc& persistence); - void remove( - const SmartPtrCPersistenceDoc& persistence); - private: - SmartPtrCPersistenceDoc merge( - const SmartPtrCPersistenceDoc& persistenceLoaded, - const SmartPtrCPersistenceDoc& persistenceIn) const; - - SmartPtrCLocalSecurityDoc calcLocalSecurity( - const SmartPtrCLocalSecurityDoc& localSecurity) const; - - std::string calcLocalId( - const std::string& localIdCurrent) const; - void savePersistenceAppconfig( const SmartPtrCPersistenceDoc& persistence, const std::string& configDir) const; @@ -56,16 +53,28 @@ private: const std::string& scriptPath, const std::string& scriptResultsDir) const; - Cdeqstr loadTextFileIntoColl( - const std::string& filePath) const; + void removePrivateKey( + const SmartPtrCPersistenceDoc& persistence, + const SmartPtrIPersistence& persistenceRemove) const; + + SmartPtrCPersistenceDoc createPersistenceUpdated( + const SmartPtrCPersistenceDoc& persistence) const; + + std::string calcListenerContext( + const std::string& uriSchema, + const std::string& configDir) const; + + void restartRunningListener() const; private: bool _isInitialized; std::string _vcidPath; + std::string _cacertPath; std::string _persistenceDir; std::string _scriptsDir; std::string _outputDir; std::string _configDir; + std::string _persistenceAppconfigPath; std::string _startListenerScript; std::string _stopListenerScript; @@ -73,10 +82,13 @@ private: std::string _stopMaScript; SmartPtrCPersistenceDoc _persistence; + SmartPtrCPersistenceDoc _persistenceUpdated; + SmartPtrIPersistence _persistenceRemove; private: CAF_CM_CREATE; CAF_CM_CREATE_LOG; + CAF_CM_CREATE_THREADSAFE; CAF_CM_DECLARE_NOCOPY(CConfigEnv); }; diff --git a/open-vm-tools/common-agent/Cpp/ManagementAgent/Subsystems/MaIntegration/src/CConfigEnvInboundChannelAdapterInstance.cpp b/open-vm-tools/common-agent/Cpp/ManagementAgent/Subsystems/MaIntegration/src/CConfigEnvInboundChannelAdapterInstance.cpp index 47a4f6dc1..8e97bea28 100644 --- a/open-vm-tools/common-agent/Cpp/ManagementAgent/Subsystems/MaIntegration/src/CConfigEnvInboundChannelAdapterInstance.cpp +++ b/open-vm-tools/common-agent/Cpp/ManagementAgent/Subsystems/MaIntegration/src/CConfigEnvInboundChannelAdapterInstance.cpp @@ -51,9 +51,11 @@ void CConfigEnvInboundChannelAdapterInstance::wire( const std::string outputChannelStr = _configSection->findRequiredAttribute("channel"); + const SmartPtrIConfigEnv configEnv = createConfigEnv(appContext); + SmartPtrCConfigEnvReadingMessageSource configEnvReadingMessageSource; configEnvReadingMessageSource.CreateInstance(); - configEnvReadingMessageSource->initialize(_configSection); + configEnvReadingMessageSource->initialize(_configSection, configEnv); const SmartPtrIMessageChannel outputMessageChannel = channelResolver->resolveChannelName(outputChannelStr); @@ -114,3 +116,19 @@ bool CConfigEnvInboundChannelAdapterInstance::isMessageProducer() const { return true; } + +SmartPtrIConfigEnv CConfigEnvInboundChannelAdapterInstance::createConfigEnv( + const SmartPtrIAppContext& appContext) const { + CAF_CM_FUNCNAME_VALIDATE("createConfigEnv"); + CAF_CM_VALIDATE_INTERFACE(appContext); + + SmartPtrIConfigEnv rc; + const std::string refStr = _configSection->findRequiredAttribute("ref"); + CAF_CM_LOG_DEBUG_VA1("Creating the configenv impl - %s", refStr.c_str()); + const SmartPtrIBean bean = appContext->getBean(refStr); + rc.QueryInterface(bean, false); + CAF_CM_VALIDATE_INTERFACE(rc); + rc->initialize(); + + return rc; +} diff --git a/open-vm-tools/common-agent/Cpp/ManagementAgent/Subsystems/MaIntegration/src/CConfigEnvInboundChannelAdapterInstance.h b/open-vm-tools/common-agent/Cpp/ManagementAgent/Subsystems/MaIntegration/src/CConfigEnvInboundChannelAdapterInstance.h index aa3e2026e..4b926cd0d 100644 --- a/open-vm-tools/common-agent/Cpp/ManagementAgent/Subsystems/MaIntegration/src/CConfigEnvInboundChannelAdapterInstance.h +++ b/open-vm-tools/common-agent/Cpp/ManagementAgent/Subsystems/MaIntegration/src/CConfigEnvInboundChannelAdapterInstance.h @@ -49,6 +49,10 @@ public: // ILifecycle public: // IMessageProducer bool isMessageProducer() const; +private: + SmartPtrIConfigEnv createConfigEnv( + const SmartPtrIAppContext& appContext) const; + private: bool _isInitialized; std::string _id; diff --git a/open-vm-tools/common-agent/Cpp/ManagementAgent/Subsystems/MaIntegration/src/CConfigEnvMessageHandler.cpp b/open-vm-tools/common-agent/Cpp/ManagementAgent/Subsystems/MaIntegration/src/CConfigEnvMessageHandler.cpp index f47912d9d..0eaac8d8c 100644 --- a/open-vm-tools/common-agent/Cpp/ManagementAgent/Subsystems/MaIntegration/src/CConfigEnvMessageHandler.cpp +++ b/open-vm-tools/common-agent/Cpp/ManagementAgent/Subsystems/MaIntegration/src/CConfigEnvMessageHandler.cpp @@ -13,7 +13,6 @@ using namespace Caf; CConfigEnvMessageHandler::CConfigEnvMessageHandler() : _isInitialized(false), - _deleteSourceEntries(false), CAF_CM_INIT_LOG("CConfigEnvMessageHandler") { } @@ -21,20 +20,16 @@ CConfigEnvMessageHandler::~CConfigEnvMessageHandler() { } void CConfigEnvMessageHandler::initialize( - const SmartPtrIDocument& configSection) { + const SmartPtrIDocument& configSection, + const SmartPtrIConfigEnv& configEnv) { CAF_CM_FUNCNAME_VALIDATE("initialize"); CAF_CM_PRECOND_ISNOTINITIALIZED(_isInitialized); CAF_CM_VALIDATE_INTERFACE(configSection); + CAF_CM_VALIDATE_SMARTPTR(configEnv); _id = configSection->findRequiredAttribute("id"); - const std::string implClass = configSection->findRequiredAttribute("impl-class"); - _configEnv.CreateInstance(implClass.c_str()); - _configEnv->initialize(); - - const std::string deleteSourceEntriesStr = configSection->findOptionalAttribute( - "delete-source-entries"); - _deleteSourceEntries = (deleteSourceEntriesStr.empty() || deleteSourceEntriesStr.compare("false") == 0) ? false : true; + _configEnv = configEnv; _isInitialized = true; } @@ -47,14 +42,13 @@ void CConfigEnvMessageHandler::handleMessage( _savedMessage = message; + SmartPtrCPersistenceDoc persistence; const std::string payloadStr = message->getPayloadStr(); - const SmartPtrCPersistenceDoc persistence = - XmlRoots::parsePersistenceFromString(payloadStr); - _configEnv->update(persistence); - - if (_deleteSourceEntries) { - ;//TODO: Delete entries like the localSecurity private key. + if (! payloadStr.empty()) { + persistence = XmlRoots::parsePersistenceFromString(payloadStr); } + + _configEnv->update(persistence); } SmartPtrIIntMessage CConfigEnvMessageHandler::getSavedMessage() const { diff --git a/open-vm-tools/common-agent/Cpp/ManagementAgent/Subsystems/MaIntegration/src/CConfigEnvMessageHandler.h b/open-vm-tools/common-agent/Cpp/ManagementAgent/Subsystems/MaIntegration/src/CConfigEnvMessageHandler.h index 30e7a3f46..3a7fcbbdb 100644 --- a/open-vm-tools/common-agent/Cpp/ManagementAgent/Subsystems/MaIntegration/src/CConfigEnvMessageHandler.h +++ b/open-vm-tools/common-agent/Cpp/ManagementAgent/Subsystems/MaIntegration/src/CConfigEnvMessageHandler.h @@ -26,7 +26,8 @@ public: public: void initialize( - const SmartPtrIDocument& configSection); + const SmartPtrIDocument& configSection, + const SmartPtrIConfigEnv& configEnv); public: // IMessageHandler void handleMessage( @@ -43,7 +44,6 @@ public: // IErrorProcessor private: bool _isInitialized; std::string _id; - bool _deleteSourceEntries; SmartPtrIConfigEnv _configEnv; SmartPtrIIntMessage _savedMessage; diff --git a/open-vm-tools/common-agent/Cpp/ManagementAgent/Subsystems/MaIntegration/src/CConfigEnvOutboundChannelAdapterInstance.cpp b/open-vm-tools/common-agent/Cpp/ManagementAgent/Subsystems/MaIntegration/src/CConfigEnvOutboundChannelAdapterInstance.cpp index 2175482b8..238e47244 100644 --- a/open-vm-tools/common-agent/Cpp/ManagementAgent/Subsystems/MaIntegration/src/CConfigEnvOutboundChannelAdapterInstance.cpp +++ b/open-vm-tools/common-agent/Cpp/ManagementAgent/Subsystems/MaIntegration/src/CConfigEnvOutboundChannelAdapterInstance.cpp @@ -57,9 +57,11 @@ void CConfigEnvOutboundChannelAdapterInstance::wire( SmartPtrIIntegrationObject inputChannelObj; inputChannelObj.QueryInterface(inputChannel); + const SmartPtrIConfigEnv configEnv = createConfigEnv(appContext); + SmartPtrCConfigEnvMessageHandler configEnvMessageHandler; configEnvMessageHandler.CreateInstance(); - configEnvMessageHandler->initialize(_configSection); + configEnvMessageHandler->initialize(_configSection, configEnv); SmartPtrIMessageHandler messageHandler; messageHandler.QueryInterface(configEnvMessageHandler); @@ -98,3 +100,49 @@ bool CConfigEnvOutboundChannelAdapterInstance::isRunning() const { return _isRunning; } + +SmartPtrIConfigEnv CConfigEnvOutboundChannelAdapterInstance::createConfigEnv( + const SmartPtrIAppContext& appContext) const { + CAF_CM_FUNCNAME_VALIDATE("createConfigEnv"); + CAF_CM_VALIDATE_INTERFACE(appContext); + + const SmartPtrIPersistence persistenceRemove = createOptPersistence(appContext); + + SmartPtrIConfigEnv rc; + const std::string refStr = _configSection->findRequiredAttribute("ref"); + CAF_CM_LOG_DEBUG_VA1("Creating the configenv impl - %s", refStr.c_str()); + const SmartPtrIBean bean = appContext->getBean(refStr); + rc.QueryInterface(bean, false); + CAF_CM_VALIDATE_INTERFACE(rc); + rc->initialize(persistenceRemove); + + return rc; +} + +SmartPtrIPersistence CConfigEnvOutboundChannelAdapterInstance::createOptPersistence( + const SmartPtrIAppContext& appContext) const { + CAF_CM_FUNCNAME("createOptPersistence"); + CAF_CM_VALIDATE_INTERFACE(appContext); + + SmartPtrIPersistence rc; + const std::string removeRefStr = _configSection->findOptionalAttribute("remove-ref"); + if (! removeRefStr.empty()) { + CAF_CM_LOG_DEBUG_VA1("Creating the persistence impl - %s", removeRefStr.c_str()); + const SmartPtrIBean bean = appContext->getBean(removeRefStr); + rc.QueryInterface(bean, false); + CAF_CM_VALIDATE_INTERFACE(rc); + + try { + rc->initialize(); + } + CAF_CM_CATCH_CAF + CAF_CM_CATCH_DEFAULT + CAF_CM_LOG_WARN_CAFEXCEPTION; + + if (CAF_CM_ISEXCEPTION) { + rc = SmartPtrIPersistence(); + } + } + + return rc; +} diff --git a/open-vm-tools/common-agent/Cpp/ManagementAgent/Subsystems/MaIntegration/src/CConfigEnvOutboundChannelAdapterInstance.h b/open-vm-tools/common-agent/Cpp/ManagementAgent/Subsystems/MaIntegration/src/CConfigEnvOutboundChannelAdapterInstance.h index 591521a5e..765da763a 100644 --- a/open-vm-tools/common-agent/Cpp/ManagementAgent/Subsystems/MaIntegration/src/CConfigEnvOutboundChannelAdapterInstance.h +++ b/open-vm-tools/common-agent/Cpp/ManagementAgent/Subsystems/MaIntegration/src/CConfigEnvOutboundChannelAdapterInstance.h @@ -45,6 +45,13 @@ public: // ILifecycle bool isRunning() const; +private: + SmartPtrIConfigEnv createConfigEnv( + const SmartPtrIAppContext& appContext) const; + + SmartPtrIPersistence createOptPersistence( + const SmartPtrIAppContext& appContext) const; + private: bool _isInitialized; bool _isRunning; diff --git a/open-vm-tools/common-agent/Cpp/ManagementAgent/Subsystems/MaIntegration/src/CConfigEnvReadingMessageSource.cpp b/open-vm-tools/common-agent/Cpp/ManagementAgent/Subsystems/MaIntegration/src/CConfigEnvReadingMessageSource.cpp index a49cf5649..83bc7b905 100644 --- a/open-vm-tools/common-agent/Cpp/ManagementAgent/Subsystems/MaIntegration/src/CConfigEnvReadingMessageSource.cpp +++ b/open-vm-tools/common-agent/Cpp/ManagementAgent/Subsystems/MaIntegration/src/CConfigEnvReadingMessageSource.cpp @@ -22,17 +22,18 @@ CConfigEnvReadingMessageSource::~CConfigEnvReadingMessageSource() { } void CConfigEnvReadingMessageSource::initialize( - const SmartPtrIDocument& configSection) { + const SmartPtrIDocument& configSection, + const SmartPtrIConfigEnv& configEnv) { CAF_CM_FUNCNAME_VALIDATE("initialize"); CAF_CM_PRECOND_ISNOTINITIALIZED(_isInitialized); CAF_CM_VALIDATE_INTERFACE(configSection); + CAF_CM_VALIDATE_INTERFACE(configEnv); + CAF_CM_VALIDATE_INTERFACE(configSection); _id = configSection->findRequiredAttribute("id"); - const std::string implClass = configSection->findRequiredAttribute("impl-class"); const SmartPtrIDocument pollerDoc = configSection->findOptionalChild("poller"); - _configEnv.CreateInstance(implClass.c_str()); - _configEnv->initialize(); + _configEnv = configEnv; setPollerMetadata(pollerDoc); _refreshSec = 0; diff --git a/open-vm-tools/common-agent/Cpp/ManagementAgent/Subsystems/MaIntegration/src/CConfigEnvReadingMessageSource.h b/open-vm-tools/common-agent/Cpp/ManagementAgent/Subsystems/MaIntegration/src/CConfigEnvReadingMessageSource.h index fd6b75781..ee2188b32 100644 --- a/open-vm-tools/common-agent/Cpp/ManagementAgent/Subsystems/MaIntegration/src/CConfigEnvReadingMessageSource.h +++ b/open-vm-tools/common-agent/Cpp/ManagementAgent/Subsystems/MaIntegration/src/CConfigEnvReadingMessageSource.h @@ -23,7 +23,8 @@ public: public: void initialize( - const SmartPtrIDocument& configSection); + const SmartPtrIDocument& configSection, + const SmartPtrIConfigEnv& configEnv); protected: // CAbstractPollableChannel bool doSend( diff --git a/open-vm-tools/common-agent/Cpp/ManagementAgent/Subsystems/MaIntegration/src/CPersistenceInboundChannelAdapterInstance.cpp b/open-vm-tools/common-agent/Cpp/ManagementAgent/Subsystems/MaIntegration/src/CPersistenceInboundChannelAdapterInstance.cpp index f106a9eab..5bf5dfa4b 100644 --- a/open-vm-tools/common-agent/Cpp/ManagementAgent/Subsystems/MaIntegration/src/CPersistenceInboundChannelAdapterInstance.cpp +++ b/open-vm-tools/common-agent/Cpp/ManagementAgent/Subsystems/MaIntegration/src/CPersistenceInboundChannelAdapterInstance.cpp @@ -48,38 +48,41 @@ void CPersistenceInboundChannelAdapterInstance::wire( CAF_CM_VALIDATE_INTERFACE(appContext); CAF_CM_VALIDATE_INTERFACE(channelResolver); - const std::string outputChannelStr = - _configSection->findRequiredAttribute("channel"); - - SmartPtrCPersistenceReadingMessageSource persistenceReadingMessageSource; - persistenceReadingMessageSource.CreateInstance(); - persistenceReadingMessageSource->initialize(_configSection); - - const SmartPtrIMessageChannel outputMessageChannel = - channelResolver->resolveChannelName(outputChannelStr); - const SmartPtrIMessageChannel errorMessageChannel = - channelResolver->resolveChannelName("errorChannel"); - - SmartPtrCMessageHandler messageHandler; - messageHandler.CreateInstance(); - messageHandler->initialize( - _id, - outputMessageChannel, - SmartPtrICafObject()); - - SmartPtrCErrorHandler errorHandler; - errorHandler.CreateInstance(); - errorHandler->initialize(channelResolver, errorMessageChannel); - - SmartPtrCSourcePollingChannelAdapter sourcePollingChannelAdapter; - sourcePollingChannelAdapter.CreateInstance(); - sourcePollingChannelAdapter->initialize( - messageHandler, persistenceReadingMessageSource, errorHandler); - - SmartPtrCSimpleAsyncTaskExecutor simpleAsyncTaskExecutor; - simpleAsyncTaskExecutor.CreateInstance(); - simpleAsyncTaskExecutor->initialize(sourcePollingChannelAdapter, errorHandler); - _taskExecutor = simpleAsyncTaskExecutor; + const SmartPtrIPersistence persistence = createPersistence(appContext); + if (! persistence.IsNull()) { + const std::string outputChannelStr = + _configSection->findRequiredAttribute("channel"); + + SmartPtrCPersistenceReadingMessageSource persistenceReadingMessageSource; + persistenceReadingMessageSource.CreateInstance(); + persistenceReadingMessageSource->initialize(_configSection, persistence); + + const SmartPtrIMessageChannel outputMessageChannel = + channelResolver->resolveChannelName(outputChannelStr); + const SmartPtrIMessageChannel errorMessageChannel = + channelResolver->resolveChannelName("errorChannel"); + + SmartPtrCMessageHandler messageHandler; + messageHandler.CreateInstance(); + messageHandler->initialize( + _id, + outputMessageChannel, + SmartPtrICafObject()); + + SmartPtrCErrorHandler errorHandler; + errorHandler.CreateInstance(); + errorHandler->initialize(channelResolver, errorMessageChannel); + + SmartPtrCSourcePollingChannelAdapter sourcePollingChannelAdapter; + sourcePollingChannelAdapter.CreateInstance(); + sourcePollingChannelAdapter->initialize( + messageHandler, persistenceReadingMessageSource, errorHandler); + + SmartPtrCSimpleAsyncTaskExecutor simpleAsyncTaskExecutor; + simpleAsyncTaskExecutor.CreateInstance(); + simpleAsyncTaskExecutor->initialize(sourcePollingChannelAdapter, errorHandler); + _taskExecutor = simpleAsyncTaskExecutor; + } } void CPersistenceInboundChannelAdapterInstance::start( @@ -87,8 +90,10 @@ void CPersistenceInboundChannelAdapterInstance::start( CAF_CM_FUNCNAME_VALIDATE("start"); CAF_CM_PRECOND_ISINITIALIZED(_isInitialized); - CAF_CM_LOG_DEBUG_VA0("Starting the executor"); - _taskExecutor->execute(timeoutMs); + if (! _taskExecutor.IsNull()) { + CAF_CM_LOG_DEBUG_VA0("Starting the executor"); + _taskExecutor->execute(timeoutMs); + } } void CPersistenceInboundChannelAdapterInstance::stop( @@ -96,15 +101,18 @@ void CPersistenceInboundChannelAdapterInstance::stop( CAF_CM_FUNCNAME_VALIDATE("stop"); CAF_CM_PRECOND_ISINITIALIZED(_isInitialized); - CAF_CM_LOG_DEBUG_VA0("Stopping the executor"); - _taskExecutor->cancel(timeoutMs); + if (! _taskExecutor.IsNull()) { + CAF_CM_LOG_DEBUG_VA0("Stopping the executor"); + _taskExecutor->cancel(timeoutMs); + } } bool CPersistenceInboundChannelAdapterInstance::isRunning() const { CAF_CM_FUNCNAME_VALIDATE("isRunning"); CAF_CM_PRECOND_ISINITIALIZED(_isInitialized); - const bool rc = (_taskExecutor->getState() == ITaskExecutor::ETaskStateStarted); + const bool rc = ! _taskExecutor.IsNull() + && (_taskExecutor->getState() == ITaskExecutor::ETaskStateStarted); return rc; } @@ -114,3 +122,30 @@ bool CPersistenceInboundChannelAdapterInstance::isMessageProducer() const { return true; } + +SmartPtrIPersistence CPersistenceInboundChannelAdapterInstance::createPersistence( + const SmartPtrIAppContext& appContext) const { + CAF_CM_FUNCNAME("createPersistence"); + CAF_CM_VALIDATE_INTERFACE(appContext); + + SmartPtrIPersistence rc; + const std::string removeRefStr = _configSection->findRequiredAttribute("ref"); + CAF_CM_LOG_DEBUG_VA1("Creating the persistence impl - %s", removeRefStr.c_str()); + const SmartPtrIBean bean = appContext->getBean(removeRefStr); + rc.QueryInterface(bean, false); + CAF_CM_VALIDATE_INTERFACE(rc); + + try { + rc->initialize(); + } + CAF_CM_CATCH_CAF + CAF_CM_CATCH_DEFAULT + CAF_CM_LOG_WARN_CAFEXCEPTION; + + if (CAF_CM_ISEXCEPTION) { + rc = SmartPtrIPersistence(); + CAF_CM_CLEAREXCEPTION; + } + + return rc; +} diff --git a/open-vm-tools/common-agent/Cpp/ManagementAgent/Subsystems/MaIntegration/src/CPersistenceInboundChannelAdapterInstance.h b/open-vm-tools/common-agent/Cpp/ManagementAgent/Subsystems/MaIntegration/src/CPersistenceInboundChannelAdapterInstance.h index 1b27c5f93..0eac9968d 100644 --- a/open-vm-tools/common-agent/Cpp/ManagementAgent/Subsystems/MaIntegration/src/CPersistenceInboundChannelAdapterInstance.h +++ b/open-vm-tools/common-agent/Cpp/ManagementAgent/Subsystems/MaIntegration/src/CPersistenceInboundChannelAdapterInstance.h @@ -49,6 +49,10 @@ public: // ILifecycle public: // IMessageProducer bool isMessageProducer() const; +private: + SmartPtrIPersistence createPersistence( + const SmartPtrIAppContext& appContext) const; + private: bool _isInitialized; std::string _id; diff --git a/open-vm-tools/common-agent/Cpp/ManagementAgent/Subsystems/MaIntegration/src/CPersistenceMessageHandler.cpp b/open-vm-tools/common-agent/Cpp/ManagementAgent/Subsystems/MaIntegration/src/CPersistenceMessageHandler.cpp index 8eefe4d7b..c868b9bf7 100644 --- a/open-vm-tools/common-agent/Cpp/ManagementAgent/Subsystems/MaIntegration/src/CPersistenceMessageHandler.cpp +++ b/open-vm-tools/common-agent/Cpp/ManagementAgent/Subsystems/MaIntegration/src/CPersistenceMessageHandler.cpp @@ -13,7 +13,6 @@ using namespace Caf; CPersistenceMessageHandler::CPersistenceMessageHandler() : _isInitialized(false), - _deleteSourceEntries(false), CAF_CM_INIT_LOG("CPersistenceMessageHandler") { } @@ -21,20 +20,15 @@ CPersistenceMessageHandler::~CPersistenceMessageHandler() { } void CPersistenceMessageHandler::initialize( - const SmartPtrIDocument& configSection) { + const SmartPtrIDocument& configSection, + const SmartPtrIPersistence& persistence) { CAF_CM_FUNCNAME_VALIDATE("initialize"); CAF_CM_PRECOND_ISNOTINITIALIZED(_isInitialized); CAF_CM_VALIDATE_INTERFACE(configSection); + CAF_CM_VALIDATE_SMARTPTR(persistence); _id = configSection->findRequiredAttribute("id"); - - const std::string implClass = configSection->findRequiredAttribute("impl-class"); - _persistence.CreateInstance(implClass.c_str()); - _persistence->initialize(); - - const std::string deleteSourceEntriesStr = configSection->findOptionalAttribute( - "delete-source-entries"); - _deleteSourceEntries = (deleteSourceEntriesStr.empty() || deleteSourceEntriesStr.compare("false") == 0) ? false : true; + _persistence = persistence; _isInitialized = true; } @@ -47,14 +41,13 @@ void CPersistenceMessageHandler::handleMessage( _savedMessage = message; + SmartPtrCPersistenceDoc persistence; const std::string payloadStr = message->getPayloadStr(); - const SmartPtrCPersistenceDoc persistence = - XmlRoots::parsePersistenceFromString(payloadStr); - _persistence->update(persistence); - - if (_deleteSourceEntries) { - ;//TODO: Delete entries like the localSecurity private key. + if (! payloadStr.empty()) { + persistence = XmlRoots::parsePersistenceFromString(payloadStr); } + + _persistence->update(persistence); } SmartPtrIIntMessage CPersistenceMessageHandler::getSavedMessage() const { diff --git a/open-vm-tools/common-agent/Cpp/ManagementAgent/Subsystems/MaIntegration/src/CPersistenceMessageHandler.h b/open-vm-tools/common-agent/Cpp/ManagementAgent/Subsystems/MaIntegration/src/CPersistenceMessageHandler.h index 9ab8712ac..5c7802adf 100644 --- a/open-vm-tools/common-agent/Cpp/ManagementAgent/Subsystems/MaIntegration/src/CPersistenceMessageHandler.h +++ b/open-vm-tools/common-agent/Cpp/ManagementAgent/Subsystems/MaIntegration/src/CPersistenceMessageHandler.h @@ -26,7 +26,8 @@ public: public: void initialize( - const SmartPtrIDocument& configSection); + const SmartPtrIDocument& configSection, + const SmartPtrIPersistence& persistence); public: // IMessageHandler void handleMessage( @@ -43,7 +44,6 @@ public: // IErrorProcessor private: bool _isInitialized; std::string _id; - bool _deleteSourceEntries; SmartPtrIPersistence _persistence; SmartPtrIIntMessage _savedMessage; diff --git a/open-vm-tools/common-agent/Cpp/ManagementAgent/Subsystems/MaIntegration/src/CPersistenceNamespaceDb.cpp b/open-vm-tools/common-agent/Cpp/ManagementAgent/Subsystems/MaIntegration/src/CPersistenceNamespaceDb.cpp index b63cf14b1..c1f9c62f9 100644 --- a/open-vm-tools/common-agent/Cpp/ManagementAgent/Subsystems/MaIntegration/src/CPersistenceNamespaceDb.cpp +++ b/open-vm-tools/common-agent/Cpp/ManagementAgent/Subsystems/MaIntegration/src/CPersistenceNamespaceDb.cpp @@ -24,58 +24,73 @@ const string CPersistenceNamespaceDb::_NAMESPACE = "com.vmware.caf.guest.rw"; CPersistenceNamespaceDb::CPersistenceNamespaceDb() : _isInitialized(false), CAF_CM_INIT_LOG("CPersistenceNamespaceDb") { + CAF_CM_INIT_THREADSAFE; } CPersistenceNamespaceDb::~CPersistenceNamespaceDb() { } +void CPersistenceNamespaceDb::initializeBean( + const IBean::Cargs& ctorArgs, + const IBean::Cprops& properties) { +} + +void CPersistenceNamespaceDb::terminateBean() { +} + void CPersistenceNamespaceDb::initialize() { - CAF_CM_FUNCNAME_VALIDATE("initialize"); - CAF_CM_PRECOND_ISNOTINITIALIZED(_isInitialized); + CAF_CM_LOCK_UNLOCK; - setCmd(); - _isInitialized = true; + if (! _isInitialized) { + setCmd(); + _isInitialized = true; + } } SmartPtrCPersistenceDoc CPersistenceNamespaceDb::getUpdated( const int32 timeout) { CAF_CM_FUNCNAME_VALIDATE("getUpdated"); + CAF_CM_LOCK_UNLOCK; CAF_CM_PRECOND_ISINITIALIZED(_isInitialized); //If nothing has been updated, skip all of the unneeded work string updates = getValue("updates"); if (!updates.empty()) { + string version = getValue("version"); + //EP Doc - string epPrivateKey = getValue("ep.private.key"); + string epLocalId = getValue("ep.local_id"); + string epPrivateKey = getValue("ep.private_key"); string epCert = getValue("ep.cert"); SmartPtrCLocalSecurityDoc endpoint; endpoint.CreateInstance(); - endpoint->initialize(std::string(), epPrivateKey, epCert); + endpoint->initialize(epLocalId, epPrivateKey, epCert); //App collection std::deque applicationCollectionInner; string applications = getValue("applications"); Cdeqstr appList = CStringUtils::split(applications, ','); - for (Cdeqstr::iterator it = appList.begin(); it != appList.end(); it++) { - string appKey = *it; + for (Cdeqstr::iterator appIt = appList.begin(); appIt != appList.end(); appIt++) { + string appKey = "app." + *appIt; + string appId = getValue(appKey + ".remote_id"); + string appProtocolName = getValue(appKey + ".protocol_name"); string appCmsCipher = getValue(appKey + ".cms.cipher"); std::deque cmsCertCollectionInner; string appCmsCertChain = getValue(appKey + ".cms.cert_chain"); Cdeqstr appCertList = CStringUtils::split(appCmsCertChain, ','); - for (Cdeqstr::iterator it = appCertList.begin(); it != appCertList.end(); it++) { - cmsCertCollectionInner.push_back(*it); + for (Cdeqstr::iterator appCertIt = appCertList.begin(); appCertIt != appCertList.end(); appCertIt++) { + cmsCertCollectionInner.push_back(*appCertIt); } SmartPtrCCertCollectionDoc cmsCertCollection; cmsCertCollection.CreateInstance(); cmsCertCollection->initialize(cmsCertCollectionInner); - string appId = appKey; string cmsCert = getValue(appKey + ".cms.cert"); SmartPtrCRemoteSecurityDoc application; application.CreateInstance(); - application->initialize(appId, "amqpBroker_default", cmsCert, appCmsCipher, cmsCertCollection); + application->initialize(appId, appProtocolName, cmsCert, appCmsCipher, cmsCertCollection); applicationCollectionInner.push_back(application); } @@ -86,22 +101,22 @@ SmartPtrCPersistenceDoc CPersistenceNamespaceDb::getUpdated( string protocols = getValue("protocols"); Cdeqstr protocolList = CStringUtils::split(protocols, ','); - std::deque amqpBrokerCollectionInner; - for (Cdeqstr::iterator it = protocolList.begin(); it != protocolList.end(); it++) { - string protocolKey = *it; + std::deque persistenceProtocolCollectionInner; + for (Cdeqstr::iterator protocolIt = protocolList.begin(); protocolIt != protocolList.end(); protocolIt++) { + string protocolKey = "protocol." + *protocolIt; //Protoccol Doc std::deque tlsCertCollectionInner; string tlsCertChain = getValue(protocolKey + ".tls.cert.chain"); Cdeqstr tlsCertList = CStringUtils::split(tlsCertChain, ','); - for (Cdeqstr::iterator it = tlsCertList.begin(); it != tlsCertList.end(); it++) { - tlsCertCollectionInner.push_back(*it); + for (Cdeqstr::iterator tlsCertIt = tlsCertList.begin(); tlsCertIt != tlsCertList.end(); tlsCertIt++) { + tlsCertCollectionInner.push_back(*tlsCertIt); } Cdeqstr tlsCipherCollection; string tlsCiphers = getValue(protocolKey + ".tls.ciphers"); Cdeqstr tlsCipherList = CStringUtils::split(tlsCiphers, ','); - for (Cdeqstr::iterator it = tlsCipherList.begin(); it != tlsCipherList.end(); it++) { - tlsCipherCollection.push_back(*it); + for (Cdeqstr::iterator tlsCipherIt = tlsCipherList.begin(); tlsCipherIt != tlsCipherList.end(); tlsCipherIt++) { + tlsCipherCollection.push_back(*tlsCipherIt); } SmartPtrCCertCollectionDoc tlsCertCollection; @@ -109,29 +124,25 @@ SmartPtrCPersistenceDoc CPersistenceNamespaceDb::getUpdated( tlsCertCollection->initialize(tlsCertCollectionInner); //For now, we only support one broker. - string amqpBrokerId = getValue(protocolKey + ".amqpBrokerId"); + string protocolName = getValue(protocolKey + ".protocol_name"); string uri = getValue(protocolKey + ".uri"); string tlsCert = getValue(protocolKey + ".tls.cert"); string tlsProtocol = getValue(protocolKey + ".tls.protocol"); - SmartPtrCAmqpBrokerDoc amqpBroker; - amqpBroker.CreateInstance(); - amqpBroker->initialize(amqpBrokerId, uri, tlsCert, tlsProtocol, tlsCipherCollection, tlsCertCollection); + SmartPtrCPersistenceProtocolDoc persistenceProtocol; + persistenceProtocol.CreateInstance(); + persistenceProtocol->initialize(protocolName, uri, tlsCert, tlsProtocol, tlsCipherCollection, tlsCertCollection); - amqpBrokerCollectionInner.push_back(amqpBroker); + persistenceProtocolCollectionInner.push_back(persistenceProtocol); } - SmartPtrCAmqpBrokerCollectionDoc amqpBrokerCollection; - amqpBrokerCollection.CreateInstance(); - amqpBrokerCollection->initialize(amqpBrokerCollectionInner); - - SmartPtrCPersistenceProtocolDoc persistenceProtocol; - persistenceProtocol.CreateInstance(); - persistenceProtocol->initialize(amqpBrokerCollection); + SmartPtrCPersistenceProtocolCollectionDoc persistenceProtocolCollection; + persistenceProtocolCollection.CreateInstance(); + persistenceProtocolCollection->initialize(persistenceProtocolCollectionInner); // Persist doc SmartPtrCPersistenceDoc persistence; persistence.CreateInstance(); - persistence->initialize(endpoint, applicationCollection, persistenceProtocol, "1.0"); + persistence->initialize(endpoint, applicationCollection, persistenceProtocolCollection, version); return persistence; } @@ -143,54 +154,77 @@ SmartPtrCPersistenceDoc CPersistenceNamespaceDb::getUpdated( void CPersistenceNamespaceDb::update( const SmartPtrCPersistenceDoc& persistenceDoc) { CAF_CM_FUNCNAME("update"); + CAF_CM_LOCK_UNLOCK; CAF_CM_PRECOND_ISINITIALIZED(_isInitialized); - CAF_CM_VALIDATE_SMARTPTR(persistenceDoc); - //Update LocalSecurity info - if (!persistenceDoc->getLocalSecurity().IsNull()){ - setValue("ep.private.key", persistenceDoc->getLocalSecurity()->getPrivateKey()); - setValue("ep.cert", persistenceDoc->getLocalSecurity()->getCert()); - } + if (! persistenceDoc.IsNull()) { + setValue("version", persistenceDoc->getVersion()); - //Update RemoteSecurity info - if (!persistenceDoc->getRemoteSecurityCollection().IsNull()){ - deque applications = persistenceDoc->getRemoteSecurityCollection()->getRemoteSecurity(); - for (deque::iterator it=applications.begin(); it != applications.end(); it++) { - string appKey = (*it)->getRemoteId(); - setValue(appKey + ".cms.cert", (*it)->getCmsCert()); - //setValue(appKey + ".cms.cipher", (*it)->getCmsCipher()); - string cmsCertChain; - Cdeqstr cmsCertList = (*it)->getCmsCertCollection()->getCert(); - for (Cdeqstr::iterator it=cmsCertList.begin(); it != cmsCertList.end(); it++) { - if (!cmsCertChain.empty()) { - cmsCertChain += ","; + //Update LocalSecurity info + if (!persistenceDoc->getLocalSecurity().IsNull()){ + setValue("ep.local_id", persistenceDoc->getLocalSecurity()->getLocalId()); + setValue("ep.private_key", persistenceDoc->getLocalSecurity()->getPrivateKey()); + setValue("ep.cert", persistenceDoc->getLocalSecurity()->getCert()); + } + + //Update RemoteSecurity info + if (!persistenceDoc->getRemoteSecurityCollection().IsNull()){ + deque applications = persistenceDoc->getRemoteSecurityCollection()->getRemoteSecurity(); + for (deque::iterator appIt=applications.begin(); appIt != applications.end(); appIt++) { + string appKey = "app." + (*appIt)->getRemoteId(); + setValue(appKey + ".remote_id", (*appIt)->getRemoteId()); + setValue(appKey + ".cms.cert", (*appIt)->getCmsCert()); + setValue(appKey + ".cms.cipher", (*appIt)->getCmsCipherName()); + setValue(appKey + ".protocol_name", (*appIt)->getProtocolName()); + string cmsCertChain; + if (! (*appIt)->getCmsCertCollection().IsNull()) { + Cdeqstr cmsCertList = (*appIt)->getCmsCertCollection()->getCert(); + for (Cdeqstr::iterator cmsCertIt=cmsCertList.begin(); cmsCertIt != cmsCertList.end(); cmsCertIt++) { + if (!cmsCertChain.empty()) { + cmsCertChain += ","; + } + cmsCertChain += *cmsCertIt; + } + setValue(appKey + ".cms.cert_chain", cmsCertChain); } - cmsCertChain += *it; } - setValue(appKey + ".cms.cert_chain", cmsCertChain); } - } - //Update PersistenceProtocol info - if (!persistenceDoc->getPersistenceProtocol().IsNull()) { - //For now, we only support one broker. - CAF_CM_ASSERT(persistenceDoc->getPersistenceProtocol()->getAmqpBrokerCollection()->getAmqpBroker().size() <= 1); - - deque brokerList = persistenceDoc->getPersistenceProtocol()->getAmqpBrokerCollection()->getAmqpBroker(); - for (deque::iterator it=brokerList.begin(); it != brokerList.end(); it++) { - setValue("name", (*it)->getAmqpBrokerId()); - setValue("uri", (*it)->getUri()); - setValue("tls.cert", (*it)->getTlsCert()); - setValue("tls.protocol", (*it)->getTlsProtocol()); - Cdeqstr tlsCipherList = (*it)->getTlsCipherCollection(); - string tlsCiphers; - for (Cdeqstr::iterator it=tlsCipherList.begin(); it != tlsCipherList.end(); it++) { - if (!tlsCiphers.empty()) { - tlsCiphers += ","; + //Update PersistenceProtocol info + if (!persistenceDoc->getPersistenceProtocolCollection().IsNull()) { + //For now, we only support one broker. + CAF_CM_ASSERT(persistenceDoc->getPersistenceProtocolCollection()->getPersistenceProtocol().size() <= 1); + + deque brokerList = persistenceDoc->getPersistenceProtocolCollection()->getPersistenceProtocol(); + for (deque::iterator protIt=brokerList.begin(); protIt != brokerList.end(); protIt++) { + string protocolKey = "protocol." + (*protIt)->getProtocolName(); + setValue(protocolKey + ".protocol_name", (*protIt)->getProtocolName()); + setValue(protocolKey + ".uri", (*protIt)->getUri()); + setValue(protocolKey + ".tls.cert", (*protIt)->getTlsCert()); + setValue(protocolKey + ".tls.protocol", (*protIt)->getTlsProtocol()); + + Cdeqstr tlsCipherList = (*protIt)->getTlsCipherCollection(); + string tlsCiphers; + for (Cdeqstr::iterator tlsCipherIt=tlsCipherList.begin(); tlsCipherIt != tlsCipherList.end(); tlsCipherIt++) { + if (!tlsCiphers.empty()) { + tlsCiphers += ","; + } + tlsCiphers += *tlsCipherIt; + } + setValue(protocolKey + ".tls.ciphers", tlsCiphers); + + if (! (*protIt)->getTlsCertCollection().IsNull()) { + Cdeqstr tlsCertList = (*protIt)->getTlsCertCollection()->getCert(); + string tlsCerts; + for (Cdeqstr::iterator tlsCertIt=tlsCertList.begin(); tlsCertIt != tlsCertList.end(); tlsCertIt++) { + if (!tlsCerts.empty()) { + tlsCerts += ","; + } + tlsCerts += *tlsCertIt; + } + setValue(protocolKey + ".tls.cert_chain", tlsCerts); } - tlsCiphers += *it; } - setValue("tls.ciphers", tlsCiphers); } } } @@ -198,12 +232,16 @@ void CPersistenceNamespaceDb::update( void CPersistenceNamespaceDb::remove( const SmartPtrCPersistenceDoc& persistenceDoc) { CAF_CM_FUNCNAME("remove"); + CAF_CM_LOCK_UNLOCK; CAF_CM_PRECOND_ISINITIALIZED(_isInitialized); //Remove LocalSecurity info if (!persistenceDoc->getLocalSecurity().IsNull()){ + if (!persistenceDoc->getLocalSecurity()->getLocalId().empty()) { + removeKey("ep.local_id"); + } if (!persistenceDoc->getLocalSecurity()->getPrivateKey().empty()) { - removeKey("ep.private.key"); + removeKey("ep.private_key"); } if (!persistenceDoc->getLocalSecurity()->getCert().empty()) { removeKey("ep.cert"); @@ -214,32 +252,45 @@ void CPersistenceNamespaceDb::remove( if (!persistenceDoc->getRemoteSecurityCollection().IsNull()){ deque applications = persistenceDoc->getRemoteSecurityCollection()->getRemoteSecurity(); for (deque::iterator it=applications.begin(); it != applications.end(); it++) { - string appKey = (*it)->getRemoteId(); - removeKey(appKey + ".cms.cert"); - removeKey(appKey + ".cms.cert_chain"); + string appKey = "app." + (*it)->getRemoteId(); + if (!(*it)->getProtocolName().empty()) { + removeKey(appKey + ".protocol_name"); + } + if (!(*it)->getCmsCert().empty()) { + removeKey(appKey + ".cms.cert"); + } + if (!(*it)->getCmsCertCollection().IsNull() && !(*it)->getCmsCertCollection()->getCert().empty()) { + removeKey(appKey + ".cms.cert_chain"); + } + if (!(*it)->getCmsCipherName().empty()) { + removeKey(appKey + ".cms.cipher"); + } } } //Remove PersistenceProtocol info - if (!persistenceDoc->getPersistenceProtocol().IsNull()) { - //For now, we only support one broker. - CAF_CM_ASSERT(persistenceDoc->getPersistenceProtocol()->getAmqpBrokerCollection()->getAmqpBroker().size() <= 1); - - deque brokerList = persistenceDoc->getPersistenceProtocol()->getAmqpBrokerCollection()->getAmqpBroker(); - for (deque::iterator it=brokerList.begin(); it != brokerList.end(); it++) { - if (!(*it)->getAmqpBrokerId().empty()) { - removeKey("name"); - } + if (!persistenceDoc->getPersistenceProtocolCollection().IsNull()) { + //For now, we only support one broker. + CAF_CM_ASSERT(persistenceDoc->getPersistenceProtocolCollection()->getPersistenceProtocol().size() <= 1); + + deque brokerList = persistenceDoc->getPersistenceProtocolCollection()->getPersistenceProtocol(); + for (deque::iterator it=brokerList.begin(); it != brokerList.end(); it++) { + string protocolKey = "protocol." + (*it)->getProtocolName(); if (!(*it)->getUri().empty()) { - removeKey("uri"); + removeKey(protocolKey + "uri"); } if (!(*it)->getTlsCert().empty()) { - removeKey("tls.cert"); + removeKey(protocolKey + "tls.cert"); } if (!(*it)->getTlsProtocol().empty()) { - removeKey("tls.protocol"); + removeKey(protocolKey + "tls.protocol"); + } + if (!(*it)->getTlsCipherCollection().empty()) { + removeKey(protocolKey + "tls.ciphers"); + } + if (!(*it)->getTlsCertCollection().IsNull() && !(*it)->getTlsCertCollection()->getCert().empty()) { + removeKey(protocolKey + "tls.cert_chain"); } - removeKey("tls.ciphers"); } } } @@ -312,12 +363,16 @@ string CPersistenceNamespaceDb::getValue(const std::string& key) { } } catch(ProcessFailedException* ex){ - CAF_CM_LOG_DEBUG_VA1("exception: %s", ex->getMsg().c_str()); - CAF_CM_EXCEPTION_VA3(E_UNEXPECTED, - "NamespaceDB command failed - %s: %s: %s", - ex->getMsg().c_str(), - stdoutContent.c_str(), - stderrContent.c_str()); + if (ex->getMsg().compare("There is no namespace database associated with this virtual machine") == 0) { + CAF_CM_LOG_INFO_VA1("Acceptable exception... continuing - %s", ex->getMsg().c_str()); + } else { + CAF_CM_LOG_DEBUG_VA1("ProcessFailedException - %s", ex->getMsg().c_str()); + CAF_CM_EXCEPTION_VA3(E_UNEXPECTED, + "NamespaceDB command failed - %s: %s: %s", + ex->getMsg().c_str(), + stdoutContent.c_str(), + stderrContent.c_str()); + } } return value; } @@ -347,7 +402,7 @@ void CPersistenceNamespaceDb::setValue(const std::string& key, const std::string argv.push_back("-k"); argv.push_back(key); argv.push_back("-f"); - argv.push_back(value); + argv.push_back(tmpFile); ProcessUtils::runSync(argv, stdoutContent, stderrContent); //Add to key+hash cache diff --git a/open-vm-tools/common-agent/Cpp/ManagementAgent/Subsystems/MaIntegration/src/CPersistenceNamespaceDb.h b/open-vm-tools/common-agent/Cpp/ManagementAgent/Subsystems/MaIntegration/src/CPersistenceNamespaceDb.h index 7a46fe6cd..36d25c859 100644 --- a/open-vm-tools/common-agent/Cpp/ManagementAgent/Subsystems/MaIntegration/src/CPersistenceNamespaceDb.h +++ b/open-vm-tools/common-agent/Cpp/ManagementAgent/Subsystems/MaIntegration/src/CPersistenceNamespaceDb.h @@ -14,6 +14,7 @@ using namespace Caf; /// TODO - describe class class CPersistenceNamespaceDb : public TCafSubSystemObjectRoot, + public IBean, public IPersistence { public: CPersistenceNamespaceDb(); @@ -22,9 +23,17 @@ public: CAF_DECLARE_OBJECT_IDENTIFIER(_sObjIdPersistenceNamespaceDb) CAF_BEGIN_INTERFACE_MAP(CPersistenceNamespaceDb) + CAF_INTERFACE_ENTRY(IBean) CAF_INTERFACE_ENTRY(IPersistence) CAF_END_INTERFACE_MAP() +public: // IBean + virtual void initializeBean( + const IBean::Cargs& ctorArgs, + const IBean::Cprops& properties); + + virtual void terminateBean(); + public: // IPersistence void initialize(); @@ -54,6 +63,7 @@ private: private: CAF_CM_CREATE; CAF_CM_CREATE_LOG; + CAF_CM_CREATE_THREADSAFE; CAF_CM_DECLARE_NOCOPY(CPersistenceNamespaceDb); }; diff --git a/open-vm-tools/common-agent/Cpp/ManagementAgent/Subsystems/MaIntegration/src/CPersistenceOutboundChannelAdapterInstance.cpp b/open-vm-tools/common-agent/Cpp/ManagementAgent/Subsystems/MaIntegration/src/CPersistenceOutboundChannelAdapterInstance.cpp index ad4335d7f..e74540726 100644 --- a/open-vm-tools/common-agent/Cpp/ManagementAgent/Subsystems/MaIntegration/src/CPersistenceOutboundChannelAdapterInstance.cpp +++ b/open-vm-tools/common-agent/Cpp/ManagementAgent/Subsystems/MaIntegration/src/CPersistenceOutboundChannelAdapterInstance.cpp @@ -49,27 +49,30 @@ void CPersistenceOutboundChannelAdapterInstance::wire( CAF_CM_VALIDATE_INTERFACE(appContext); CAF_CM_VALIDATE_INTERFACE(channelResolver); - const SmartPtrIMessageChannel errorMessageChannel = - channelResolver->resolveChannelName("errorChannel"); - - const std::string inputChannelStr = _configSection->findRequiredAttribute("channel"); - SmartPtrIMessageChannel inputChannel = channelResolver->resolveChannelName(inputChannelStr); - SmartPtrIIntegrationObject inputChannelObj; - inputChannelObj.QueryInterface(inputChannel); - - SmartPtrCPersistenceMessageHandler persistenceMessageHandler; - persistenceMessageHandler.CreateInstance(); - persistenceMessageHandler->initialize(_configSection); - SmartPtrIMessageHandler messageHandler; - messageHandler.QueryInterface(persistenceMessageHandler); - - _messagingTemplate.CreateInstance(); - _messagingTemplate->initialize( - channelResolver, - inputChannelObj, - errorMessageChannel, - SmartPtrIMessageChannel(), - messageHandler); + const SmartPtrIPersistence persistence = createPersistence(appContext); + if (! persistence.IsNull()) { + const SmartPtrIMessageChannel errorMessageChannel = + channelResolver->resolveChannelName("errorChannel"); + + const std::string inputChannelStr = _configSection->findRequiredAttribute("channel"); + SmartPtrIMessageChannel inputChannel = channelResolver->resolveChannelName(inputChannelStr); + SmartPtrIIntegrationObject inputChannelObj; + inputChannelObj.QueryInterface(inputChannel); + + SmartPtrCPersistenceMessageHandler persistenceMessageHandler; + persistenceMessageHandler.CreateInstance(); + persistenceMessageHandler->initialize(_configSection, persistence); + SmartPtrIMessageHandler messageHandler; + messageHandler.QueryInterface(persistenceMessageHandler); + + _messagingTemplate.CreateInstance(); + _messagingTemplate->initialize( + channelResolver, + inputChannelObj, + errorMessageChannel, + SmartPtrIMessageChannel(), + messageHandler); + } } void CPersistenceOutboundChannelAdapterInstance::start( @@ -78,8 +81,10 @@ void CPersistenceOutboundChannelAdapterInstance::start( CAF_CM_PRECOND_ISINITIALIZED(_isInitialized); CAF_CM_VALIDATE_BOOL(!_isRunning); - _isRunning = true; - _messagingTemplate->start(0); + if (! _messagingTemplate.IsNull()) { + _isRunning = true; + _messagingTemplate->start(0); + } } void CPersistenceOutboundChannelAdapterInstance::stop( @@ -88,8 +93,10 @@ void CPersistenceOutboundChannelAdapterInstance::stop( CAF_CM_PRECOND_ISINITIALIZED(_isInitialized); CAF_CM_VALIDATE_BOOL(_isRunning); - _isRunning = false; - _messagingTemplate->stop(0); + if (! _messagingTemplate.IsNull()) { + _isRunning = false; + _messagingTemplate->stop(0); + } } bool CPersistenceOutboundChannelAdapterInstance::isRunning() const { @@ -98,3 +105,30 @@ bool CPersistenceOutboundChannelAdapterInstance::isRunning() const { return _isRunning; } + +SmartPtrIPersistence CPersistenceOutboundChannelAdapterInstance::createPersistence( + const SmartPtrIAppContext& appContext) const { + CAF_CM_FUNCNAME("createPersistence"); + CAF_CM_VALIDATE_INTERFACE(appContext); + + SmartPtrIPersistence rc; + const std::string removeRefStr = _configSection->findRequiredAttribute("ref"); + CAF_CM_LOG_DEBUG_VA1("Creating the persistence impl - %s", removeRefStr.c_str()); + const SmartPtrIBean bean = appContext->getBean(removeRefStr); + rc.QueryInterface(bean, false); + CAF_CM_VALIDATE_INTERFACE(rc); + + try { + rc->initialize(); + } + CAF_CM_CATCH_CAF + CAF_CM_CATCH_DEFAULT + CAF_CM_LOG_WARN_CAFEXCEPTION; + + if (CAF_CM_ISEXCEPTION) { + rc = SmartPtrIPersistence(); + CAF_CM_CLEAREXCEPTION; + } + + return rc; +} diff --git a/open-vm-tools/common-agent/Cpp/ManagementAgent/Subsystems/MaIntegration/src/CPersistenceOutboundChannelAdapterInstance.h b/open-vm-tools/common-agent/Cpp/ManagementAgent/Subsystems/MaIntegration/src/CPersistenceOutboundChannelAdapterInstance.h index d9be026b8..f3e2629a4 100644 --- a/open-vm-tools/common-agent/Cpp/ManagementAgent/Subsystems/MaIntegration/src/CPersistenceOutboundChannelAdapterInstance.h +++ b/open-vm-tools/common-agent/Cpp/ManagementAgent/Subsystems/MaIntegration/src/CPersistenceOutboundChannelAdapterInstance.h @@ -45,6 +45,10 @@ public: // ILifecycle bool isRunning() const; +private: + SmartPtrIPersistence createPersistence( + const SmartPtrIAppContext& appContext) const; + private: bool _isInitialized; bool _isRunning; diff --git a/open-vm-tools/common-agent/Cpp/ManagementAgent/Subsystems/MaIntegration/src/CPersistenceReadingMessageSource.cpp b/open-vm-tools/common-agent/Cpp/ManagementAgent/Subsystems/MaIntegration/src/CPersistenceReadingMessageSource.cpp index 383a652d8..584f8bf8a 100644 --- a/open-vm-tools/common-agent/Cpp/ManagementAgent/Subsystems/MaIntegration/src/CPersistenceReadingMessageSource.cpp +++ b/open-vm-tools/common-agent/Cpp/ManagementAgent/Subsystems/MaIntegration/src/CPersistenceReadingMessageSource.cpp @@ -22,24 +22,17 @@ CPersistenceReadingMessageSource::~CPersistenceReadingMessageSource() { } void CPersistenceReadingMessageSource::initialize( - const SmartPtrIDocument& configSection) { - CAF_CM_FUNCNAME("initialize"); + const SmartPtrIDocument& configSection, + const SmartPtrIPersistence& persistence) { + CAF_CM_FUNCNAME_VALIDATE("initialize"); CAF_CM_PRECOND_ISNOTINITIALIZED(_isInitialized); CAF_CM_VALIDATE_INTERFACE(configSection); + CAF_CM_VALIDATE_SMARTPTR(persistence); _id = configSection->findRequiredAttribute("id"); - const std::string implClass = configSection->findRequiredAttribute("impl-class"); const SmartPtrIDocument pollerDoc = configSection->findOptionalChild("poller"); - SmartPtrIPersistence persistence; - persistence.CreateInstance(implClass.c_str()); - try { - persistence->initialize(); - _persistence = persistence; - } - CAF_CM_CATCH_CAF - CAF_CM_CATCH_DEFAULT - CAF_CM_LOG_CRIT_CAFEXCEPTION; + _persistence = persistence; setPollerMetadata(pollerDoc); _refreshSec = 0; @@ -70,15 +63,13 @@ SmartPtrIIntMessage CPersistenceReadingMessageSource::doReceive( } SmartPtrIIntMessage message; - if (! _persistence.IsNull()) { - const SmartPtrCPersistenceDoc persistence = _persistence->getUpdated(0); - if (! persistence.IsNull()) { - SmartPtrCIntMessage messageImpl; - messageImpl.CreateInstance(); - messageImpl->initializeStr(XmlRoots::savePersistenceToString(persistence), - IIntMessage::SmartPtrCHeaders(), IIntMessage::SmartPtrCHeaders()); - message = messageImpl; - } + const SmartPtrCPersistenceDoc persistence = _persistence->getUpdated(0); + if (! persistence.IsNull()) { + SmartPtrCIntMessage messageImpl; + messageImpl.CreateInstance(); + messageImpl->initializeStr(XmlRoots::savePersistenceToString(persistence), + IIntMessage::SmartPtrCHeaders(), IIntMessage::SmartPtrCHeaders()); + message = messageImpl; } return message; diff --git a/open-vm-tools/common-agent/Cpp/ManagementAgent/Subsystems/MaIntegration/src/CPersistenceReadingMessageSource.h b/open-vm-tools/common-agent/Cpp/ManagementAgent/Subsystems/MaIntegration/src/CPersistenceReadingMessageSource.h index e79acf9bd..ddbfd6702 100644 --- a/open-vm-tools/common-agent/Cpp/ManagementAgent/Subsystems/MaIntegration/src/CPersistenceReadingMessageSource.h +++ b/open-vm-tools/common-agent/Cpp/ManagementAgent/Subsystems/MaIntegration/src/CPersistenceReadingMessageSource.h @@ -23,7 +23,8 @@ public: public: void initialize( - const SmartPtrIDocument& configSection); + const SmartPtrIDocument& configSection, + const SmartPtrIPersistence& persistence); protected: // CAbstractPollableChannel bool doSend( diff --git a/open-vm-tools/common-agent/Cpp/ManagementAgent/Subsystems/MaIntegration/src/MaIntegration.cpp b/open-vm-tools/common-agent/Cpp/ManagementAgent/Subsystems/MaIntegration/src/MaIntegration.cpp index 8866b9aac..c6054d1b1 100644 --- a/open-vm-tools/common-agent/Cpp/ManagementAgent/Subsystems/MaIntegration/src/MaIntegration.cpp +++ b/open-vm-tools/common-agent/Cpp/ManagementAgent/Subsystems/MaIntegration/src/MaIntegration.cpp @@ -15,6 +15,25 @@ namespace MaIntegration { const char* _sObjIdIntegrationObjects = "com.vmware.commonagent.maintegration.integrationobjects"; }} +namespace Caf { + const char* _sObjIdCollectSchemaExecutor = "com.vmware.commonagent.maintegration.collectschemaexecutor"; + const char* _sObjIdProviderCollectSchemaExecutor = "com.vmware.commonagent.maintegration.providercollectschemaexecutor"; + const char* _sObjIdProviderExecutor = "com.vmware.commonagent.maintegration.providerexecutor"; + const char* _sObjIdSinglePmeRequestSplitterInstance = "com.vmware.commonagent.maintegration.singlepmerequestsplitterinstance"; + const char* _sObjIdSinglePmeRequestSplitter = "com.vmware.commonagent.maintegration.singlepmerequestsplitter"; + const char* _sObjIdDiagToMgmtRequestTransformerInstance = "com.vmware.commonagent.maintegration.diagtomgmtrequesttransformerinstance"; + const char* _sObjIdDiagToMgmtRequestTransformer = "com.vmware.commonagent.maintegration.diagtomgmtrequesttransformer"; + const char* _sObjIdInstallToMgmtRequestTransformerInstance = "com.vmware.commonagent.maintegration.installtomgmtrequesttransformerinstance"; + const char* _sObjIdInstallToMgmtRequestTransformer = "com.vmware.commonagent.maintegration.installtomgmtrequesttransformer"; + const char* _sObjIdPersistenceNamespaceDb = "com.vmware.commonagent.maintegration.persistencenamespacedb"; + const char* _sObjIdConfigEnv = "com.vmware.commonagent.maintegration.configenv"; + + const char* _sObjIdAttachmentRequestTransformerInstance = "com.vmware.commonagent.maintegration.attachmentrequesttransformerinstance"; + const char* _sObjIdAttachmentRequestTransformer = "com.vmware.commonagent.maintegration.attachmentrequesttransformer"; + const char* _sObjIdVersionTransformerInstance = "com.vmware.commonagent.maintegration.versiontransformerinstance"; + const char* _sObjIdVersionTransformer = "com.vmware.commonagent.maintegration.versiontransformer"; +} + CEcmSubSystemModule _Module; using namespace Caf::MaIntegration; diff --git a/open-vm-tools/common-agent/Cpp/ManagementAgent/Subsystems/MaIntegration/src/MaIntegration.h b/open-vm-tools/common-agent/Cpp/ManagementAgent/Subsystems/MaIntegration/src/MaIntegration.h index bc8ce3806..8eb6f1fa1 100644 --- a/open-vm-tools/common-agent/Cpp/ManagementAgent/Subsystems/MaIntegration/src/MaIntegration.h +++ b/open-vm-tools/common-agent/Cpp/ManagementAgent/Subsystems/MaIntegration/src/MaIntegration.h @@ -16,4 +16,24 @@ namespace MaIntegration { extern const char* _sObjIdIntegrationObjects; }} +namespace Caf { + extern const char* _sObjIdCollectSchemaExecutor; + extern const char* _sObjIdProviderCollectSchemaExecutor; + extern const char* _sObjIdProviderExecutor; + extern const char* _sObjIdSinglePmeRequestSplitterInstance; + extern const char* _sObjIdSinglePmeRequestSplitter; + extern const char* _sObjIdDiagToMgmtRequestTransformerInstance; + extern const char* _sObjIdDiagToMgmtRequestTransformer; + extern const char* _sObjIdInstallToMgmtRequestTransformerInstance; + extern const char* _sObjIdInstallToMgmtRequestTransformer; + + extern const char* _sObjIdAttachmentRequestTransformerInstance; + extern const char* _sObjIdAttachmentRequestTransformer; + extern const char* _sObjIdVersionTransformerInstance; + extern const char* _sObjIdVersionTransformer; + + extern const char* _sObjIdPersistenceNamespaceDb; + extern const char* _sObjIdConfigEnv; +} + #endif /* _MaIntegration_h_ */ diff --git a/open-vm-tools/common-agent/Cpp/ManagementAgent/Subsystems/MaIntegration/src/stdafx.h b/open-vm-tools/common-agent/Cpp/ManagementAgent/Subsystems/MaIntegration/src/stdafx.h index e45ab2938..36cfe8832 100644 --- a/open-vm-tools/common-agent/Cpp/ManagementAgent/Subsystems/MaIntegration/src/stdafx.h +++ b/open-vm-tools/common-agent/Cpp/ManagementAgent/Subsystems/MaIntegration/src/stdafx.h @@ -12,13 +12,11 @@ //{{CAF_SUBSYSTEM}} #include -#include -#include #include #include #include -#include +#include "MaContracts.h" #include "MaIntegration.h" #include "IntegrationObjects.h" @@ -37,6 +35,8 @@ #include "CPersistenceInboundChannelAdapterInstance.h" #include "CPersistenceOutboundChannelAdapterInstance.h" +#include "CPersistenceMerge.h" +#include "CConfigEnvMerge.h" #include "CConfigEnv.h" #include "CConfigEnvReadingMessageSource.h" #include "CConfigEnvMessageHandler.h" diff --git a/open-vm-tools/common-agent/Cpp/ManagementAgent/Subsystems/VgAuth/src/stdafx.h b/open-vm-tools/common-agent/Cpp/ManagementAgent/Subsystems/VgAuth/src/stdafx.h index 7083b7433..583b077b1 100644 --- a/open-vm-tools/common-agent/Cpp/ManagementAgent/Subsystems/VgAuth/src/stdafx.h +++ b/open-vm-tools/common-agent/Cpp/ManagementAgent/Subsystems/VgAuth/src/stdafx.h @@ -15,8 +15,6 @@ namespace Caf { } #include -#include -#include #include #include #include diff --git a/open-vm-tools/common-agent/Cpp/ProviderFx/ProviderFx/src/CProviderCdifFormatter.cpp b/open-vm-tools/common-agent/Cpp/ProviderFx/ProviderFx/src/CProviderCdifFormatter.cpp index d66d5d1ec..0fc2516d4 100644 --- a/open-vm-tools/common-agent/Cpp/ProviderFx/ProviderFx/src/CProviderCdifFormatter.cpp +++ b/open-vm-tools/common-agent/Cpp/ProviderFx/ProviderFx/src/CProviderCdifFormatter.cpp @@ -12,7 +12,6 @@ #include "../../Framework/src/Doc/DocXml/ResponseXml/ResponseXmlLink.h" #include "../../Framework/src/Doc/DocUtils/DocUtilsLink.h" #include "../include/IProviderResponse.h" -#include using namespace Caf; diff --git a/open-vm-tools/common-agent/Cpp/ProviderFx/ProviderFx/src/stdafx.h b/open-vm-tools/common-agent/Cpp/ProviderFx/ProviderFx/src/stdafx.h index 9f8595cdf..17d996656 100644 --- a/open-vm-tools/common-agent/Cpp/ProviderFx/ProviderFx/src/stdafx.h +++ b/open-vm-tools/common-agent/Cpp/ProviderFx/ProviderFx/src/stdafx.h @@ -12,7 +12,6 @@ //{{CAF_SUBSYSTEM}} #include -#include #include #include #include diff --git a/open-vm-tools/common-agent/etc/config/CommAmqpListener-context-amqp.xml b/open-vm-tools/common-agent/etc/config/CommAmqpListener-context-amqp.xml index 8bb321046..71148568b 100644 --- a/open-vm-tools/common-agent/etc/config/CommAmqpListener-context-amqp.xml +++ b/open-vm-tools/common-agent/etc/config/CommAmqpListener-context-amqp.xml @@ -24,7 +24,8 @@ channel="eventOutFileChannel" amqp-template="amqpTemplate" exchange-name="client.mgmt.event" - routing-key="caf.event" /> + routing-key="caf.event" + mapped-request-headers="caf.msg.*|amqp*" /> - - + - - + + + ref="persistenceNsdbBean"> + ref="configenvBean" + remove-ref="persistenceNsdbBean"/> - + ref="persistenceNsdbBean"/> diff --git a/open-vm-tools/common-agent/etc/install/caf-dbg.sh b/open-vm-tools/common-agent/etc/install/caf-dbg.sh index 3fe651d1f..30620185a 100644 --- a/open-vm-tools/common-agent/etc/install/caf-dbg.sh +++ b/open-vm-tools/common-agent/etc/install/caf-dbg.sh @@ -27,8 +27,8 @@ function enableCaf() { validateNotEmpty "$password" "password" local uriFile="$CAF_INPUT_DIR/persistence/protocol/amqpBroker_default/uri.txt" - sed -i "s/@amqpUsername@/${username}/g" "$uriFile" - sed -i "s/@amqpPassword@/${password}/g" "$uriFile" + sed -i "s/#amqpUsername#/${username}/g" "$uriFile" + sed -i "s/#amqpPassword#/${password}/g" "$uriFile" } function setBroker() { @@ -36,7 +36,7 @@ function setBroker() { validateNotEmpty "$brokerAddr" "brokerAddr" local uriFile="$CAF_INPUT_DIR/persistence/protocol/amqpBroker_default/uri.txt" - sed -i "s/@brokerAddr@/$brokerAddr/g" "$uriFile" + sed -i "s/#brokerAddr#/$brokerAddr/g" "$uriFile" } function prtHelp() { @@ -51,7 +51,6 @@ function prtHelp() { echo " * validateXml Validates the XML files against the published schema" echo " * validateInstall Validates that the files are in the right locations and have the right permissions" echo " * validateOVTInstall Validates that the files are in the right locations for OVT and have the right permissions" - echo " * checkFsPerms Checks the permissions, owner and group of the major CAF directories and files" echo "" echo " * clearCaches Clears the CAF caches" } @@ -123,6 +122,133 @@ function checkTunnel() { popd > /dev/null } +function validateInstall() { + checkFsPermsAll + checkFileExistsBin + checkFileExistsLib + checkFileExistsConfig + checkFileExistsScripts + checkFileExistsInstall + checkFileExistsInvokers + checkFileExistsProviderReg +} + +function checkFsPermsAll() { + checkFsPerms "$CAF_INPUT_DIR" "755" + checkFsPerms "$CAF_OUTPUT_DIR" "755" + checkFsPerms "$CAF_LOG_DIR" "755" + checkFsPerms "$CAF_BIN_DIR" "755" + checkFsPerms "$CAF_LIB_DIR" "755" +} + +function checkFileExistsBin() { + checkFileExists "$CAF_BIN_DIR/CommAmqpListener" + checkFileExists "$CAF_BIN_DIR/ConfigProvider" + checkFileExists "$CAF_BIN_DIR/InstallProvider" + checkFileExists "$CAF_BIN_DIR/ManagementAgentHost" + checkFileExists "$CAF_BIN_DIR/RemoteCommandProvider" + checkFileExists "$CAF_BIN_DIR/TestInfraProvider" + checkFileExists "$CAF_BIN_DIR/VGAuthService" + checkFileExists "$CAF_BIN_DIR/vmware-vgauth-cmd" +} + +function checkFileExistsLib() { + checkFileExists "$CAF_LIB_DIR/libCafIntegrationSubsys.so" + checkFileExists "$CAF_LIB_DIR/libCommAmqpIntegration.so" + checkFileExists "$CAF_LIB_DIR/libCommAmqpIntegrationSubsys.so" + checkFileExists "$CAF_LIB_DIR/libCommIntegrationSubsys.so" + checkFileExists "$CAF_LIB_DIR/libFramework.so" + checkFileExists "$CAF_LIB_DIR/libIntegrationSubsys.so" + checkFileExists "$CAF_LIB_DIR/libMaIntegrationSubsys.so" + checkFileExists "$CAF_LIB_DIR/libProviderFx.so" + checkFileExists "$CAF_LIB_DIR/libVgAuthIntegrationSubsys.so" + checkFileExists "$CAF_LIB_DIR/libcom_err.so.3" + checkFileExists "$CAF_LIB_DIR/libcrypto.so.1.0.2" + checkFileExists "$CAF_LIB_DIR/libgcc_s.so.1" + checkFileExists "$CAF_LIB_DIR/libglib-2.0.so.0.3400.3" + checkFileExists "$CAF_LIB_DIR/libgthread-2.0.so.0.3400.3" + checkFileExists "$CAF_LIB_DIR/liblog4cpp.so.5.0.6" + checkFileExists "$CAF_LIB_DIR/librabbitmq.so.4.1.4" + checkFileExists "$CAF_LIB_DIR/libssl.so.1.0.2" + checkFileExists "$CAF_LIB_DIR/libstdc++.so.6.0.13" + checkFileExists "$CAF_LIB_DIR/libvgauth.so" + checkFileExists "$CAF_LIB_DIR/libxerces-c-3.1.so" + checkFileExists "$CAF_LIB_DIR/libxml-security-c.so.16" + checkFileExists "$CAF_LIB_DIR/libz.so.1.2.3" +} + +function checkFileExistsConfig() { + checkFileExists "$CAF_CONFIG_DIR/CommAmqpListener-appconfig" + checkFileExists "$CAF_CONFIG_DIR/CommAmqpListener-context-amqp.xml" + checkFileExists "$CAF_CONFIG_DIR/CommAmqpListener-context-common.xml" + checkFileExists "$CAF_CONFIG_DIR/CommAmqpListener-context-tunnel.xml" + checkFileExists "$CAF_CONFIG_DIR/CommAmqpListener-log4cpp_config" + checkFileExists "$CAF_CONFIG_DIR/IntBeanConfigFile.xml" + checkFileExists "$CAF_CONFIG_DIR/cafenv-appconfig" + checkFileExists "$CAF_CONFIG_DIR/ma-appconfig" + checkFileExists "$CAF_CONFIG_DIR/ma-context.xml" + checkFileExists "$CAF_CONFIG_DIR/ma-log4cpp_config" + checkFileExists "$CAF_CONFIG_DIR/providerFx-appconfig" + checkFileExists "$CAF_CONFIG_DIR/providerFx-log4cpp_config" + checkFileExists "$CAF_CONFIG_DIR/persistence-appconfig" +} + +function checkFileExistsScripts() { + checkFileExists "$CAF_CONFIG_DIR/../scripts/caf-common" + checkFileExists "$CAF_CONFIG_DIR/../scripts/caf-processes.sh" + checkFileExists "$CAF_CONFIG_DIR/../scripts/setUpVgAuth" + checkFileExists "$CAF_CONFIG_DIR/../scripts/start-VGAuthService" + checkFileExists "$CAF_CONFIG_DIR/../scripts/start-listener" + checkFileExists "$CAF_CONFIG_DIR/../scripts/start-ma" + checkFileExists "$CAF_CONFIG_DIR/../scripts/startTestProc" + checkFileExists "$CAF_CONFIG_DIR/../scripts/stop-VGAuthService" + checkFileExists "$CAF_CONFIG_DIR/../scripts/stop-listener" + checkFileExists "$CAF_CONFIG_DIR/../scripts/stop-ma" + checkFileExists "$CAF_CONFIG_DIR/../scripts/tearDownVgAuth" + checkFileExists "$CAF_CONFIG_DIR/../scripts/vgAuth" +} +function checkFileExistsInstall() { + checkFileExists "$CAF_CONFIG_DIR/../install/caf-c-communication-service" + checkFileExists "$CAF_CONFIG_DIR/../install/caf-c-management-agent" + checkFileExists "$CAF_CONFIG_DIR/../install/caf-dbg.sh" + checkFileExists "$CAF_CONFIG_DIR/../install/caf-vgauth" + checkFileExists "$CAF_CONFIG_DIR/../install/commonenv.sh" + checkFileExists "$CAF_CONFIG_DIR/../install/install.sh" + checkFileExists "$CAF_CONFIG_DIR/../install/postinstallInstall.sh" + checkFileExists "$CAF_CONFIG_DIR/../install/postinstallUpgrade.sh" + checkFileExists "$CAF_CONFIG_DIR/../install/preinstallUpgrade.sh" + checkFileExists "$CAF_CONFIG_DIR/../install/preremoveUninstall.sh" + checkFileExists "$CAF_CONFIG_DIR/../install/preuninstall.sh" + checkFileExists "$CAF_CONFIG_DIR/../install/preupgrade.sh" + checkFileExists "$CAF_CONFIG_DIR/../install/restartServices.sh" + checkFileExists "$CAF_CONFIG_DIR/../install/stopAndRemoveServices.sh" + checkFileExists "$CAF_CONFIG_DIR/../install/upgrade.sh" +} + +function checkFileExistsInvokers() { + checkFileExists "$CAF_INVOKERS_DIR/cafTestInfra_CafTestInfraProvider_1_0_0.sh" + checkFileExists "$CAF_INVOKERS_DIR/caf_ConfigProvider_1_0_0.sh" + checkFileExists "$CAF_INVOKERS_DIR/caf_InstallProvider_1_0_0.sh" + checkFileExists "$CAF_INVOKERS_DIR/caf_RemoteCommandProvider_1_0_0.sh" +} + +function checkFileExistsProviderReg() { + checkFileExists "$CAF_INPUT_DIR/providerReg/cafTestInfra_CafTestInfraProvider_1_0_0.xml" + checkFileExists "$CAF_INPUT_DIR/providerReg/caf_ConfigProvider_1_0_0.xml" + checkFileExists "$CAF_INPUT_DIR/providerReg/caf_InstallProvider_1_0_0.xml" + checkFileExists "$CAF_INPUT_DIR/providerReg/caf_RemoteCommandProvider_1_0_0.xml" +} + +function checkFileExists() { + local path="$1" + validateNotEmpty "$path" "path" + + if [ ! -f "$path" ]; then + echo "*** File existence check failed - expected: $path" + exit 1 + fi +} + function checkFsPerms() { local dirOrFile="$1" local permExp="$2" diff --git a/open-vm-tools/common-agent/etc/install/install.sh b/open-vm-tools/common-agent/etc/install/install.sh index 02937f3e5..0a2f1e277 100644 --- a/open-vm-tools/common-agent/etc/install/install.sh +++ b/open-vm-tools/common-agent/etc/install/install.sh @@ -23,7 +23,7 @@ baseLibDir='/usr/lib' baseBinDir='/usr/lib' baseInputDir='/var/lib' baseOutputDir='/var/lib' -brokerAddr='@brokerAddr@' +brokerAddr='#brokerAddr#' linkSo='yes' #Help function @@ -117,8 +117,6 @@ configDir="$baseEtcDir/config" installDir="$baseEtcDir/install" scriptDir="$baseEtcDir/scripts" -brokerUriOpts="vhost=caf;connection_timeout=150000;connection_retries=10;connection_seconds_to_wait=10;channel_cache_size=3" - #Ensure directories exist mkdir -p "$outputDir" mkdir -p "$persistenceDir" @@ -143,17 +141,11 @@ fi tunnelPort=$(netstat -ldn | egrep ":6672 ") if [ -f "$vcidPath" -a "$tunnelPort" != "" ]; then - commAmqpListenerContext="$configDir/CommAmqpListener-context-tunnel.xml" - brokerUri="tunnel:agentId1:bogus@localhost:6672/${reactiveRequestAmqpQueueId}?${brokerUriOpts}" + brokerUri="tunnel:agentId1:bogus@localhost:6672/${reactiveRequestAmqpQueueId}" else - commAmqpListenerContext="$configDir/CommAmqpListener-context-amqp.xml" - brokerUri="amqp:@amqpUsername@:@amqpPassword@@${brokerAddr}:5672/${reactiveRequestAmqpQueueId}?${brokerUriOpts}" + brokerUri="amqp:#amqpUsername#:#amqpPassword#@${brokerAddr}:5672/${reactiveRequestAmqpQueueId}" fi -echo "[globals]" > "$configDir/persistence-appconfig" -echo "reactive_request_amqp_queue_id=$reactiveRequestAmqpQueueId" >> "$configDir/persistence-appconfig" -echo "comm_amqp_listener_context=$commAmqpListenerContext" >> "$configDir/persistence-appconfig" - echo -n "$brokerUri" > "$amqpBrokerDir/uri.txt" echo -n "$reactiveRequestAmqpQueueId" > "$localDir/localId.txt"