JUCE-7.0.12-0-g4f43011b96 JUCE-7.0.12-0-g4f43011b96
JUCE — C++ application framework with suport for VST, VST3, LV2 audio plug-ins

« « « Anklang Documentation
Loading...
Searching...
No Matches
istringresult.h
Go to the documentation of this file.
1 //-----------------------------------------------------------------------------
2// Project : SDK Core
3//
4// Category : SDK Core Interfaces
5// Filename : pluginterfaces/base/istringresult.h
6// Created by : Steinberg, 01/2005
7// Description : Strings Interface
8//
9//-----------------------------------------------------------------------------
10// This file is part of a Steinberg SDK. It is subject to the license terms
11// in the LICENSE file found in the top-level directory of this distribution
12// and at www.steinberg.net/sdklicenses.
13// No part of the SDK, including this file, may be copied, modified, propagated,
14// or distributed except according to the terms contained in the LICENSE file.
15//-----------------------------------------------------------------------------
16
17#pragma once
18
20
21namespace Steinberg {
22
23//------------------------------------------------------------------------
31class IStringResult : public FUnknown
32{
33public:
34//------------------------------------------------------------------------
35 virtual void PLUGIN_API setText (const char8* text) = 0;
36
37//------------------------------------------------------------------------
38 static const FUID iid;
39};
40
41DECLARE_CLASS_IID (IStringResult, 0x550798BC, 0x872049DB, 0x84920A15, 0x3B50B7A8)
42
43
44//------------------------------------------------------------------------
49class IString : public FUnknown
50{
51public:
52//------------------------------------------------------------------------
54 virtual void PLUGIN_API setText8 (const char8* text) = 0;
56 virtual void PLUGIN_API setText16 (const char16* text) = 0;
57
61 virtual const char8* PLUGIN_API getText8 () = 0;
63 virtual const char16* PLUGIN_API getText16 () = 0;
64
68 virtual void PLUGIN_API take (void* s, bool isWide) = 0;
69
71 virtual bool PLUGIN_API isWideString () const = 0;
72
73//------------------------------------------------------------------------
74 static const FUID iid;
75};
76
77DECLARE_CLASS_IID (IString, 0xF99DB7A3, 0x0FC14821, 0x800B0CF9, 0x8E348EDF)
78
79//------------------------------------------------------------------------
80} // namespace Steinberg
Handling 16 Byte Globally Unique Identifiers.
Definition funknown.h:241
The basic interface of all interfaces.
Definition funknown.h:375
Interface to return an ascii string of variable size.
Interface to a string of variable size and encoding.
virtual bool PLUGIN_API isWideString() const =0
Returns true if the string is in unicode format, returns false if the string is ASCII.
virtual const char8 *PLUGIN_API getText8()=0
Return ASCII string.
virtual const char16 *PLUGIN_API getText16()=0
Return unicode string.
virtual void PLUGIN_API setText16(const char16 *text)=0
Assign unicode string.
virtual void PLUGIN_API setText8(const char8 *text)=0
Assign ASCII string.
virtual void PLUGIN_API take(void *s, bool isWide)=0
!Do not use this method! Early implementations take the given pointer as internal string and this wil...