(file) Return to root-cimv2-classes.mof CVS log (file) (dir) Up to [Pegasus] / pegasus_unsupported / wsm / mof

File: [Pegasus] / pegasus_unsupported / wsm / mof / root-cimv2-classes.mof (download)
Revision: 1.1, Wed May 30 19:05:56 2007 UTC (17 years ago) by karl
Branch: MAIN
CVS Tags: HEAD
PEP#: 9999
TITLE: ADD wsm

DESCRIPTION: add wsm

//==============================================================================
//
// class President
//
//==============================================================================

[Description("This class is used for illustrative purposes and should "
    "not be taken too seriously")]
class President
{
    [Key] uint32 num;

    [MinLen(1), MaxLen(32)]
    string first;

    [MinLen(1), MaxLen(32)]
    string last;
    Uint32 age = 40;
};

//==============================================================================
//
// class ModernPresident
//
//==============================================================================

class ModernPresident : President
{
    uint32 aviation_budget;
};

//==============================================================================
//
// class TwentyFirstCenturyPresident
//
//==============================================================================

class TwentyFirstCenturyPresident : ModernPresident
{
};

//==============================================================================
//
// class PresidentLink
//
//==============================================================================

[Association]
class PresidentLink
{
    [Key] President ref pred;
    [Key] President ref succ;
};

//==============================================================================
//
// class WSMClass
//
//==============================================================================

class WSMClass
{
    [Key] uint32 key1;
    [Key] string key2;
    string a1[];
    uint32 a2[];
    boolean a3[];
};

//==============================================================================
//
// class WSMMethod
//
//==============================================================================

class WSMMethod
{
    [Key] uint32 key;

    uint32 meth(
        uint32 p1,
        boolean p2,
        string p3,
        [in(false), out] uint32 p1Out,
        [in(false), out] boolean p2Out,
        [in(false), out] string p3Out);

    string meth2(
        WSMClass ref p1,
        [in(false), out] WSMClass ref p1Out);
};



//==============================================================================
//
// Class SuccessionLink - Test Cross Namespace Associations
//
//==============================================================================
// link from President to vicePresident
// This class required in both namespaces

[Association]
class SuccessionLink
{
    [Key] President ref pred ;
    [Key] VicePresident ref succ;
};

/* Instance graph:

    +------------------+
    | President.num=1  |
    +------------------+
             ^
             | pred
             |
    ********************
    *   Association    *
    ********************
             |
             | succ
             v
    +------------------+
    | President.num=2  |
    +------------------+
             ^
             | pred
             |
    ********************
    *   Association    *
    ********************
             |
             | succ
             v
    +------------------+
    | President.num=3  |
    +------------------+
*/

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2