KiCad PCB EDA Suite
altium_parser.h File Reference
#include <map>
#include <memory>
#include <numeric>
#include <wx/gdicmn.h>
#include <math/vector2d.h>
#include <vector>

Go to the source code of this file.

Classes

class  ALTIUM_COMPOUND_FILE
 
class  ALTIUM_PARSER
 

Namespaces

namespace  CFB
 

Functions

std::string FormatPath (const std::vector< std::string > &aVectorPath)
 Helper for debug logging (vector -> string) More...
 

Function Documentation

◆ FormatPath()

std::string FormatPath ( const std::vector< std::string > &  aVectorPath)

Helper for debug logging (vector -> string)

Parameters
aVectorPathpath
Returns
path formatted as string

Definition at line 38 of file altium_parser.cpp.

39{
40 return std::accumulate( aVectorPath.cbegin(), aVectorPath.cend(), std::string(),
41 []( const std::string& ss, const std::string& s )
42 {
43 return ss.empty() ? s : ss + '\\' + s;
44 } );
45}

Referenced by ALTIUM_DESIGNER_PLUGIN::FootprintEnumerate(), ALTIUM_PCB::Parse(), ALTIUM_PCB::ParseFootprint(), and ALTIUM_PCB::ParseModelsData().