summaryrefslogtreecommitdiff
path: root/public/toolutils/AttributeElementChoiceList.h
blob: 0e1bbf1e9887030641b230ec5c8d7a24ea1c6bc0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
//========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose: 
//
// $NoKeywords: $
//=============================================================================

#ifndef ATTRIBUTEELEMENTCHOICELIST_H
#define ATTRIBUTEELEMENTCHOICELIST_H

#ifdef _WIN32
#pragma once
#endif

#include "dme_controls/inotifyui.h"
#include "datamodel/dmehandle.h"


//-----------------------------------------------------------------------------
// Forward declarations
//-----------------------------------------------------------------------------
class CDmElement;


//-----------------------------------------------------------------------------
// returns the choice string that AddElementsRecursively would have returned
//-----------------------------------------------------------------------------
const char *GetChoiceString( CDmElement *pElement );

//-----------------------------------------------------------------------------
// Recursively adds all elements of the specified type under pElement into the choice list
//-----------------------------------------------------------------------------
void AddElementsRecursively( CDmElement *pElement, ElementChoiceList_t &list, const char *pElementType = NULL );


//-----------------------------------------------------------------------------
// Recursively adds all elements of the specified type under pElement into the vector
//-----------------------------------------------------------------------------
void AddElementsRecursively( CDmElement *pElement, DmeHandleVec_t &list, const char *pElementType = NULL );


#endif // ATTRIBUTEELEMENTCHOICELIST_H