Aurelon Open API 8.1.1
Loading...
Searching...
No Matches
AOI_Instance.cpp
1#include "./AOI_Instance.h"
2#include "../GInstance.h"
3#include <ACPL/FileSpec.h>
4
5using namespace aur;
6using namespace aur::PDF;
7using namespace aur::ACPL;
8
25{
26 mOwnsInstance = true;
27 mInstance = new PDF::Instance();
28}
29
36AOI_Instance::AOI_Instance( aur::PDF::Instance* instance )
37{
38 mOwnsInstance = false;
39 mInstance = instance;
40}
41
42AOI_Instance::~AOI_Instance()
43{
44 if( mOwnsInstance )
45 delete mInstance;
46}
47
58AOI_Instance* AOI_Instance::Startup( const char* instanceName, const char* licenseKey, const char* appSignature )
59{
60 Instance::Startup( instanceName, appSignature, licenseKey );
61 FileSpec::TempFileUID( appSignature == NULL ? "AOI_" : appSignature );
62 return new AOI_Instance( Instance::sDefault );
63}
64
69{
70 Instance::Terminate();
71}
72
85{
86 // Major | Minor | Fix | Build
87 return ( 8 << 24 ) | ( 1 << 16 ) | ( 11852 << 0 );
88}
89
97void AOI_Instance::SetProgressCallBack( ProgressionCB progressionCallback, void* ref )
98{
99 mInstance->SetProgressCallBack( progressionCallback, ref );
100}
101
109void AOI_Instance::SetErrorCallBack( ErrorCB errorCallback, void* ref )
110{
111 mInstance->SetErrorCallBack( errorCallback, ref );
112}
113
123{
124 return mInstance->Flags( PDF::Instance::IGOR );
125}
126
136{
137 mInstance->SetFlags( PDF::Instance::IGOR, on );
138}
139
146void AOI_Instance::ResourceDirectory( const aur::ACPL::FileSpec& path )
147{
148 mInstance->ResourceDirectory( path );
149}
150
157void AOI_Instance::ResourceDirectory( const char16_t* path )
158{
159 mInstance->ResourceDirectory( FileSpec( path ) );
160}
161
169{
170 return mInstance->ResourceDirectory();
171}
172
181::ExceptionCode AOI_Instance::GetDataDirectory( FileSpec& outDirectory )
182{
183 return outDirectory.MakeDataDirectory();
184}
185
192::ExceptionCode AOI_Instance::GetApplicationDirectory( FileSpec& outDirectory )
193{
194 outDirectory = FileSpec::ApplicationDirectory();
195 return NoError;
196}
197
202{
203 return mInstance->GreekSize();
204}
205
209void AOI_Instance::SetGreekSize( float greekSize )
210{
211 mInstance->SetGreekSize( greekSize );
212}
213
219void AOI_Instance::SetFontAntiAliasing( bool useFontAntiAliasing )
220{
221 mInstance->SetFlags( PDF::Instance::FontAntiAliasing, useFontAntiAliasing );
222}
223
228{
229 return mInstance->Flags( PDF::Instance::FontAntiAliasing );
230}
Instance of the AOI engine.
void SetProgressCallBack(ProgressionCB, void *)
void SetErrorCallBack(ErrorCB, void *)
static void Terminate()
ExceptionCode GetDataDirectory(aur::ACPL::FileSpec &outDirectory)
ExceptionCode GetApplicationDirectory(aur::ACPL::FileSpec &outDirectory)
static int Version()
static AOI_Instance * Startup(const char *uniqueID, const char *licenseKey, const char *appSignature=NULL)
void SetIGOR(bool)
void SetFontAntiAliasing(bool useFontAntiAliasing)
bool UseFontAntiAliasing() const
void SetGreekSize(float greekSize)
float GreekSize() const
const aur::ACPL::FileSpec ResourceDirectory()
bool UseIGOR() const