Skip to content

pals-project/pals-cpp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Introduction

pals-cpp is a C++ package for reading, writing, and manipulating Particle Accelerator Lattice Standard (PALS) files. Note: This package is used by pals-julia which is a Julia wrapper for pals-cpp.

Install yaml-cpp

yaml_reader.cpp is for manipulaing YAML direcly in C++. yaml_c_wrapper.cpp wraps YAML::Node into C objects so they can be part of a shared object library to interface with other languages

First install yaml-cpp by running

macOS:

brew install yaml-cpp         # When using HomeBrew
sudo port install yaml-cpp    # When using MacPorts  

Linux:

sudo apt-get install libyaml-cpp-dev

Windows:

choco install yaml-cpp

Manual Install:

git clone https://github.com/jbeder/yaml-cpp.git  
cd yaml-cpp/src  
mkdir build && cd build  
cmake ..  
cmake --build .  
cmake --install .  

Build

Next, in pals-cpp, run

mkdir build && cd build  
cmake .. -DYAML_BUILD_SHARED_LIBS=ON  
make

Examples

... More stuff needed here...

About

C++ Interface for PALS lattice files

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •