This documentation supports the 9.1 to 9.1 Service Pack 3 version and its patches of BMC Atrium Core. The documentation for version 9.1.04 and its patches is available here.

To view the latest version, select the version from the Product version menu.

CMDBAttributeLimit structure

The CMDBAttributeLimit structure holds the data limit definitions for an attribute of any data type.


typedef struct CMDBAttributeLimit
{
   unsigned int dataType;
   union
   {
      struct
      {
         int rangeLow;
         int rangeHigh;
      } integerLimits;
      struct
      {
         int maxLength;
         char *format;
         unsigned int 	menuStyle;
         ARNameType charMenu;
         char *pattern;
         unsigned int qbeMatchOperation;
      } charLimits;
      struct
      {
         double rangeLow;
         double rangeHigh;
         int precision;
      } realLimits;
      struct
      {
         char *rangeLow;
         char *rangeHigh;
         int precision;
      } decimalLimits;
      struct
      {
         int minDate;
         int maxDate;
      } dateLimits;
      struct
      {
         unsigned int listStyle;
         union
         {
            ARNameList regularList;
            AREnumItemList customList;
         } u;
      } enumLimits;
      struct
      {
         char *rangeLow;
         char *rangeHigh;
         int precision;
	 ARCurrencyDetailList functionalCurrencies;
         ARCurrencyDetailList allowableCurrencies;
      } currencyLimits;
      struct
      {
         unsigned long maxSize;
         ARNameType attachmentPoolName;
      } attachLimits;
   } u;
}CMDBAttributeLimit;



The CMDBAttributeLimit structure consists of the following element:

dataType

An integer value indicating the data type of the value being passed. The following table describes the possible values. Data types represented by values not in the following table are either unsupported or display fields.

Value

Data type

Description

0

CMDB_ATTR_DATA_TYPE_NULL

Specifies a NULL value.

1

CMDB_ATTR_DATA_TYPE_ KEYWORD

An integer identifying the particular keyword (defined in cmdb.h ).

2

CMDB_ATTR_DATA_TYPE_ INTEGER

A 32-bit signed integer value.

3

CMDB_ATTR_DATA_TYPE_REAL

A 64-bit floating-point value.

4

CMDB_ATTR_DATA_TYPE_CHAR

A null-terminated string that requires freeing allocated space. A NULL pointer of this type is equivalent to CMDB_ATTR_DATA_TYPE_NULL.

5

CMDB_ATTR_DATA_TYPE_DIARY

A null-terminated string that requires freeing allocated space. A NULL pointer of this type is equivalent to CMDB_ATTR_DATA_TYPE_NULL.

6

CMDB_ATTR_DATA_TYPE_ENUM

A set of integer values (beginning with zero) that represent possible selection values as an indexed list. You must specify an attribute limit by using ARNameList to define string values for each selection.

7

CMDB_ATTR_DATA_TYPE_ TIME

A UNIX-style date and time stamp (number of seconds since midnight January 1, 1970).

10

CMDB_ATTR_DATA_TYPE_ DECIMAL

A fixed-point decimal attribute. Values must be specified in C locale, for example, 1234.56.

11

CMDB_ATTR_DATA_TYPE_ ATTACH

An attachment attribute.

12

CMDB_ATTR_DATA_TYPE_ CURRENCY

A currency attribute.

13

CMDB_ATTR_DATA_TYPE_DATE

A Julian date number (number of days since January 1, 4713 BC).

14

CMDB_ATTR_DATA_TYPE_TIME_ OF_DAY

The number of seconds since 12:00 a.m. of the current day.

37

CMDB_ATTR_DATA_TYPE_ ATTACH_POOL

A pool for grouping attachments.

Integer limits

The integerLimits structure holds data limit definitions for an attribute of the integer data type. It consists of the following elements:

rangeLow

The lowest integer value allowed for the attribute.

rangeHigh

The highest integer value allowed for the attribute.

Character limits

The charLimits structure holds data limit definitions for an attribute of the character data type. It consists of the following elements:

maxLength

The maximum character length allowed for the attribute.

format

Used for character list data, specified as L n, where n is the number of items in the list. L4, for example, indicates a list of a maximum of 4 items, with each item separated by a semicolon ((wink) . NULL indicates that a list is not used.

Real limits

The realLimits structure holds data limit definitions for an attribute of the real data type. It consists of the following elements:

rangeLow

The lowest real value allowed for the attribute.

rangeHigh

The highest real value allowed for the attribute.

precision

The number of integers allowed to the right of the decimal point for an attribute of the real data type.

Decimal limits

The decimalLimits structure holds data limit definitions for an attribute of the decimal data type. It consists of the following elements:

rangeLow

The lowest decimal value allowed for the attribute.

rangeHigh

The highest decimal value allowed for the attribute.

precision

The number of integers allowed to the right of the decimal point for an attribute of the decimal data type.

Date limits

The dateLimits structure holds data limit definitions for an attribute of the date data type. It consists of the following elements:

minDate

The earliest date value allowed for the attribute.

maxDate

The latest date value allowed for the attribute.

Enum limits

The enumLimits structure holds data limit definitions for an attribute of the enum data type. It consists of the following element:

regularList

A name list of possible selection values for an attribute of the enum data type.

Currency limits

The currencyLimits structure holds data limit definitions for an attribute of the currency data type. It consists of the following elements:

rangeLow

The lowest currency value allowed for the attribute.

rangeHigh

The highest currency value allowed for the attribute.

precision

The number of integers allowed to the right of the decimal point for an attribute of the currency data type.

functionalCurrencies

Default list of functional currencies when new currency attributes are created.

allowableCurrencies

Default list of allowable currencies when new currency attributes are created.

Attachment limits

The attachLimits structure holds data limit definitions for an attribute of the attachment data type. It consists of the following elements:

maxSize

The maximum size in bytes allowed for the attachment attribute.

attachmentPoolName

The name of the attachment pool attribute with which this attachment attribute is associated.

Was this page helpful? Yes No Submitting... Thank you

Comments