Audacity 3.2.0
Public Member Functions | Public Attributes | List of all members
anonymous_namespace{Registry.cpp}::ItemOrdering Struct Reference

Public Member Functions

 ItemOrdering (const Path &path)
 
auto Get () -> wxArrayString &
 

Public Attributes

wxString key
 
bool gotOrdering = false
 
wxString strValue
 
wxArrayString ordering
 

Detailed Description

Definition at line 212 of file Registry.cpp.

Constructor & Destructor Documentation

◆ ItemOrdering()

anonymous_namespace{Registry.cpp}::ItemOrdering::ItemOrdering ( const Path path)
inline

Definition at line 215 of file Registry.cpp.

216 {
217 // The set of path names determines only an unordered tree.
218 // We want an ordering of the tree that is stable across runs.
219 // The last used ordering for this node can be found in preferences at this
220 // key:
221 wxArrayString strings;
222 for (const auto &id : path)
223 strings.push_back( id.GET() );
224 key = '/' + ::wxJoin( strings, '/', '\0' );
225 }

References key.

Member Function Documentation

◆ Get()

auto anonymous_namespace{Registry.cpp}::ItemOrdering::Get ( ) -> wxArrayString &
inline

Definition at line 232 of file Registry.cpp.

232 {
233 if ( !gotOrdering ) {
235 ordering = ::wxSplit( strValue, ',' );
236 gotOrdering = true;
237 }
238 return ordering;
239 };
audacity::BasicSettings * gPrefs
Definition: Prefs.cpp:68
virtual bool Read(const wxString &key, bool *value) const =0

References gPrefs, key, and audacity::BasicSettings::Read().

Here is the call graph for this function:

Member Data Documentation

◆ gotOrdering

bool anonymous_namespace{Registry.cpp}::ItemOrdering::gotOrdering = false

Definition at line 228 of file Registry.cpp.

◆ key

wxString anonymous_namespace{Registry.cpp}::ItemOrdering::key

◆ ordering

wxArrayString anonymous_namespace{Registry.cpp}::ItemOrdering::ordering

Definition at line 230 of file Registry.cpp.

◆ strValue

wxString anonymous_namespace{Registry.cpp}::ItemOrdering::strValue

Definition at line 229 of file Registry.cpp.


The documentation for this struct was generated from the following file: