SOL9 2.0 Class: WMPCdromCollection

 SOL9 C++ Class Library  SOL9 Samples  SOL9 Tutorial  SOL9 FAQ  SOL9 ClassTree 

Source code

/*
 * WMPCdromCollection.h 
 * Copyright (c) 2011 Antillia.com TOSHIYUKI ARAI. ALL RIGHTS RESERVED. 
 */



// SOL9
// 2011/12/12

#pragma once

#include <sol/wmp/WMPObject.h>

namespace SOL {

class WMPCdromCollection :public WMPObject
{

private:
    IWMPCdromCollectionPtr collection;

public:
    WMPCdromCollection(IWMPCdromCollectionPtr ptr)
    :collection(ptr)
    {
        if (ptr == NULL) {
            throw NullPointerException("IWMPCdromCollectionPtr is NULL", 0);
        }
    }

public:
    ~WMPCdromCollection()
    {
        collection = NULL;
    }

public:

    long getCount()
    {
        return collection-> Getcount();
    }

    IWMPCdromPtr item(long lIndex)
    {
        return collection->Item(lIndex);
    }
    
    IWMPCdromPtr getByDriveSpecifier(_bstr_t bstrDriveSpecifier)
    {
        return collection->getByDriveSpecifier(bstrDriveSpecifier);
    }

};

}

Last modified: 1 Feb 2012

Copyright (c) 2009-2012 Antillia.com ALL RIGHTS RESERVED.