/***********************************************************************************************
RclsoftwareDendrosV2Auto.idl
www.rclsoftware.org.uk Dendros v2 Automation Interfaces
(c)2007 R.C.Lafferty
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in the
Software without restriction, including without limitation the rights to use, copy,
modify, merge, publish, distribute, sublicense, and/or sell copies of the Software,
and to permit persons to whom the Software is furnished to do so, subject to the
following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY
KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS
OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
***********************************************************************************************/
import "objidl.idl";
/***********************************************************************************************
Dendros0200LineType
***********************************************************************************************/
typedef [v1_enum] enum
{
dendros0200LineTypeNone = 0x00, /* Reserved */
dendros0200LineTypeByte = 0x01, /* 8bit unsigned integer */
dendros0200LineTypeInt16 = 0x02, /* 16bit signed integer, little endian 2s complement */
dendros0200LineTypeInt32 = 0x03, /* 32bit signed integer, little endian 2s complement */
dendros0200LineTypeFloat32 = 0x04, /* 32bit floating point number, little endian IEEE-754 */
dendros0200LineTypeFloat64 = 0x05, /* 64bit floating point number, little endian IEEE-754 */
dendros0200LineTypeChar = 0x06, /* UTF-16LE encoded character (must not be zero) */
dendros0200LineTypeOther = 0xFF, /* An unknown/unsupported Dendros type */
dendros0200LineTypeForce32Bit = 0x7FFFffff
}
Dendros0200LineType;
/***********************************************************************************************
Dendros0200EntryLevel
***********************************************************************************************/
typedef [v1_enum] enum
{
dendros0200EntryLevelNone = 0x00, /* The entry does not exist */
dendros0200EntryLevelTwig = 0x01, /* The entry does not have content */
dendros0200EntryLevelLeaf = 0x02, /* The entry contains data */
dendros0200EntryLevelBranch = 0x03, /* The entry contains descendants */
dendros0200EntryLevelForce32Bit = 0x7FFFffff
}
Dendros0200EntryLevel;
/***********************************************************************************************
IDendros0200Entry1
***********************************************************************************************/
[
object,
uuid(1FF3F848-5E07-4432-B921-1B680E531AB5),
helpstring("Represents a Dendros Document Entry."),
dual, oleautomation
]
interface IDendros0200Entry1 : IDispatch
{
[helpstring("Reads an 8-bit unsigned byte from an Entry.")]
HRESULT ReadByte
(
[in] int inLine,
[in] int inColumn,
[out,retval] unsigned char* outItem
);
[helpstring("Writes an 8-bit unsigned byte into an Entry.")]
HRESULT WriteByte
(
[in] int inLine,
[in] int inColumn,
[in] unsigned char inItem
);
[helpstring("Reads a 16-bit signed integer from an Entry.")]
HRESULT ReadInt16
(
[in] int inLine,
[in] int inColumn,
[out,retval] short* outItem
);
[helpstring("Writes a 16-bit signed integer into an Entry.")]
HRESULT WriteInt16
(
[in] int inLine,
[in] int inColumn,
[in] short inItem
);
[helpstring("Reads a 32-bit signed integer from an Entry.")]
HRESULT ReadInt32
(
[in] int inLine,
[in] int inColumn,
[out,retval] long* outItem
);
[helpstring("Writes a 32-bit signed integer into an Entry.")]
HRESULT WriteInt32
(
[in] int inLine,
[in] int inColumn,
[in] long inItem
);
[helpstring("Reads a 32-bit IEEE floating-point number from an Entry.")]
HRESULT ReadFloat32
(
[in] int inLine,
[in] int inColumn,
[out,retval] float* outItem
);
[helpstring("Writes a 32-bit IEEE floating-point number into an Entry.")]
HRESULT WriteFloat32
(
[in] int inLine,
[in] int inColumn,
[in] float inItem
);
[helpstring("Reads a 64-bit IEEE floating-point number from an Entry.")]
HRESULT ReadFloat64
(
[in] int inLine,
[in] int inColumn,
[out,retval] double* outItem
);
[helpstring("Writes a 64-bit IEEE floating-point number into an Entry.")]
HRESULT WriteFloat64
(
[in] int inLine,
[in] int inColumn,
[in] double inItem
);
[helpstring("Reads a unicode text string from an Entry.")]
HRESULT ReadString
(
[in] int inLine,
[out,retval] BSTR* outItem
);
[helpstring("Writes a unicode text string into an Entry.")]
HRESULT WriteString
(
[in] int inLine,
[in] BSTR inItem
);
[propget, helpstring("The line count in this Entry.")]
HRESULT LineCount
(
[out,retval] int* theLineCount
);
[propput, helpstring("The line count in this Entry.")]
HRESULT LineCount
(
[in] int theLineCount
);
[propget, helpstring("The type of the given line in this Entry.")]
HRESULT LineType
(
[in] int inLine,
[out,retval] Dendros0200LineType* theLineType
);
[propput, helpstring("The type of the given line in this Entry.")]
HRESULT LineType
(
[in] int inLine,
[in] Dendros0200LineType theLineType
);
[propget, helpstring("The column count of the given line in this Entry.")]
HRESULT ColumnCount
(
[in] int inLine,
[out,retval] int* theColumnCount
);
[propput, helpstring("The column count of the given line in this Entry.")]
HRESULT ColumnCount
(
[in] int inLine,
[in] int theColumnCount
);
[propget, helpstring("The level of this Entry.")]
HRESULT Level
(
[out,retval] Dendros0200EntryLevel* theLevel
);
[propget, helpstring("The unique path of this Entry.")]
HRESULT Path
(
[out,retval] BSTR* thePath
);
}
/***********************************************************************************************
IDendros0200Document1
***********************************************************************************************/
[
object,
uuid(254EB1C7-C2E5-43f2-960B-A28293BEFBC4),
helpstring("Represents a Dendros Document."),
dual, oleautomation
]
interface IDendros0200Document1 : IDispatch
{
[helpstring("Finds an Entry in this Document.")]
HRESULT FindEntry
(
[in] BSTR inUniquePath,
[out,retval] IDendros0200Entry1** outEntry
);
[helpstring("Makes an Entry in this Document.")]
HRESULT MakeEntry
(
[in] BSTR inUniquePath,
[out,retval] IDendros0200Entry1** outEntry
);
[helpstring("Removes an Entry from this Document.")]
HRESULT RemoveEntry
(
[in] IDendros0200Entry1* inEntry
);
[helpstring("Loads a Document from a file.")]
HRESULT LoadDocument
(
[in] BSTR inFilename
);
[helpstring("Saves a Document to a file.")]
HRESULT SaveDocument
(
[in] BSTR inFilename
);
}
/***********************************************************************************************
RclsoftwareDendrosV2AutoVersion
***********************************************************************************************/
typedef [v1_enum] enum
{
dendrosV2AutoVersionMaj = 1,
dendrosV2AutoVersionMin = 0,
}
RclsoftwareDendrosV2AutoVersion;
/***********************************************************************************************
RclsoftwareOrgUk DendrosV2 Automation
***********************************************************************************************/
[
uuid(04A0FAAD-6AF7-483f-9EC0-EE6AD36DF756),
helpstring("www.rclsoftware.org.uk Dendros v2 Automation"),
version(1.0)
]
library RclsoftwareOrgUkDendrosV2Auto
{
importlib("STDOLE2.TLB");
RclsoftwareDendrosV2AutoVersion;
[
uuid(AFAFCC27-259B-482a-AB2C-42EB3DC82488)
]
coclass Dendros0200Entry1
{
interface IDendros0200Entry1;
}
[
uuid(BB0CDD8B-9B02-4fce-9AC1-68ED038F1167)
]
coclass Dendros0200Document1
{
interface IDendros0200Document1;
}
}