#include <djv_profiles.h>
List of all members.
Detailed Description
A profile is a virtual file which stores encoding parameters (DjVuEncoder::Params structure). All the profiles are installed in profile repository and maintained by ProfileRepository class.
The following code illustrates how to load a profile:
AutoPtr<ProfileRepository> repo = ProfileRepository::loadRepository();
AutoPtr<Profile> profile = repo->loadProfile("Default Profile");
const Params& params = profile->getParams();
...
For more information about profiles, see DjVu Encoder Profiles.
Constructor & Destructor Documentation
| virtual Celartem::DjVu::Profile::~Profile |
( |
|
) |
[inline, virtual] |
Member Function Documentation
Create a new profile.
- Parameters:
-
| inNewProfileName | Name for the newly created profile. |
| inNewDescription | Description for the newly created profile. |
| inParams | Parameters on which a new profile is created.
This can be NULL and then the profile is created using default parameters. |
- Returns:
- Pointer to a newly created Profile instance.
| virtual AutoPtr<Profile> Celartem::DjVu::Profile::duplicate |
( |
const String & |
inNewProfileName |
) |
const [pure virtual] |
Duplicate this profile.
- Parameters:
-
| inNewProfileName | Name for the newly created profile. |
- Returns:
- Pointer to the newly created profile.
| virtual String Celartem::DjVu::Profile::exportToXml |
( |
|
) |
const [pure virtual] |
Export the current parameters of this instance.
- Parameters:
-
| inXmlFileName | Output XML file name. Please note that this method outputs the status of this "instance" not the profile on the repository. |
- See also:
- importFromXmlFile, exportToXmlFile, importFromXml
| virtual void Celartem::DjVu::Profile::exportToXmlFile |
( |
const String & |
inXmlFileName |
) |
const [pure virtual] |
Export the current parameters of this instance.
- Parameters:
-
| inXmlFileName | Output XML file name. Please note that this method outputs the status of this "instance" not the profile on the repository. |
- See also:
- exportToXml, importFromXmlFile, importFromXml
| virtual String Celartem::DjVu::Profile::getDescription |
( |
|
) |
const [pure virtual] |
Get profile description.
- Returns:
- The profile description.
Load parameters from the profile.
- Returns:
- Read only Param structure instance.
| virtual String Celartem::DjVu::Profile::getProfileName |
( |
|
) |
const [pure virtual] |
| static AutoPtr<Profile> Celartem::DjVu::Profile::importFromXml |
( |
const String & |
inXmlText |
) |
[static] |
| static AutoPtr<Profile> Celartem::DjVu::Profile::importFromXmlFile |
( |
const String & |
inXmlFileName |
) |
[static] |
Import parameters from XML file.
- Parameters:
-
| inXmlFileName | Input repository XML file name.
The file name optionally contains profile name within the XML file in the following syntax: XML_FILENAME:PROFILE_FILENAME |
- Returns:
- Pointer to a newly created Profile instance.
- See also:
- exportToXml, exportToXmlFile, importFromXml
| virtual bool Celartem::DjVu::Profile::isInstalled |
( |
|
) |
const [pure virtual] |
Determine whether this profile is installed on the system or not.
- Returns:
true if this profile is installed; otherwise false.
| virtual bool Celartem::DjVu::Profile::isModified |
( |
|
) |
const [pure virtual] |
Determine whether this instance is modified from the loaded configuration or not.
- Returns:
true if this profile is modified; otherwise false.
| virtual bool Celartem::DjVu::Profile::isReadOnly |
( |
|
) |
const [pure virtual] |
Determine whether this profile is read-only or not.
- Returns:
true if this profile is read-only; otherwise false.
| virtual void Celartem::DjVu::Profile::setDescription |
( |
const String & |
inDescription |
) |
[pure virtual] |
Set profile description.
- Parameters:
-
| inDescription | Description for this profile. |
| virtual void Celartem::DjVu::Profile::setParams |
( |
const DjVuEncoder::Params & |
inParams |
) |
[pure virtual] |
Set parameters to the profile.
If the profile is read-only, this method throws an exception.
- Parameters:
-
| inParams | Parameters to set. |
| virtual void Celartem::DjVu::Profile::setReadOnly |
( |
bool |
inReadOnly |
) |
[pure virtual] |
Set read-only flag.
- Parameters:
-
| inReadOnly | Set whether the profile is read-only (true) or not (false). |
The documentation for this class was generated from the following file: