This class contains methods to connect and transmit a user's data structure representation to the Bridges server.
If the FORCE_BRIDGES_APIKEY environment variable is set, use the environment variable as APIkey in all cases.
If the FORCE_BRIDGES_USERNAME environment variable is set, use the environment variable as username in all cases.
If the FORCE_BRIDGES_ASSIGNMENT environment variable is set, use the environment variable as assignment number in all cases.
- Author
- Kalpathi Subramanian, Dakota Carmer, Erik Saule
- Date
- 7/26/15, 6/5/17, 10/30/18, 7/12/19
|
| | Bridges () |
| |
| | Bridges (const string &name, const string &key) |
| | constructor to bridges More...
|
| |
| | Bridges (unsigned int num, const string &name, const string &key) |
| | constructor to bridges More...
|
| |
| bool | getVisualizeJSONFlag () const |
| |
| void | postVisualizationLink (bool link_url) |
| |
| void | setVisualizeJSONFlag (bool flag) |
| |
| const string & | getUserName () const |
| |
| void | setUserName (string name) |
| | Set user name. More...
|
| |
| const string & | getApiKey () const |
| |
| void | setApiKey (string key) |
| | Set API key credentials. More...
|
| |
| unsigned int | getAssignment () const |
| |
| void | setAssignment (unsigned int num) |
| |
| const string & | getTitle () const |
| |
| void | setTitle (const string &t) |
| |
| const string & | getDescription () const |
| |
| void | setDescription (const string &descr) |
| |
| void | setDataStructure (DataStructure *ds) |
| |
| void | setDataStructure (DataStructure &ds) |
| |
| DataStructure * | getDataStructure () |
| |
| void | initialize (unsigned int num, const string &username, const string &apikey) |
| | Sets Bridges assignment and credential information. More...
|
| |
| void | setServer (const string &server_type) |
| |
| void | setMapOverlay (bool overlay_flag) |
| | Turns on map overlay for subsequent visualizations - used with location specific datasets. More...
|
| |
| void | setCoordSystemType (string coord) |
| |
| const string & | getCoordSystemType () |
| |
| void | setWindow (int xmin, int xmax, int ymin, int ymax) |
| |
| void | setWindow (double xmin, double xmax, double ymin, double ymax) |
| | sets the world coordinate window defining the space of the user defined objects (or nodes) More...
|
| |
| void | visualize () |
| |
| bridges::Bridges::Bridges |
( |
unsigned int |
num, |
|
|
const string & |
name, |
|
|
const string & |
key |
|
) |
| |
|
inline |
constructor to bridges
If the FORCE_BRIDGES_APIKEY environment variable is set, use the environment variable as APIkey in all cases.
If the FORCE_BRIDGES_USERNAME environment variable is set, use the environment variable as username in all cases.
If the FORCE_BRIDGES_ASSIGNMENT environment variable is set, use the environment variable as assignment number in all cases.
- Parameters
-
| num | assignment ID |
| name | Bridges username |
| key | Bridges APIKey of the name account. (Note that it is not the password, but the API Key one can find in the user profile.) |
| void bridges::Bridges::initialize |
( |
unsigned int |
num, |
|
|
const string & |
username, |
|
|
const string & |
apikey |
|
) |
| |
|
inline |
Sets Bridges assignment and credential information.
If the FORCE_BRIDGES_APIKEY environment variable is set, use the environment variable as APIkey in all cases.
If the FORCE_BRIDGES_USERNAME environment variable is set, use the environment variable as username in all cases.
If the FORCE_BRIDGES_ASSIGNMENT environment variable is set, use the environment variable as assignment number in all cases.
- Parameters
-
| num | The assignment number |
| apikey | The API key on the BRIDGES server (this is not your password, find the API Key on the profile page) |
| username | The username on the BRIDGES server |