/////////////////////////////////////////////////////////////////////////////// // Copyright (C) 2002-2025, Open Design Alliance (the "Alliance"). // All rights reserved. // // This software and its documentation and related materials are owned by // the Alliance. The software may only be incorporated into application // programs owned by members of the Alliance, subject to a signed // Membership Agreement and Supplemental Software License Agreement with the // Alliance. The structure and organization of this software are the valuable // trade secrets of the Alliance and its suppliers. The software is also // protected by copyright law and international treaty provisions. Application // programs incorporating this software must include the following statement // with their copyright notices: // // This application incorporates Open Design Alliance software pursuant to a license // agreement with Open Design Alliance. // Open Design Alliance Copyright (C) 2002-2025 by Open Design Alliance. // All rights reserved. // // By use of this software, its documentation or related materials, you // acknowledge and accept the above terms. /////////////////////////////////////////////////////////////////////////////// #pragma once #include #include #include #include "DbParameterValueSet.h" class OdDbParameterInterface; typedef OdSmartPtr OdDbParameterInterfacePtr; /** */ class DYNBLOCKS_EXPORT OdDbParameterInterface : public OdRxObject { public: ODRX_DECLARE_MEMBERS(OdDbParameterInterface); virtual OdInt32 valueId() const = 0; virtual OdString getName() const = 0; virtual void setName(const OdString&) = 0; virtual bool isNameValid(const OdString&) const = 0; virtual bool isNameUnique(const OdString&) const = 0; virtual OdString getExpression(bool&, OdDbEvalVariant&) = 0; virtual OdString getExpression() const = 0; virtual OdResult setExpression(const OdString&) = 0; virtual OdString getDescription() const = 0; virtual void setDescription(const OdString&) = 0; virtual OdDbEvalVariant getValue() const = 0; virtual OdResult setValue(const OdDbEvalVariant&) = 0; virtual OdDbParameterValueSetPtr getValueSet() const = 0; virtual bool getIsReadOnly() const = 0; virtual DwgDataType getDataType() const = 0; virtual bool isUsedInExpression() const = 0; virtual bool isAngular() const = 0; virtual bool isRuntimeInterface() const = 0; virtual OdDbObjectPtr parameterObject() const = 0; static OdDbParameterInterfacePtr parameterInterface(const OdDbObject* obj, const OdString& name, bool isRuntimeInterface); }; typedef OdArray OdDbParameterInterfaceArray;