Reading from SmartDashboard

Does anyone have some sample code for C++ that demonstrates how to read values from the SmartDashboard or NetworkTable classes? I have some heavy duty calculations that I would rather have done on the classmate than on the cRIO. Thank you for your help in advance.