KiCad PCB EDA Suite
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages Concepts
sch_field.h File Reference
#include <eda_text.h>
#include <sch_item.h>
#include <template_fieldnames.h>
#include <general.h>
#include <string_utils.h>
#include "scintilla_tricks.h"

Go to the source code of this file.

Classes

class  SCH_FIELD
 

Functions

int NextFieldOrdinal (const std::vector< SCH_FIELD > &aFields)
 
const SCH_FIELDFindField (const std::vector< SCH_FIELD > &aFields, FIELD_T aFieldId)
 
SCH_FIELDFindField (std::vector< SCH_FIELD > &aFields, FIELD_T aFieldId)
 
const SCH_FIELDFindField (const std::vector< SCH_FIELD > &aFields, const wxString &aFieldName)
 
SCH_FIELDFindField (std::vector< SCH_FIELD > &aFields, const wxString &aFieldName)
 
wxString GetFieldValue (const std::vector< SCH_FIELD > *aFields, FIELD_T aFieldType)
 
std::string GetFieldValue (const std::vector< SCH_FIELD > *aFields, const wxString &aFieldName, bool aResolve=false)
 
void SetFieldValue (std::vector< SCH_FIELD > &aFields, const wxString &aFieldName, const std::string &aValue, bool aIsVisible=true)
 

Function Documentation

◆ FindField() [1/4]

const SCH_FIELD * FindField ( const std::vector< SCH_FIELD > &  aFields,
const wxString &  aFieldName 
)
inline

Definition at line 386 of file sch_field.h.

◆ FindField() [2/4]

◆ FindField() [3/4]

SCH_FIELD * FindField ( std::vector< SCH_FIELD > &  aFields,
const wxString &  aFieldName 
)
inline

Definition at line 399 of file sch_field.h.

References FindField().

◆ FindField() [4/4]

SCH_FIELD * FindField ( std::vector< SCH_FIELD > &  aFields,
FIELD_T  aFieldId 
)
inline

Definition at line 379 of file sch_field.h.

References FindField().

◆ GetFieldValue() [1/2]

std::string GetFieldValue ( const std::vector< SCH_FIELD > *  aFields,
const wxString &  aFieldName,
bool  aResolve = false 
)
inline

Definition at line 418 of file sch_field.h.

References FindField().

◆ GetFieldValue() [2/2]

◆ NextFieldOrdinal()

int NextFieldOrdinal ( const std::vector< SCH_FIELD > &  aFields)
inline

◆ SetFieldValue()

void SetFieldValue ( std::vector< SCH_FIELD > &  aFields,
const wxString &  aFieldName,
const std::string &  aValue,
bool  aIsVisible = true 
)
inline