A collada dom example from where I got the code. More...
#include <cstdarg>
#include <iostream>
#include <iomanip>
#include <string>
#include <sstream>
#include <memory>
#include <map>
#include <vector>
#include <set>
#include <dae.h>
#include <dom/domConstants.h>
#include <dom/domCOLLADA.h>
#include <dom/domProfile_common.h>
#include <dae/daeSIDResolver.h>
#include <dom/domInstance_controller.h>
#include <dae/domAny.h>
#include <dae/daeErrorHandler.h>
#include <dae/daeUtils.h>
#include <dom/domImage.h>
#include <modules/stdErrPlugin.h>
#include <dom/domEllipsoid.h>
#include <dom/domInput_global.h>
#include <dom/domAsset.h>
#include <dom/domLimits_sub.h>
#include "domTest.h"
Go to the source code of this file.
Classes | |
struct | tmpDir |
Macros | |
#define | CheckResultWithMsg(val, msg) |
#define | CompareDocs(dae, file1, file2) |
#define | RunTest(testName) |
Functions | |
bool | checkTests (const set< string > &tests) |
string | chopWS (const string &s) |
fs::path & | dataPath () |
DefineTest (chopWS) | |
DefineTest (utils) | |
DefineTest (elementAddFunctions) | |
DefineTest (loadClipPlane) | |
DefineTest (renderStates) | |
DefineTest (compareElements) | |
DefineTest (writeCamera) | |
DefineTest (roundTripSeymour) | |
DefineTest (rawSupport) | |
DefineTest (extraTypeTest) | |
DefineTest (sidResolve) | |
DefineTest (getTexture) | |
DefineTest (removeElement) | |
DefineTest (nameArray) | |
DefineTest (arrayOps) | |
DefineTest (atomicTypeOps) | |
DefineTest (clone) | |
DefineTest (genericOps) | |
DefineTest (badSkew) | |
DefineTest (stringTable) | |
DefineTest (seymourSidResolve) | |
DefineTest (placeElement) | |
DefineTest (nativePathConversion) | |
DefineTest (libxmlUriBugWorkaround) | |
DefineTest (uriOps) | |
DefineTest (uriBase) | |
DefineTest (xmlNavigation) | |
DefineTest (multipleDae) | |
DefineTest (unusedTypeCheck) | |
DefineTest (domFx_common_transparent) | |
DefineTest (autoResolve) | |
DefineTest (baseURI) | |
DefineTest (databaseLookup) | |
DefineTest (fileExtension) | |
DefineTest (zipFile) | |
DefineTest (charEncoding) | |
DefineTest (getElementBug) | |
DefineTest (externalRef) | |
DefineTest (charEncodingSetting) | |
DefineTest (uriCopy) | |
DefineTest (badFileLoad) | |
DefineTest (spuriousQuotes) | |
DefineTest (zaeLoading) | |
DefineTest (zaeIllegalArchive) | |
daeElement * | findAncestorByType (daeElement *el, daeString type) |
daeElement * | findChildByName (daeElement *el, daeString name) |
string | getCharData (daeElement *el) |
vector< string > | getChildNames (daeElement *elt) |
string | getRoundTripFile (const string &name) |
daeArray * | getSkewArray (daeElement *node, const string &sid) |
daeURI * | getTextureUri (const string &samplerSid, daeElement &effect) |
string | getTmpFile (const string &fileName) |
string | lookupTestFile (const string &fileName) |
int | main (int argc, char *argv[]) |
daeTArray< int > | makeIntArray (int i,...) |
void | nameArrayAppend (domList_of_names &names, const char *name) |
void | nameArraySet (domList_of_names &names, size_t index, const char *name) |
void | printMemoryToStringResult (daeAtomicType &type, daeMemoryRef value) |
bool | printTestResults (const map< string, testResult > &failedTests) |
map< string, domTest * > & | registeredTests () |
daeElement * | resolveID (daeString id, daeDocument &document) |
string | resolveResultToString (const string &sidRef, daeElement *refElt) |
daeElement * | resolveSid (const string &sid, daeElement &refElt) |
bool | roundTrip (const string &file) |
map< string, testResult > | runTests (const set< string > &tests) |
fs::path & | tmpPath () |
float | toFloat (const string &s) |
string | toString (daeAtomicType &type, daeMemoryRef value) |
A collada dom example from where I got the code.
Definition in file domTest.cpp.
#define CheckResultWithMsg | ( | val, | |
msg | |||
) |
Definition at line 57 of file domTest.cpp.
#define CompareDocs | ( | dae, | |
file1, | |||
file2 | |||
) |
Definition at line 62 of file domTest.cpp.
#define RunTest | ( | testName | ) |
Definition at line 87 of file domTest.cpp.
bool checkTests | ( | const set< string > & | tests | ) |
Definition at line 1503 of file domTest.cpp.
string chopWS | ( | const string & | s | ) |
Definition at line 104 of file domTest.cpp.
fs::path& dataPath | ( | ) |
Definition at line 77 of file domTest.cpp.
DefineTest | ( | chopWS | ) |
Definition at line 113 of file domTest.cpp.
DefineTest | ( | utils | ) |
Definition at line 125 of file domTest.cpp.
DefineTest | ( | elementAddFunctions | ) |
Definition at line 149 of file domTest.cpp.
DefineTest | ( | loadClipPlane | ) |
Definition at line 194 of file domTest.cpp.
DefineTest | ( | renderStates | ) |
Definition at line 201 of file domTest.cpp.
DefineTest | ( | compareElements | ) |
Definition at line 239 of file domTest.cpp.
DefineTest | ( | writeCamera | ) |
Definition at line 269 of file domTest.cpp.
DefineTest | ( | roundTripSeymour | ) |
Definition at line 301 of file domTest.cpp.
DefineTest | ( | rawSupport | ) |
Definition at line 313 of file domTest.cpp.
DefineTest | ( | extraTypeTest | ) |
Definition at line 338 of file domTest.cpp.
DefineTest | ( | sidResolve | ) |
Definition at line 397 of file domTest.cpp.
DefineTest | ( | getTexture | ) |
Definition at line 497 of file domTest.cpp.
DefineTest | ( | removeElement | ) |
Definition at line 513 of file domTest.cpp.
DefineTest | ( | nameArray | ) |
Definition at line 541 of file domTest.cpp.
DefineTest | ( | arrayOps | ) |
Definition at line 564 of file domTest.cpp.
DefineTest | ( | atomicTypeOps | ) |
Definition at line 598 of file domTest.cpp.
DefineTest | ( | clone | ) |
Definition at line 655 of file domTest.cpp.
DefineTest | ( | genericOps | ) |
Definition at line 669 of file domTest.cpp.
DefineTest | ( | badSkew | ) |
Definition at line 744 of file domTest.cpp.
DefineTest | ( | stringTable | ) |
Definition at line 763 of file domTest.cpp.
DefineTest | ( | seymourSidResolve | ) |
Definition at line 794 of file domTest.cpp.
DefineTest | ( | placeElement | ) |
Definition at line 826 of file domTest.cpp.
DefineTest | ( | nativePathConversion | ) |
Definition at line 849 of file domTest.cpp.
DefineTest | ( | libxmlUriBugWorkaround | ) |
Definition at line 879 of file domTest.cpp.
DefineTest | ( | uriOps | ) |
Definition at line 916 of file domTest.cpp.
DefineTest | ( | uriBase | ) |
Definition at line 1104 of file domTest.cpp.
DefineTest | ( | xmlNavigation | ) |
Definition at line 1114 of file domTest.cpp.
DefineTest | ( | multipleDae | ) |
Definition at line 1142 of file domTest.cpp.
DefineTest | ( | unusedTypeCheck | ) |
Definition at line 1153 of file domTest.cpp.
DefineTest | ( | domFx_common_transparent | ) |
Definition at line 1192 of file domTest.cpp.
DefineTest | ( | autoResolve | ) |
Definition at line 1209 of file domTest.cpp.
DefineTest | ( | baseURI | ) |
Definition at line 1280 of file domTest.cpp.
DefineTest | ( | databaseLookup | ) |
Definition at line 1291 of file domTest.cpp.
DefineTest | ( | fileExtension | ) |
Definition at line 1323 of file domTest.cpp.
DefineTest | ( | zipFile | ) |
Definition at line 1335 of file domTest.cpp.
DefineTest | ( | charEncoding | ) |
Definition at line 1344 of file domTest.cpp.
DefineTest | ( | getElementBug | ) |
Definition at line 1359 of file domTest.cpp.
DefineTest | ( | externalRef | ) |
Definition at line 1395 of file domTest.cpp.
DefineTest | ( | charEncodingSetting | ) |
Definition at line 1408 of file domTest.cpp.
DefineTest | ( | uriCopy | ) |
Definition at line 1420 of file domTest.cpp.
DefineTest | ( | badFileLoad | ) |
Definition at line 1432 of file domTest.cpp.
DefineTest | ( | spuriousQuotes | ) |
Definition at line 1439 of file domTest.cpp.
DefineTest | ( | zaeLoading | ) |
Definition at line 1446 of file domTest.cpp.
DefineTest | ( | zaeIllegalArchive | ) |
Definition at line 1484 of file domTest.cpp.
daeElement* findAncestorByType | ( | daeElement * | el, |
daeString | type | ||
) |
Definition at line 469 of file domTest.cpp.
daeElement* findChildByName | ( | daeElement * | el, |
daeString | name | ||
) |
Definition at line 457 of file domTest.cpp.
string getCharData | ( | daeElement * | el | ) |
Definition at line 483 of file domTest.cpp.
vector<string> getChildNames | ( | daeElement * | elt | ) |
Definition at line 814 of file domTest.cpp.
string getRoundTripFile | ( | const string & | name | ) |
Definition at line 290 of file domTest.cpp.
daeArray* getSkewArray | ( | daeElement * | node, |
const string & | sid | ||
) |
Definition at line 733 of file domTest.cpp.
daeURI* getTextureUri | ( | const string & | samplerSid, |
daeElement & | effect | ||
) |
Definition at line 487 of file domTest.cpp.
string getTmpFile | ( | const string & | fileName | ) |
Definition at line 99 of file domTest.cpp.
string lookupTestFile | ( | const string & | fileName | ) |
Definition at line 95 of file domTest.cpp.
int main | ( | int | argc, |
char * | argv[] | ||
) |
Definition at line 1573 of file domTest.cpp.
daeTArray<int> makeIntArray | ( | int | i, |
... | |||
) |
Definition at line 552 of file domTest.cpp.
void nameArrayAppend | ( | domList_of_names & | names, |
const char * | name | ||
) |
Definition at line 536 of file domTest.cpp.
void nameArraySet | ( | domList_of_names & | names, |
size_t | index, | ||
const char * | name | ||
) |
Definition at line 532 of file domTest.cpp.
void printMemoryToStringResult | ( | daeAtomicType & | type, |
daeMemoryRef | value | ||
) |
Definition at line 586 of file domTest.cpp.
bool printTestResults | ( | const map< string, testResult > & | failedTests | ) |
Definition at line 1530 of file domTest.cpp.
map<string, domTest*>& registeredTests | ( | ) |
Definition at line 72 of file domTest.cpp.
daeElement* resolveID | ( | daeString | id, |
daeDocument & | document | ||
) |
Definition at line 475 of file domTest.cpp.
string resolveResultToString | ( | const string & | sidRef, |
daeElement * | refElt | ||
) |
Definition at line 389 of file domTest.cpp.
daeElement* resolveSid | ( | const string & | sid, |
daeElement & | refElt | ||
) |
Definition at line 479 of file domTest.cpp.
bool roundTrip | ( | const string & | file | ) |
Definition at line 294 of file domTest.cpp.
map<string, testResult> runTests | ( | const set< string > & | tests | ) |
Definition at line 1518 of file domTest.cpp.
fs::path& tmpPath | ( | ) |
Definition at line 82 of file domTest.cpp.
float toFloat | ( | const string & | s | ) |
Definition at line 50 of file domTest.cpp.
string toString | ( | daeAtomicType & | type, |
daeMemoryRef | value | ||
) |
Definition at line 592 of file domTest.cpp.