CFx SDK Documentation 2026 SP0
Loading...
Searching...
No Matches
FxSettings.h
Go to the documentation of this file.
1//
2// (C) Copyright 2005-2025 by Graebert GmbH.
3//
4// Permission to use, copy, modify, and distribute this software in
5// object code form for any purpose and without fee is hereby granted,
6// provided that the above copyright notice appears in all copies and
7// that both that copyright notice and the limited warranty and
8// restricted rights notice below appear in all supporting
9// documentation.
10//
11// GRAEBERT PROVIDES THIS PROGRAM "AS IS" AND WITH ALL FAULTS.
12// GRAEBERT SPECIFICALLY DISCLAIMS ANY IMPLIED WARRANTY OF
13// MERCHANTABILITY OR FITNESS FOR A PARTICULAR USE. GRAEBERT GMBH
14// DOES NOT WARRANT THAT THE OPERATION OF THE PROGRAM WILL BE
15// UNINTERRUPTED OR ERROR FREE.
16
17#pragma once
18
19#include "DDKERNEL.h"
20#include "FxString.h"
21
22#include <OdString.h>
23#include <ResBuf.h>
24
25#include "FxPragmaPush.h"
26
27class QByteArray;
28
35{
36public:
37 /* {secret} */
38 virtual ~CFxSettings() {};
39
43 virtual bool HasGroup( const CFxString& group ) = 0;
44
47 virtual bool HasKey( const CFxString& group, const CFxString& key ) = 0;
48
52 virtual CFxStringArray GetGroups( const CFxString& group ) = 0;
53
57 virtual CFxStringArray GetKeys( const CFxString& group ) = 0;
58
71
75 virtual ValueType GetType( const CFxString& group, const CFxString& key ) = 0;
76
81 virtual OdResBufPtr Read( const CFxString& group, const CFxString& key, ValueType defaultType ) = 0;
82
87 virtual void Write( const CFxString& group, const CFxString& key, OdResBufPtr value ) = 0;
88
92 virtual void RemoveKey( const CFxString& group, const CFxString& key ) = 0;
93
97 virtual void RemoveGroup( const CFxString& group ) = 0;
98};
99
100#include "FxPragmaPop.h"
#define DDKERNEL_API
Definition DDKERNEL.h:32
OdSmartPtr< OdResBuf > OdResBufPtr
Definition DbDatabase.h:105
std::vector< CFxString > CFxStringArray
Definition FxString.h:37
virtual bool HasGroup(const CFxString &group)=0
virtual CFxStringArray GetKeys(const CFxString &group)=0
virtual void RemoveGroup(const CFxString &group)=0
virtual bool HasKey(const CFxString &group, const CFxString &key)=0
virtual CFxStringArray GetGroups(const CFxString &group)=0
virtual ~CFxSettings()
Definition FxSettings.h:38
virtual ValueType GetType(const CFxString &group, const CFxString &key)=0
virtual void RemoveKey(const CFxString &group, const CFxString &key)=0
virtual void Write(const CFxString &group, const CFxString &key, OdResBufPtr value)=0
virtual OdResBufPtr Read(const CFxString &group, const CFxString &key, ValueType defaultType)=0
GLsizei const GLfloat * value
Definition gles2_ext.h:302