This commit is contained in:
2024-08-07 09:12:07 -04:00
parent ca445435a0
commit fdfadd5c7e
1021 changed files with 73601 additions and 0 deletions

69
com/bound.hpp Normal file
View File

@@ -0,0 +1,69 @@
#ifndef _COM_ARRAYBOUND_HPP_
#define _COM_ARRAYBOUND_HPP_
#ifndef _COM_OLEAUTO_HPP_
#include <com/oleauto.hpp>
#endif
class ArrayBound : public SAFEARRAYBOUND
{
public:
ArrayBound(void);
ArrayBound(unsigned long elements,long lowerBound=0);
~ArrayBound(); // must not be virtual
unsigned long elements(void)const;
void elements(unsigned long elements);
long lowerBound(void)const;
void lowerBound(long lowerBounb);
SAFEARRAYBOUND &getSAFEARRAYBOUND(void);
private:
};
inline
ArrayBound::ArrayBound(void)
{
SAFEARRAYBOUND::cElements=0;
SAFEARRAYBOUND::lLbound=0;
}
inline
ArrayBound::ArrayBound(unsigned long elements,long lowerBound)
{
SAFEARRAYBOUND::cElements=elements;
SAFEARRAYBOUND::lLbound=lowerBound;
}
inline
ArrayBound::~ArrayBound()
{
}
inline
unsigned long ArrayBound::elements(void)const
{
return SAFEARRAYBOUND::cElements;
}
inline
void ArrayBound::elements(unsigned long elements)
{
SAFEARRAYBOUND::cElements=elements;
}
inline
long ArrayBound::lowerBound(void)const
{
return SAFEARRAYBOUND::lLbound;
}
inline
void ArrayBound::lowerBound(long lowerBound)
{
SAFEARRAYBOUND::lLbound=lowerBound;
}
inline
SAFEARRAYBOUND &ArrayBound::getSAFEARRAYBOUND(void)
{
return *this;
}
#endif